From 006eb23980237be9a1b863120d2894497f002891 Mon Sep 17 00:00:00 2001 From: David Lee Date: Thu, 4 Jul 2024 11:11:27 -0700 Subject: [PATCH] linux build --- Microsoft C v3/{inc => INC}/ASSERT.H | 0 Microsoft C v3/{inc => INC}/CONIO.H | 0 Microsoft C v3/{inc => INC}/CTYPE.H | 0 Microsoft C v3/{inc => INC}/DIRECT.H | 0 Microsoft C v3/{inc => INC}/DOS.H | 0 Microsoft C v3/{inc => INC}/ERRNO.H | 0 Microsoft C v3/{inc => INC}/FCNTL.H | 0 Microsoft C v3/{inc => INC}/IO.H | 0 Microsoft C v3/{inc => INC}/MALLOC.H | 0 Microsoft C v3/{inc => INC}/MATH.H | 0 Microsoft C v3/{inc => INC}/MEMORY.H | 0 Microsoft C v3/{inc => INC}/PROCESS.H | 0 Microsoft C v3/{inc => INC}/SEARCH.H | 0 Microsoft C v3/{inc => INC}/SETJMP.H | 0 Microsoft C v3/{inc => INC}/SHARE.H | 0 Microsoft C v3/{inc => INC}/SIGNAL.H | 0 Microsoft C v3/{inc => INC}/STDIO.H | 0 Microsoft C v3/{inc => INC}/STDLIB.H | 0 Microsoft C v3/{inc => INC}/STRING.H | 0 Microsoft C v3/{inc => INC}/SYS/LOCKING.H | 0 Microsoft C v3/{inc => INC}/SYS/STAT.H | 0 Microsoft C v3/{inc => INC}/SYS/TIMEB.H | 0 Microsoft C v3/{inc => INC}/SYS/TYPES.H | 0 Microsoft C v3/{inc => INC}/SYS/UTIME.H | 0 Microsoft C v3/{inc => INC}/TIME.H | 0 Microsoft C v3/{inc => INC}/V2TOV3.H | 0 Microsoft C v3/{lib => LIB}/87.LIB | Bin Microsoft C v3/{lib => LIB}/BINMODE.OBJ | Bin Microsoft C v3/{lib => LIB}/EM.LIB | Bin Microsoft C v3/{lib => LIB}/EMOEM.ASM | 0 Microsoft C v3/{lib => LIB}/LLIBC.LIB | Bin Microsoft C v3/{lib => LIB}/LLIBFA.LIB | Bin Microsoft C v3/{lib => LIB}/LLIBFP.LIB | Bin Microsoft C v3/{lib => LIB}/LSETARGV.OBJ | Bin Microsoft C v3/{lib => LIB}/LVARSTCK.OBJ | Bin Microsoft C v3/{lib => LIB}/MLIBC.LIB | Bin Microsoft C v3/{lib => LIB}/MLIBFA.LIB | Bin Microsoft C v3/{lib => LIB}/MLIBFP.LIB | Bin Microsoft C v3/{lib => LIB}/MSETARGV.OBJ | Bin Microsoft C v3/{lib => LIB}/MVARSTCK.OBJ | Bin Microsoft C v3/{lib => LIB}/SLIBC.LIB | Bin Microsoft C v3/{lib => LIB}/SLIBFA.LIB | Bin Microsoft C v3/{lib => LIB}/SLIBFP.LIB | Bin Microsoft C v3/{lib => LIB}/SSETARGV.OBJ | Bin Microsoft C v3/{lib => LIB}/SVARSTCK.OBJ | Bin Microsoft C v3/m.bat | 4 ++-- Microsoft C v3/m.sh | 15 +++++++++++++++ 47 files changed, 17 insertions(+), 2 deletions(-) rename Microsoft C v3/{inc => INC}/ASSERT.H (100%) rename Microsoft C v3/{inc => INC}/CONIO.H (100%) rename Microsoft C v3/{inc => INC}/CTYPE.H (100%) rename Microsoft C v3/{inc => INC}/DIRECT.H (100%) rename Microsoft C v3/{inc => INC}/DOS.H (100%) rename Microsoft C v3/{inc => INC}/ERRNO.H (100%) rename Microsoft C v3/{inc => INC}/FCNTL.H (100%) rename Microsoft C v3/{inc => INC}/IO.H (100%) rename Microsoft C v3/{inc => INC}/MALLOC.H (100%) rename Microsoft C v3/{inc => INC}/MATH.H (100%) rename Microsoft C v3/{inc => INC}/MEMORY.H (100%) rename Microsoft C v3/{inc => INC}/PROCESS.H (100%) rename Microsoft C v3/{inc => INC}/SEARCH.H (100%) rename Microsoft C v3/{inc => INC}/SETJMP.H (100%) rename Microsoft C v3/{inc => INC}/SHARE.H (100%) rename Microsoft C v3/{inc => INC}/SIGNAL.H (100%) rename Microsoft C v3/{inc => INC}/STDIO.H (100%) rename Microsoft C v3/{inc => INC}/STDLIB.H (100%) rename Microsoft C v3/{inc => INC}/STRING.H (100%) rename Microsoft C v3/{inc => INC}/SYS/LOCKING.H (100%) rename Microsoft C v3/{inc => INC}/SYS/STAT.H (100%) rename Microsoft C v3/{inc => INC}/SYS/TIMEB.H (100%) rename Microsoft C v3/{inc => INC}/SYS/TYPES.H (100%) rename Microsoft C v3/{inc => INC}/SYS/UTIME.H (100%) rename Microsoft C v3/{inc => INC}/TIME.H (100%) rename Microsoft C v3/{inc => INC}/V2TOV3.H (100%) rename Microsoft C v3/{lib => LIB}/87.LIB (100%) rename Microsoft C v3/{lib => LIB}/BINMODE.OBJ (100%) rename Microsoft C v3/{lib => LIB}/EM.LIB (100%) rename Microsoft C v3/{lib => LIB}/EMOEM.ASM (100%) rename Microsoft C v3/{lib => LIB}/LLIBC.LIB (100%) rename Microsoft C v3/{lib => LIB}/LLIBFA.LIB (100%) rename Microsoft C v3/{lib => LIB}/LLIBFP.LIB (100%) rename Microsoft C v3/{lib => LIB}/LSETARGV.OBJ (100%) rename Microsoft C v3/{lib => LIB}/LVARSTCK.OBJ (100%) rename Microsoft C v3/{lib => LIB}/MLIBC.LIB (100%) rename Microsoft C v3/{lib => LIB}/MLIBFA.LIB (100%) rename Microsoft C v3/{lib => LIB}/MLIBFP.LIB (100%) rename Microsoft C v3/{lib => LIB}/MSETARGV.OBJ (100%) rename Microsoft C v3/{lib => LIB}/MVARSTCK.OBJ (100%) rename Microsoft C v3/{lib => LIB}/SLIBC.LIB (100%) rename Microsoft C v3/{lib => LIB}/SLIBFA.LIB (100%) rename Microsoft C v3/{lib => LIB}/SLIBFP.LIB (100%) rename Microsoft C v3/{lib => LIB}/SSETARGV.OBJ (100%) rename Microsoft C v3/{lib => LIB}/SVARSTCK.OBJ (100%) create mode 100644 Microsoft C v3/m.sh diff --git a/Microsoft C v3/inc/ASSERT.H b/Microsoft C v3/INC/ASSERT.H similarity index 100% rename from Microsoft C v3/inc/ASSERT.H rename to Microsoft C v3/INC/ASSERT.H diff --git a/Microsoft C v3/inc/CONIO.H b/Microsoft C v3/INC/CONIO.H similarity index 100% rename from Microsoft C v3/inc/CONIO.H rename to Microsoft C v3/INC/CONIO.H diff --git a/Microsoft C v3/inc/CTYPE.H b/Microsoft C v3/INC/CTYPE.H similarity index 100% rename from Microsoft C v3/inc/CTYPE.H rename to Microsoft C v3/INC/CTYPE.H diff --git a/Microsoft C v3/inc/DIRECT.H b/Microsoft C v3/INC/DIRECT.H similarity index 100% rename from Microsoft C v3/inc/DIRECT.H rename to Microsoft C v3/INC/DIRECT.H diff --git a/Microsoft C v3/inc/DOS.H b/Microsoft C v3/INC/DOS.H similarity index 100% rename from Microsoft C v3/inc/DOS.H rename to Microsoft C v3/INC/DOS.H diff --git a/Microsoft C v3/inc/ERRNO.H b/Microsoft C v3/INC/ERRNO.H similarity index 100% rename from Microsoft C v3/inc/ERRNO.H rename to Microsoft C v3/INC/ERRNO.H diff --git a/Microsoft C v3/inc/FCNTL.H b/Microsoft C v3/INC/FCNTL.H similarity index 100% rename from Microsoft C v3/inc/FCNTL.H rename to Microsoft C v3/INC/FCNTL.H diff --git a/Microsoft C v3/inc/IO.H b/Microsoft C v3/INC/IO.H similarity index 100% rename from Microsoft C v3/inc/IO.H rename to Microsoft C v3/INC/IO.H diff --git a/Microsoft C v3/inc/MALLOC.H b/Microsoft C v3/INC/MALLOC.H similarity index 100% rename from Microsoft C v3/inc/MALLOC.H rename to Microsoft C v3/INC/MALLOC.H diff --git a/Microsoft C v3/inc/MATH.H b/Microsoft C v3/INC/MATH.H similarity index 100% rename from Microsoft C v3/inc/MATH.H rename to Microsoft C v3/INC/MATH.H diff --git a/Microsoft C v3/inc/MEMORY.H b/Microsoft C v3/INC/MEMORY.H similarity index 100% rename from Microsoft C v3/inc/MEMORY.H rename to Microsoft C v3/INC/MEMORY.H diff --git a/Microsoft C v3/inc/PROCESS.H b/Microsoft C v3/INC/PROCESS.H similarity index 100% rename from Microsoft C v3/inc/PROCESS.H rename to Microsoft C v3/INC/PROCESS.H diff --git a/Microsoft C v3/inc/SEARCH.H b/Microsoft C v3/INC/SEARCH.H similarity index 100% rename from Microsoft C v3/inc/SEARCH.H rename to Microsoft C v3/INC/SEARCH.H diff --git a/Microsoft C v3/inc/SETJMP.H b/Microsoft C v3/INC/SETJMP.H similarity index 100% rename from Microsoft C v3/inc/SETJMP.H rename to Microsoft C v3/INC/SETJMP.H diff --git a/Microsoft C v3/inc/SHARE.H b/Microsoft C v3/INC/SHARE.H similarity index 100% rename from Microsoft C v3/inc/SHARE.H rename to Microsoft C v3/INC/SHARE.H diff --git a/Microsoft C v3/inc/SIGNAL.H b/Microsoft C v3/INC/SIGNAL.H similarity index 100% rename from Microsoft C v3/inc/SIGNAL.H rename to Microsoft C v3/INC/SIGNAL.H diff --git a/Microsoft C v3/inc/STDIO.H b/Microsoft C v3/INC/STDIO.H similarity index 100% rename from Microsoft C v3/inc/STDIO.H rename to Microsoft C v3/INC/STDIO.H diff --git a/Microsoft C v3/inc/STDLIB.H b/Microsoft C v3/INC/STDLIB.H similarity index 100% rename from Microsoft C v3/inc/STDLIB.H rename to Microsoft C v3/INC/STDLIB.H diff --git a/Microsoft C v3/inc/STRING.H b/Microsoft C v3/INC/STRING.H similarity index 100% rename from Microsoft C v3/inc/STRING.H rename to Microsoft C v3/INC/STRING.H diff --git a/Microsoft C v3/inc/SYS/LOCKING.H b/Microsoft C v3/INC/SYS/LOCKING.H similarity index 100% rename from Microsoft C v3/inc/SYS/LOCKING.H rename to Microsoft C v3/INC/SYS/LOCKING.H diff --git a/Microsoft C v3/inc/SYS/STAT.H b/Microsoft C v3/INC/SYS/STAT.H similarity index 100% rename from Microsoft C v3/inc/SYS/STAT.H rename to Microsoft C v3/INC/SYS/STAT.H diff --git a/Microsoft C v3/inc/SYS/TIMEB.H b/Microsoft C v3/INC/SYS/TIMEB.H similarity index 100% rename from Microsoft C v3/inc/SYS/TIMEB.H rename to Microsoft C v3/INC/SYS/TIMEB.H diff --git a/Microsoft C v3/inc/SYS/TYPES.H b/Microsoft C v3/INC/SYS/TYPES.H similarity index 100% rename from Microsoft C v3/inc/SYS/TYPES.H rename to Microsoft C v3/INC/SYS/TYPES.H diff --git a/Microsoft C v3/inc/SYS/UTIME.H b/Microsoft C v3/INC/SYS/UTIME.H similarity index 100% rename from Microsoft C v3/inc/SYS/UTIME.H rename to Microsoft C v3/INC/SYS/UTIME.H diff --git a/Microsoft C v3/inc/TIME.H b/Microsoft C v3/INC/TIME.H similarity index 100% rename from Microsoft C v3/inc/TIME.H rename to Microsoft C v3/INC/TIME.H diff --git a/Microsoft C v3/inc/V2TOV3.H b/Microsoft C v3/INC/V2TOV3.H similarity index 100% rename from Microsoft C v3/inc/V2TOV3.H rename to Microsoft C v3/INC/V2TOV3.H diff --git a/Microsoft C v3/lib/87.LIB b/Microsoft C v3/LIB/87.LIB similarity index 100% rename from Microsoft C v3/lib/87.LIB rename to Microsoft C v3/LIB/87.LIB diff --git a/Microsoft C v3/lib/BINMODE.OBJ b/Microsoft C v3/LIB/BINMODE.OBJ similarity index 100% rename from Microsoft C v3/lib/BINMODE.OBJ rename to Microsoft C v3/LIB/BINMODE.OBJ diff --git a/Microsoft C v3/lib/EM.LIB b/Microsoft C v3/LIB/EM.LIB similarity index 100% rename from Microsoft C v3/lib/EM.LIB rename to Microsoft C v3/LIB/EM.LIB diff --git a/Microsoft C v3/lib/EMOEM.ASM b/Microsoft C v3/LIB/EMOEM.ASM similarity index 100% rename from Microsoft C v3/lib/EMOEM.ASM rename to Microsoft C v3/LIB/EMOEM.ASM diff --git a/Microsoft C v3/lib/LLIBC.LIB b/Microsoft C v3/LIB/LLIBC.LIB similarity index 100% rename from Microsoft C v3/lib/LLIBC.LIB rename to Microsoft C v3/LIB/LLIBC.LIB diff --git a/Microsoft C v3/lib/LLIBFA.LIB b/Microsoft C v3/LIB/LLIBFA.LIB similarity index 100% rename from Microsoft C v3/lib/LLIBFA.LIB rename to Microsoft C v3/LIB/LLIBFA.LIB diff --git a/Microsoft C v3/lib/LLIBFP.LIB b/Microsoft C v3/LIB/LLIBFP.LIB similarity index 100% rename from Microsoft C v3/lib/LLIBFP.LIB rename to Microsoft C v3/LIB/LLIBFP.LIB diff --git a/Microsoft C v3/lib/LSETARGV.OBJ b/Microsoft C v3/LIB/LSETARGV.OBJ similarity index 100% rename from Microsoft C v3/lib/LSETARGV.OBJ rename to Microsoft C v3/LIB/LSETARGV.OBJ diff --git a/Microsoft C v3/lib/LVARSTCK.OBJ b/Microsoft C v3/LIB/LVARSTCK.OBJ similarity index 100% rename from Microsoft C v3/lib/LVARSTCK.OBJ rename to Microsoft C v3/LIB/LVARSTCK.OBJ diff --git a/Microsoft C v3/lib/MLIBC.LIB b/Microsoft C v3/LIB/MLIBC.LIB similarity index 100% rename from Microsoft C v3/lib/MLIBC.LIB rename to Microsoft C v3/LIB/MLIBC.LIB diff --git a/Microsoft C v3/lib/MLIBFA.LIB b/Microsoft C v3/LIB/MLIBFA.LIB similarity index 100% rename from Microsoft C v3/lib/MLIBFA.LIB rename to Microsoft C v3/LIB/MLIBFA.LIB diff --git a/Microsoft C v3/lib/MLIBFP.LIB b/Microsoft C v3/LIB/MLIBFP.LIB similarity index 100% rename from Microsoft C v3/lib/MLIBFP.LIB rename to Microsoft C v3/LIB/MLIBFP.LIB diff --git a/Microsoft C v3/lib/MSETARGV.OBJ b/Microsoft C v3/LIB/MSETARGV.OBJ similarity index 100% rename from Microsoft C v3/lib/MSETARGV.OBJ rename to Microsoft C v3/LIB/MSETARGV.OBJ diff --git a/Microsoft C v3/lib/MVARSTCK.OBJ b/Microsoft C v3/LIB/MVARSTCK.OBJ similarity index 100% rename from Microsoft C v3/lib/MVARSTCK.OBJ rename to Microsoft C v3/LIB/MVARSTCK.OBJ diff --git a/Microsoft C v3/lib/SLIBC.LIB b/Microsoft C v3/LIB/SLIBC.LIB similarity index 100% rename from Microsoft C v3/lib/SLIBC.LIB rename to Microsoft C v3/LIB/SLIBC.LIB diff --git a/Microsoft C v3/lib/SLIBFA.LIB b/Microsoft C v3/LIB/SLIBFA.LIB similarity index 100% rename from Microsoft C v3/lib/SLIBFA.LIB rename to Microsoft C v3/LIB/SLIBFA.LIB diff --git a/Microsoft C v3/lib/SLIBFP.LIB b/Microsoft C v3/LIB/SLIBFP.LIB similarity index 100% rename from Microsoft C v3/lib/SLIBFP.LIB rename to Microsoft C v3/LIB/SLIBFP.LIB diff --git a/Microsoft C v3/lib/SSETARGV.OBJ b/Microsoft C v3/LIB/SSETARGV.OBJ similarity index 100% rename from Microsoft C v3/lib/SSETARGV.OBJ rename to Microsoft C v3/LIB/SSETARGV.OBJ diff --git a/Microsoft C v3/lib/SVARSTCK.OBJ b/Microsoft C v3/LIB/SVARSTCK.OBJ similarity index 100% rename from Microsoft C v3/lib/SVARSTCK.OBJ rename to Microsoft C v3/LIB/SVARSTCK.OBJ diff --git a/Microsoft C v3/m.bat b/Microsoft C v3/m.bat index e3255b5..4b754b4 100644 --- a/Microsoft C v3/m.bat +++ b/Microsoft C v3/m.bat @@ -4,11 +4,11 @@ del %1.exe del %1.obj rem use "ntvdm cl /help" to get command-line arguments -ntvdm -t cl /Ox /DDOSTIME /AS /Gs /Ze /Zp -I inc -I inc\sys -L lib %1.c +ntvdm -r:. cl /Ox /DDOSTIME /AS /Gs /Ze /Zp -I inc -I inc\sys -L lib %1.c if %ERRORLEVEL% NEQ 0 goto alldone rem use "ntvdm link /help" to get command-line arguments -ntvdm -t link %1,,%1,lib\slibfp+lib\slibc+lib\em +ntvdm -r:. link %1,,%1,lib\slibfp+lib\slibc+lib\em if %ERRORLEVEL% NEQ 0 goto alldone rem ntvdm -d -C -p %1 diff --git a/Microsoft C v3/m.sh b/Microsoft C v3/m.sh new file mode 100644 index 0000000..9bd7ed9 --- /dev/null +++ b/Microsoft C v3/m.sh @@ -0,0 +1,15 @@ +str=$(tr '[a-z]' '[A-Z]' <<< $1) + +rm $str.COD 2>/dev/null +rm $str.MAP 2>/dev/null +rm $str.OBJ 2>/dev/null +rm $str.EXE 2>/dev/null + +ntvdm -u -r:. cl /Ox /DDOSTIME /AS /Gs /Ze /Zp -I inc -I inc\\sys -L lib $str.c +ntvdm -u -r:. link $str,,$str,lib\\slibfp+lib\\slibc+lib\\em + +rm $str.COD 2>/dev/null +rm $str.MAP 2>/dev/null +rm $str.OBJ 2>/dev/null + +ntvdm -d -c -p $str