home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / unix / emacs / src / emacsp2.dif < prev    next >
Encoding:
Text File  |  1992-06-28  |  7.5 KB  |  235 lines

  1. *** c:/emacs-18.58.3/emacs/src/editfns.c    Fri May 01 17:14:48 1992
  2. --- c:/test/emacs/src/editfns.c    Thu Jun 25 10:20:22 1992
  3. ***************
  4. *** 99,106 ****
  5.     tem = Fstring_equal (Vuser_name, Vuser_real_name);
  6.     if (NULL (tem))
  7.       pw = (struct passwd *) getpwnam (XSTRING (Vuser_name)->data);
  8. !   
  9. !   p = (unsigned char *) (pw ? USER_FULL_NAME : "unknown");
  10.     q = (unsigned char *) index (p, ',');
  11.     Vuser_full_name = make_string (p, q ? q - p : strlen (p));
  12.   
  13. --- 99,108 ----
  14.     tem = Fstring_equal (Vuser_name, Vuser_real_name);
  15.     if (NULL (tem))
  16.       pw = (struct passwd *) getpwnam (XSTRING (Vuser_name)->data);
  17. !   p = (unsigned char *) getenv("USERFULLNAME");
  18. !   if (p==0)
  19. !     p = (unsigned char *) (pw ? USER_FULL_NAME : "unknown");
  20.     q = (unsigned char *) index (p, ',');
  21.     Vuser_full_name = make_string (p, q ? q - p : strlen (p));
  22.  
  23.  
  24.  
  25.  
  26. *** c:/emacs-18.58.3/emacs/src/emacs.c    Sat Apr 25 16:20:20 1992
  27. --- c:/test/emacs/src/emacs.c    Sat Jun 20 11:36:10 1992
  28. ***************
  29. *** 124,129 ****
  30. --- 124,133 ----
  31.   
  32.   int noninteractive1;
  33.   
  34. + #ifdef OS2
  35. + void ctrl_break_signal();
  36. + #endif
  37.   /* Signal code for the fatal signal that was received */
  38.   int fatal_error_code;
  39.   
  40. ***************
  41. *** 387,392 ****
  42. --- 391,400 ----
  43.         signal (SIGXFSZ, fatal_error_signal);
  44.   #endif SIGXFSZ
  45.   
  46. + #ifdef OS2
  47. +       signal (SIGBREAK, ctrl_break_signal);
  48. + #endif /* OS2 */      
  49. +       
  50.   #ifdef AIX
  51.         /* This used to run fatal_error_signal,
  52.        but it isn't fatal.  There's nothing Emacs can usefully do.
  53.  
  54. *** c:/emacs-18.58.3/emacs/src/fileio.c    Sun May 03 14:13:46 1992
  55. --- c:/test/emacs/src/fileio.c    Thu Jun 18 14:05:12 1992
  56. ***************
  57. *** 603,608 ****
  58. --- 603,613 ----
  59.       }
  60.     else if (p[0] == '/' || p[0] == '\\' || _fngetdrive (p) != 0)
  61.       {
  62. +       /* Find out about Server paths */
  63. +       if ((p[0] == '/' || p[0] == '\\') &&
  64. +       (p[1] == '/' || p[1] == '\\'))
  65. +     return build_string(p);
  66. +             
  67.         rel = 0;
  68.         if (_fngetdrive (p) == 0)
  69.       {
  70. ***************
  71. *** 986,991 ****
  72. --- 991,997 ----
  73.   
  74.     for (p = nm; p != endp; p++)
  75.       {
  76. + #ifndef OS2      
  77.         if ((p[0] == '~' ||
  78.   #ifdef APOLLO
  79.          /* // at start of file name is meaningful in Apollo system */
  80. ***************
  81. *** 1002,1007 ****
  82. --- 1008,1035 ----
  83.   #ifdef VMS
  84.         )
  85.   #endif /* VMS */
  86. + #else  /* OS2 */
  87. + /* Ok, it seems as if the following needs a little explanation:
  88. +    Line 1+2: Detects an absolute path name:
  89. +              ~ / \ indicate absolute pathnames if the previous character
  90. +          is / or \. : indicates absolute pathnames in the sequence
  91. +          /a: or \a:, where a is a character.
  92. +          In the case of / and \ it must be tested, if the sequence
  93. +          starts at the beginning of the file name, since the means
  94. +          name of the server on network software.
  95. +    Line 3:   If the above characters appear at the very beginning of a file
  96. +              name, nothing is to do, but this condition must be tested to
  97. +          secure line 3.
  98. +    Line 4:   Checks wether the chars from Line 1 really appear in sequences
  99. +              that indicates an absolute path name.
  100. +    Uff !
  101. + */
  102. +     
  103. +       if ( (p[0] == '~' || p[1] == ':' 
  104. +         || (p[0] == '/' && p-1!=nm) || (p[0] == '\\' && p-1!=nm))
  105. +           && p!=nm
  106. +       && (p[-1] == '/' || p[-1] == '\\'))
  107. + #endif /* OS2 */    
  108.       {
  109.         nm = p;
  110.         substituted = 1;
  111.  
  112. *** c:/emacs-18.58.3/emacs/src/keyboard.c    Sun Apr 19 18:03:46 1992
  113. --- c:/test/emacs/src/keyboard.c    Sat Jun 20 12:12:04 1992
  114. ***************
  115. *** 2047,2054 ****
  116.         /* Perhaps should really fork an inferior shell?
  117.        But that would not provide any way to get back
  118.        to the original shell, ever.  */
  119. !       printf ("No support for stopping a process on this operating system;\n");
  120. !       printf ("you can continue or abort.\n");
  121.   #endif /* not VMS */
  122.   #endif /* not SIGTSTP */
  123.         printf ("Auto-save? (y or n) ");
  124. --- 2047,2054 ----
  125.         /* Perhaps should really fork an inferior shell?
  126.        But that would not provide any way to get back
  127.        to the original shell, ever.  */
  128. !       printf ("No support for stopping a process on this operating system;\n\r");
  129. !       printf ("you can continue or abort.\n\r");
  130.   #endif /* not VMS */
  131.   #endif /* not SIGTSTP */
  132.         printf ("Auto-save? (y or n) ");
  133. ***************
  134. *** 2065,2071 ****
  135.         if (((c = getchar ()) & ~040) == 'Y')
  136.       abort ();
  137.         while (c != '\n') c = getchar ();
  138. !       printf ("Continuing...\n");
  139.         fflush (stdout);
  140.         init_sys_modes ();
  141.       }
  142. --- 2065,2071 ----
  143.         if (((c = getchar ()) & ~040) == 'Y')
  144.       abort ();
  145.         while (c != '\n') c = getchar ();
  146. !       printf ("Continuing...\n\r");
  147.         fflush (stdout);
  148.         init_sys_modes ();
  149.       }
  150.  
  151. *** c:/emacs-18.58.3/emacs/src/s-os2.h    Sun May 03 14:17:08 1992
  152. --- c:/test/emacs/src/s-os2.h    Sat Jun 20 11:27:50 1992
  153. ***************
  154. *** 1,5 ****
  155.   
  156. ! /* Definitions file for GNU Emacs running on AT&T's System V Release 3
  157.      Copyright (C) 1987 Free Software Foundation, Inc.
  158.   
  159.   This file is part of GNU Emacs.
  160. --- 1,5 ----
  161.   
  162. ! /* Definitions file for GNU Emacs running on IBM's OS/2 2.0
  163.      Copyright (C) 1987 Free Software Foundation, Inc.
  164.   
  165.   This file is part of GNU Emacs.
  166. ***************
  167. *** 223,225 ****
  168. --- 223,227 ----
  169.   #define SYSTEM_MALLOC
  170.   #define PURESIZE 200000
  171.   #define CANNOT_UNEXEC
  172. + #define SYMS_SYSTEM    syms_of_os2()
  173. + #define OBJECTS_SYSTEM os2.o
  174.  
  175.  
  176. *** c:/emacs-18.58.3/emacs/src/ymakefile    Sun Apr 19 17:47:48 1992
  177. --- c:/test/emacs/src/ymakefile    Tue Jun 23 12:01:26 1992
  178. ***************
  179. *** 333,346 ****
  180.       @if exist xemacs.exe del xemacs.exe
  181.       @ren temacs.exe xemacs.exe
  182.   #else
  183. -     echo Version is not incremented !
  184.   #    temacs -batch -l inc-vers
  185. -     temacs -batch -l loadup.el dump
  186.   #ifdef OS2
  187. !     emxbind -x temacs.exe a.out
  188. !     emxbind -ccore c:\emx\bin\emxl.exe a.out xemacs.exe
  189. !     del a.out
  190. !     del core
  191.   #endif /* not OS2 */
  192.   #endif /* not CANNOT_DUMP */
  193.   #endif /* not HAVE_SHM */
  194. --- 333,341 ----
  195.       @if exist xemacs.exe del xemacs.exe
  196.       @ren temacs.exe xemacs.exe
  197.   #else
  198.   #    temacs -batch -l inc-vers
  199.   #ifdef OS2
  200. !     cmd /c "dump-emacs.cmd"
  201.   #endif /* not OS2 */
  202.   #endif /* not CANNOT_DUMP */
  203.   #endif /* not HAVE_SHM */
  204. ***************
  205. *** 360,366 ****
  206.   #endif
  207.   
  208.   temacs.exe: MAKE_PARALLEL $(LOCALCPP) $(SHORT) $(STARTFILES) $(OLDXMENU) ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE
  209. !     $(LD) ${STARTFLAGS} ${LDFLAGS} -o temacs.exe ${STARTFILES} ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE ${LIBES}
  210.   
  211.   /* These are needed for C compilation, on the systems that need them */
  212.   #ifdef NEED_CPP
  213. --- 355,361 ----
  214.   #endif
  215.   
  216.   temacs.exe: MAKE_PARALLEL $(LOCALCPP) $(SHORT) $(STARTFILES) $(OLDXMENU) ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE
  217. !     $(LD) ${STARTFLAGS} ${LDFLAGS} -o temacs.exe ${STARTFILES} ${obj} ${otherobj} _fill.o read.o open.o OBJECTS_SYSTEM OBJECTS_MACHINE ${LIBES}
  218.   
  219.   /* These are needed for C compilation, on the systems that need them */
  220.   #ifdef NEED_CPP
  221. ***************
  222. *** 447,452 ****
  223. --- 442,450 ----
  224.   buffer.o : buffer.c syntax.h buffer.h commands.h window.h config.h 
  225.   callint.o : callint.c window.h commands.h buffer.h config.h 
  226.   callproc.o : callproc.c paths.h buffer.h commands.h config.h 
  227. + #ifdef OS2
  228. + os2.o : os2.c config.h
  229. + #endif
  230.   casefiddle.o : casefiddle.c syntax.h commands.h buffer.h config.h 
  231.   cm.o : cm.c cm.h termhooks.h config.h
  232.   cmds.o : cmds.c syntax.h buffer.h commands.h config.h 
  233.