home *** CD-ROM | disk | FTP | other *** search
- diff -c old/control.c ./control.c
- *** old/control.c Mon Aug 26 07:26:34 1991
- --- ./control.c Thu Feb 20 08:57:34 1992
- ***************
- *** 13,18 ****
- --- 13,19 ----
- */
-
- /* Modified for VCPI Implement by Y.Shibata Aug 5th 1991 */
- + /* Added call to close(). W Metzenthen 9th Feb 1992 */
- /* History:87,1 */
- #include <dos.h>
- #include <stdlib.h>
- ***************
- *** 350,355 ****
- --- 351,357 ----
- if (header[0] == 0x010b)
- self_contained = 1;
- }
- + close(n); /* Give the handle back to MS-DOS (precious resource). WM */
-
- if (self_contained)
- {
- ***************
- *** 388,395 ****
- else /* found */
- {
- debug_mode = 0;
- ! paging_set_file(argv0);
- ! emu_installed = emu_install(emu_fn);
- set_command_line(argv, envp);
- #if DEBUGGER
- syms_init(argv0);
- --- 390,400 ----
- else /* found */
- {
- debug_mode = 0;
- !
- ! paging_set_file(argv0); /* Open the file 'argv0' to be paged in/out. */
- !
- ! emu_installed = emu_install(emu_fn); /* Open the file 'emu_fn' to
- ! be paged in/out. */
- set_command_line(argv, envp);
- #if DEBUGGER
- syms_init(argv0);
- ***************
- *** 400,406 ****
- if (set_brk)
- paging_brk(0x8fffffffL);
-
- ! dalloc_init();
- init_controllers();
- if (emu_installed)
- {
- --- 405,411 ----
- if (set_brk)
- paging_brk(0x8fffffffL);
-
- ! dalloc_init(); /* Opens the swap file. */
- init_controllers();
- if (emu_installed)
- {
- diff -c old/debug32.lnk ./debug32.lnk
- *** old/debug32.lnk Sun Feb 9 10:18:14 1992
- --- ./debug32.lnk Wed Feb 12 13:17:22 1992
- ***************
- *** 18,24 ****
- dvga+
- dwild+
- dxms+
- ! dvcpi
- debug32.exe
-
- d:\tc\lib\maths+
- --- 18,25 ----
- dvga+
- dwild+
- dxms+
- ! dvcpi+
- ! close
- debug32.exe
-
- d:\tc\lib\maths+
- diff -c old/go32.lnk ./go32.lnk
- *** old/go32.lnk Sun Feb 9 10:17:38 1992
- --- ./go32.lnk Thu Feb 20 08:24:48 1992
- ***************
- *** 18,24 ****
- vga+
- wild+
- xms+
- ! vcpi
- go32.exe
-
- d:\tc\lib\maths+
- --- 18,25 ----
- vga+
- wild+
- xms+
- ! vcpi+
- ! close
- go32.exe
-
- d:\tc\lib\maths+
- diff -c old/makefile ./makefile
- *** old/makefile Mon Aug 26 07:26:34 1991
- --- ./makefile Mon Feb 17 07:48:44 1992
- ***************
- *** 33,39 ****
- vga.obj\
- wild.obj\
- xms.obj\
- ! vcpi.obj
-
- all : go32.exe stub.exe
-
- --- 33,40 ----
- vga.obj\
- wild.obj\
- xms.obj\
- ! vcpi.obj\
- ! close.obj
-
- all : go32.exe stub.exe
-
- ***************
- *** 41,49 ****
- tcc stub.c
- tdstrip stub
-
- go32.exe : $(OBJS) go32.lnk makefile
- ! tlink /c /v /s /m @go32.lnk
- ! tlink /c /v /s /m @debug32.lnk
-
-
- utest.exe : utest.obj unassmbl.obj
- --- 42,51 ----
- tcc stub.c
- tdstrip stub
-
- + # The /3 option is needed in TC++ v1.0
- go32.exe : $(OBJS) go32.lnk makefile
- ! tlink /3 /c /v /s /m @go32.lnk
- ! tlink /3 /c /v /s /m @debug32.lnk
-
-
- utest.exe : utest.obj unassmbl.obj
- diff -c old/valloc.c ./valloc.c
- *** old/valloc.c Mon Aug 26 07:26:38 1991
- --- ./valloc.c Thu Feb 20 04:30:26 1992
- ***************
- *** 13,18 ****
- --- 13,19 ----
- */
-
- /* Modified for VCPI Implement by Y.Shibata Aug 5th 1991 */
- + /* pn_lo_last was incorrectly computed. W. Metzenthen 19th Feb 1992 */
- /* History:126,1 */
-
- #include <stdio.h>
- ***************
- *** 175,181 ****
- r.r_ax = 0x4800;
- intr(0x21, &r); /* get the block */
- pn_lo_first = (r.r_ax+0xFF) >> 8; /* lowest real mem 4K block */
- ! pn_lo_last = (r.r_ax+lol-1) >> 8; /* highest real mem 4K block */
-
- r.r_es = r.r_ax; /* free the block just allocated */
- r.r_ax = 0x4900; /* because Turbo Debugger won't if we don't */
- --- 176,182 ----
- r.r_ax = 0x4800;
- intr(0x21, &r); /* get the block */
- pn_lo_first = (r.r_ax+0xFF) >> 8; /* lowest real mem 4K block */
- ! pn_lo_last = ((r.r_ax+lol) >> 8) -1; /* highest real mem 4K block (WM) */
-
- r.r_es = r.r_ax; /* free the block just allocated */
- r.r_ax = 0x4900; /* because Turbo Debugger won't if we don't */
-