home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / ue312os2.zip / changes next >
Text File  |  1993-09-28  |  4KB  |  114 lines

  1.  
  2. changes:
  3.  
  4. os2npm.c
  5. Line 13: #define INCL_DOSDEVIOCTL, 
  6.     For IBM Toolkit 2.0 to include bsedev.h,
  7.     (it defines some constants for Kbd-Calls)
  8.  
  9. Line 16:
  10. #include <signal.h>
  11.     This and the next changes prevent the abnormal termination of emacs
  12.     caused by CTRL-C or CTRL-BREAK,
  13.     otherwise CTRL_BREAK terminates EVERYTIME, CTRL-C in saving action
  14.     leaving some tmp-files and no workfile and me swearing.
  15.  
  16. Line 665-666:
  17.     signal(SIGBREAK,SIG_IGN);
  18.     signal(SIGINT,SIG_IGN);
  19. ignores these signals.
  20.  
  21.         
  22. Line 109-113
  23. #ifdef ICC
  24. static USHORT _Seg16 *lvb;            /* logical video buffer    */
  25. #else
  26. static USHORT    *lvb;
  27. #endif
  28.     This is very important, because ICC normally uses the flat 0:32 memory-
  29.     model, but VioGetBuf returns a Pointer in ancient 16:16-manner, so an
  30.     access to the local video buffer ends in a protection violation.
  31.     The keyword _Seg16 enables icc to define lvb internally as a 16:16-
  32.     pointer. 
  33.     For further versions you have to keep in mind, that the 16bit Vio- 
  34.     Kbd- and Mou- Calls are undocumented since 2.x, they exist only for
  35.     compatibility reasons. 
  36.     They are replaced by a device-driver, which gives nearly the same
  37.     usability. (See OS/2 2.0 Technical Library, Physical Device Driver
  38.     Reference, IBM-Nr: 10G6266). I will try to rewrite OS2NPM.C in this
  39.     manner, if I have some spare time.
  40.  
  41.     If someone uses a different 32-bit flat-mode compiler, he has to find
  42.     out an equivalent to this _Seg16 statement.
  43.     It's a pity, that the EMX-GNU-c-compiler don't has a possibility achieving
  44.     this. But with the renewing of OS2NPM i will find a way to use GNU for
  45.     compiling, because its a great tool.
  46.  
  47. ***************
  48. *    os2.c:   *
  49. ***************
  50. Line 16:
  51. #include        <process.h>
  52.  
  53. and:
  54. Line 296-301 in proc. shell()
  55.  
  56. #ifdef OS22X
  57.     return(spawnlp(P_WAIT,shell,NULL));
  58. #else
  59.     return(system(shell);
  60. #endif
  61.  
  62.     I had very much trouble using your version of shell(), because my
  63.     command-processor(4os2.exe) couldnt load twice, it only produced a bundle
  64.     of error-lines. This behaviour could be simulated from command-line,
  65.     (C:>4os2 /C 4os2),so its definitly a bug in it. But I changed
  66.     shell-function, which is also much more elegant in this way.
  67.     The problem arised also with the 16-bit version compiled with MSC 6.0,
  68.     I don't know, what happens with earlier (1.x) versions of OS/2,
  69.     so I made this changes OS22X dependant.
  70.  
  71. Line 26:
  72. #if ICC
  73. #include        <io.h>
  74. #define access _access
  75. #endif
  76.         ICC's C-Library gives _access instead of access 
  77.  
  78. Line 163:
  79.     filnam=tmpnam();
  80. Line 234:
  81.     filnam1=tmpnam();
  82. Line 249:
  83.     filnam2 = tmpnam();
  84.     
  85.     The function mktemp is not available in ICC's C-Library,
  86.     so I exchanged it with tmpnam(), the disadvantage is, 
  87.     that the temporary file is created in the actual-directory.
  88.     This function was also available in MSC' C-library.
  89.     
  90.     I had to rename the char * tmpnam to tempnam.
  91.  
  92. Line 356-361:
  93. #if ICC
  94. FILEFINDBUF3 pBuf;    /* buffer to hold file information */
  95. #define FILEINFOLEVEL FIL_STANDARD /* we want standard file-info */
  96. #else
  97. FILEFINDBUF pBuf;    /* old buffer struct (no longer supported) */
  98. #define FILEINFOLEVEL 0L    /* option was reserved in 1.x    */
  99. #endif
  100.  
  101. and
  102. Line 411-412:
  103.     if (DosFindFirst(fname, &hDir, FILE_DIRECTORY,
  104.               &pBuf, sizeof(pBuf), &num_found, FILEINFOLEVEL) != 0)
  105.  
  106. The old FILEFIND-structure is not supported using ICC compiler,
  107. the new one is handled very similar, but the last option of DosFindFirst,
  108. which was reserved in OS/2 1.x informs DosFindFirst which info is wanted
  109.  
  110. dolock.c
  111. Line 70:
  112. #if    (WINNT && MSC) || ICC
  113.     ICC's C-lib also have _chdir .. _rmdir instead of chdir .. rmdir
  114.