home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / streams / handles / go32.dif < prev    next >
Encoding:
Text File  |  1992-02-19  |  4.0 KB  |  178 lines

  1. diff -c old/control.c ./control.c
  2. *** old/control.c    Mon Aug 26 07:26:34 1991
  3. --- ./control.c    Thu Feb 20 08:57:34 1992
  4. ***************
  5. *** 13,18 ****
  6. --- 13,19 ----
  7.   */
  8.   
  9.   /* Modified for VCPI Implement by Y.Shibata Aug 5th 1991 */
  10. + /* Added call to close(). W Metzenthen 9th Feb 1992 */
  11.   /* History:87,1 */
  12.   #include <dos.h>
  13.   #include <stdlib.h>
  14. ***************
  15. *** 350,355 ****
  16. --- 351,357 ----
  17.       if (header[0] == 0x010b)
  18.         self_contained = 1;
  19.     }
  20. +   close(n);    /* Give the handle back to MS-DOS (precious resource). WM */
  21.   
  22.     if (self_contained)
  23.     {
  24. ***************
  25. *** 388,395 ****
  26.       else /* found */
  27.       {
  28.         debug_mode = 0;
  29. !       paging_set_file(argv0);
  30. !       emu_installed = emu_install(emu_fn);
  31.         set_command_line(argv, envp);
  32.   #if DEBUGGER
  33.         syms_init(argv0);
  34. --- 390,400 ----
  35.       else /* found */
  36.       {
  37.         debug_mode = 0;
  38. !       paging_set_file(argv0);    /* Open the file 'argv0' to be paged in/out. */
  39. !       emu_installed = emu_install(emu_fn);    /* Open the file 'emu_fn' to
  40. !                            be paged in/out. */
  41.         set_command_line(argv, envp);
  42.   #if DEBUGGER
  43.         syms_init(argv0);
  44. ***************
  45. *** 400,406 ****
  46.     if (set_brk)
  47.       paging_brk(0x8fffffffL);
  48.   
  49. !   dalloc_init();
  50.     init_controllers();
  51.     if (emu_installed)
  52.     {
  53. --- 405,411 ----
  54.     if (set_brk)
  55.       paging_brk(0x8fffffffL);
  56.   
  57. !   dalloc_init();    /* Opens the swap file. */
  58.     init_controllers();
  59.     if (emu_installed)
  60.     {
  61. diff -c old/debug32.lnk ./debug32.lnk
  62. *** old/debug32.lnk    Sun Feb  9 10:18:14 1992
  63. --- ./debug32.lnk    Wed Feb 12 13:17:22 1992
  64. ***************
  65. *** 18,24 ****
  66.   dvga+
  67.   dwild+
  68.   dxms+
  69. ! dvcpi
  70.   debug32.exe
  71.   
  72.   d:\tc\lib\maths+
  73. --- 18,25 ----
  74.   dvga+
  75.   dwild+
  76.   dxms+
  77. ! dvcpi+
  78. ! close
  79.   debug32.exe
  80.   
  81.   d:\tc\lib\maths+
  82. diff -c old/go32.lnk ./go32.lnk
  83. *** old/go32.lnk    Sun Feb  9 10:17:38 1992
  84. --- ./go32.lnk    Thu Feb 20 08:24:48 1992
  85. ***************
  86. *** 18,24 ****
  87.   vga+
  88.   wild+
  89.   xms+
  90. ! vcpi
  91.   go32.exe
  92.   
  93.   d:\tc\lib\maths+
  94. --- 18,25 ----
  95.   vga+
  96.   wild+
  97.   xms+
  98. ! vcpi+
  99. ! close
  100.   go32.exe
  101.   
  102.   d:\tc\lib\maths+
  103. diff -c old/makefile ./makefile
  104. *** old/makefile    Mon Aug 26 07:26:34 1991
  105. --- ./makefile    Mon Feb 17 07:48:44 1992
  106. ***************
  107. *** 33,39 ****
  108.       vga.obj\
  109.       wild.obj\
  110.       xms.obj\
  111. !     vcpi.obj
  112.   
  113.   all : go32.exe stub.exe
  114.   
  115. --- 33,40 ----
  116.       vga.obj\
  117.       wild.obj\
  118.       xms.obj\
  119. !     vcpi.obj\
  120. !     close.obj
  121.   
  122.   all : go32.exe stub.exe
  123.   
  124. ***************
  125. *** 41,49 ****
  126.       tcc stub.c
  127.       tdstrip stub
  128.   
  129.   go32.exe : $(OBJS) go32.lnk makefile
  130. !     tlink /c /v /s /m @go32.lnk
  131. !     tlink /c /v /s /m @debug32.lnk
  132.   
  133.   
  134.   utest.exe : utest.obj unassmbl.obj
  135. --- 42,51 ----
  136.       tcc stub.c
  137.       tdstrip stub
  138.   
  139. + # The /3 option is needed in TC++ v1.0
  140.   go32.exe : $(OBJS) go32.lnk makefile
  141. !     tlink /3 /c /v /s /m @go32.lnk
  142. !     tlink /3 /c /v /s /m @debug32.lnk
  143.   
  144.   
  145.   utest.exe : utest.obj unassmbl.obj
  146. diff -c old/valloc.c ./valloc.c
  147. *** old/valloc.c    Mon Aug 26 07:26:38 1991
  148. --- ./valloc.c    Thu Feb 20 04:30:26 1992
  149. ***************
  150. *** 13,18 ****
  151. --- 13,19 ----
  152.   */
  153.   
  154.   /* Modified for VCPI Implement by Y.Shibata Aug 5th 1991 */
  155. + /* pn_lo_last was incorrectly computed. W. Metzenthen 19th Feb 1992 */
  156.   /* History:126,1 */
  157.   
  158.   #include <stdio.h>
  159. ***************
  160. *** 175,181 ****
  161.     r.r_ax = 0x4800;
  162.     intr(0x21, &r);    /* get the block */
  163.     pn_lo_first = (r.r_ax+0xFF) >> 8;    /* lowest real mem 4K block */
  164. !   pn_lo_last = (r.r_ax+lol-1) >> 8; /* highest real mem 4K block */
  165.   
  166.     r.r_es = r.r_ax;    /* free the block just allocated */
  167.     r.r_ax = 0x4900;    /* because Turbo Debugger won't if we don't */
  168. --- 176,182 ----
  169.     r.r_ax = 0x4800;
  170.     intr(0x21, &r);    /* get the block */
  171.     pn_lo_first = (r.r_ax+0xFF) >> 8;    /* lowest real mem 4K block */
  172. !   pn_lo_last = ((r.r_ax+lol) >> 8) -1; /* highest real mem 4K block (WM) */
  173.   
  174.     r.r_es = r.r_ax;    /* free the block just allocated */
  175.     r.r_ax = 0x4900;    /* because Turbo Debugger won't if we don't */
  176.