Skip to content

Commit

Permalink
merge userint1.c and userint2.c intu ui.c, rename userint0.c to displ…
Browse files Browse the repository at this point in the history
…ay.c
  • Loading branch information
boeckmann committed Feb 7, 2024
1 parent ab00c0c commit 53359b7
Show file tree
Hide file tree
Showing 12 changed files with 759 additions and 797 deletions.
4 changes: 2 additions & 2 deletions source/fdisk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ CFLAGS += -DRELEASE=$(RELEASE)
!endif

objs = main.obj cmd.obj fdiskio.obj pdiskio.obj pcompute.obj compat.obj
objs += helpscr.obj userint0.obj
objs += helpscr.obj display.obj
objs +=
!ifdef LITE
CFLAGS += -DFDISKLITE=1
!else
objs += userint1.obj userint2.obj kbdinput.obj
objs += ui.obj kbdinput.obj
!endif
objs += ansicon.obj printf.obj bootnorm.obj
objs += svarlang.obj auto_exe.obj auto_nls.obj deflang.obj
Expand Down
5 changes: 2 additions & 3 deletions source/fdisk/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@
#include "ansicon.h"
#include "cmd.h"
#include "compat.h"
#include "display.h"
#include "fdiskio.h"
#include "main.h"
#include "pcompute.h"
#include "pdiskio.h"
#include "printf.h"
#include "svarlang/svarlang.h"
#include "userint0.h"

#ifndef FDISKLITE
#include "userint1.h"
#include "userint2.h"
#include "ui.h"
#endif

/* /CLEARFLAG command line option */
Expand Down
6 changes: 2 additions & 4 deletions source/fdisk/userint0.c → source/fdisk/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@
#include <stdio.h>
#include <string.h>

#include "ansicon.h"
#include "compat.h"
#include "display.h"
#include "main.h"
#include "pcompute.h"

#include "ansicon.h"
#include "printf.h"
#include "svarlang/svarlang.h"

#include "userint0.h"

/* Pause Routine */
void Pause( void )
{
Expand Down
4 changes: 2 additions & 2 deletions source/fdisk/userint0.h → source/fdisk/display.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* contains UI calls that required by command-line operations */

#ifndef USERINT3_H
#define USERINT3_H
#ifndef DISPLAY_H
#define DISPLAY_H

void Display_Information( void );
void Dump_Partition_Information( void );
Expand Down
8 changes: 3 additions & 5 deletions source/fdisk/helpscr.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@
#include <stdio.h>
#include <string.h>

#include "main.h"
#include "pdiskio.h"
#include "userint0.h"

#include "ansicon.h"
#include "display.h"
#include "helpscr.h"
#include "main.h"
#include "pdiskio.h"
#include "printf.h"

#include "svarlang/svarlang.h"

/*
Expand Down
11 changes: 4 additions & 7 deletions source/fdisk/kbdinput.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@
#include <stdlib.h>
#include <string.h>

#include "ansicon.h"
#include "compat.h"
#include "display.h"
#include "kbdinput.h"
#include "main.h"
#include "pdiskio.h"
#include "userint0.h"
#include "userint1.h"

#include "kbdinput.h"

#include "ansicon.h"
#include "printf.h"

#include "svarlang/svarlang.h"
#include "ui.h"

/* Get input from keyboard */
unsigned long Input( int size_of_field, int x_position, int y_position,
Expand Down
5 changes: 2 additions & 3 deletions source/fdisk/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@

#include "cmd.h"
#include "compat.h"
#include "display.h"
#include "fdiskio.h"
#include "helpscr.h"
#include "main.h"
#include "pcompute.h"
#include "pdiskio.h"
#include "userint0.h"

#ifndef FDISKLITE
#include "userint1.h"
#include "userint2.h"
#include "ui.h"
#endif
#include "ansicon.h"
#include "printf.h"
Expand Down
Loading

0 comments on commit 53359b7

Please sign in to comment.