home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / flex254.zip / MISC / EMX / patches.emx < prev   
Text File  |  1998-02-15  |  5KB  |  200 lines

  1. Only in new: FILE_ID.DIZ
  2. Only in new: README.EMX
  3. Only in new/MISC/EMX: patches.emx
  4. diff -cbr orig/flex.skl new/flex.skl
  5. *** orig/flex.skl    Wed Sep 11 01:58:54 1996
  6. --- new/flex.skl    Sun Feb 15 12:51:38 1998
  7. ***************
  8. *** 9,14 ****
  9. --- 9,17 ----
  10.   #define YY_FLEX_MINOR_VERSION 5
  11.   
  12.   %-
  13. + #ifdef __CRTRSXNT__
  14. + #include <crtrsxnt.h>
  15. + #endif
  16.   #include <stdio.h>
  17.   %*
  18.   
  19. diff -cbr orig/flexdef.h new/flexdef.h
  20. *** orig/flexdef.h    Sun Jul 27 04:42:50 1997
  21. --- new/flexdef.h    Sun Feb 15 13:53:02 1998
  22. ***************
  23. *** 28,37 ****
  24.   
  25.   /* @(#) $Header: /home/daffy/u0/vern/flex/RCS/flexdef.h,v 2.53 95/04/20 11:17:36 vern Exp $ (LBL) */
  26.   
  27.   #include <stdio.h>
  28.   #include <ctype.h>
  29. - #include "config.h"
  30.   
  31.   #ifdef __TURBOC__
  32.   #define HAVE_STRING_H 1
  33. --- 28,37 ----
  34.   
  35.   /* @(#) $Header: /home/daffy/u0/vern/flex/RCS/flexdef.h,v 2.53 95/04/20 11:17:36 vern Exp $ (LBL) */
  36.   
  37. + #include "config.h"
  38.   #include <stdio.h>
  39.   #include <ctype.h>
  40.   
  41.   #ifdef __TURBOC__
  42.   #define HAVE_STRING_H 1
  43. diff -cbr orig/main.c new/main.c
  44. *** orig/main.c    Sun Jul 27 04:32:18 1997
  45. --- new/main.c    Sun Feb 15 13:39:22 1998
  46. ***************
  47. *** 614,619 ****
  48. --- 614,625 ----
  49.            program_name[strlen( program_name ) - 1] == '+' )
  50.           C_plus_plus = true;
  51.   
  52. +     if ( (argc == 1) && isatty(fileno(stdin)) )
  53. +         {
  54. +         usage();
  55. +         exit(1);
  56. +             }
  57. +  
  58.       /* read flags */
  59.       for ( --argc, ++argv; argc ; --argc, ++argv )
  60.           {
  61. ***************
  62. *** 1113,1118 ****
  63. --- 1119,1125 ----
  64.       {
  65.       FILE *f = stdout;
  66.   
  67. +     fprintf( f, "\n%s version %s\n\n", program_name, flex_version );
  68.       fprintf( f,
  69.   _( "%s [-bcdfhilnpstvwBFILTV78+? -C[aefFmr] -ooutput -Pprefix -Sskeleton]\n" ),
  70.           program_name );
  71. diff -cbr orig/MISC/EMX/config.h new/MISC/EMX/config.h
  72. *** orig/MISC/EMX/config.h    Thu Apr 20 22:04:46 1995
  73. --- new/MISC/EMX/config.h    Sun Feb 15 13:52:40 1998
  74. ***************
  75. *** 1,5 ****
  76.   /* ------------------------------------------------ */
  77. ! /* version of config.h for OS/2                     */
  78.   /* ------------------------------------------------ */
  79.   
  80.   /* Define to empty if the keyword does not work.  */
  81. --- 1,5 ----
  82.   /* ------------------------------------------------ */
  83. ! /* version of config.h for emx+gcc                  */
  84.   /* ------------------------------------------------ */
  85.   
  86.   /* Define to empty if the keyword does not work.  */
  87. ***************
  88. *** 26,28 ****
  89. --- 26,33 ----
  90.   /* Define if platform-specific command line handling is necessary.  */
  91.   #define NEED_ARGV_FIXUP
  92.   #define argv_fixup(ac,av) { _response(ac,av); _wildcard(ac,av);}
  93. + #ifdef __CRTRSXNT__
  94. + #include <crtrsxnt.h>
  95. + #endif
  96. diff -cbr orig/MISC/EMX/Makefile.emx new/MISC/EMX/Makefile.emx
  97. *** orig/MISC/EMX/Makefile.emx    Thu Apr 20 22:01:28 1995
  98. --- new/MISC/EMX/Makefile.emx    Sun Feb 15 13:54:58 1998
  99. ***************
  100. *** 1,14 ****
  101.   # make file for "flex" tool, emx+gcc
  102.   
  103. ! release:
  104. !     $(MAKE) -f Makefile.os2 flex.exe \
  105. !     CC="gcc -Zomf -O" O=".obj" A=".lib" AR="emxomfar" \
  106.       LDFLAGS="-s -Zcrtdll -Zstack 512"
  107.   debug:
  108. !     $(MAKE) -f Makefile.os2 flex.exe \
  109.       CC="gcc -g" O=".o" A=".a" AR="ar"
  110.   
  111. ! CFLAGS = -DOS2 -DSHORT_FILE_NAMES
  112.   
  113.   YACC = bison 
  114.   FLEX = flex
  115. --- 1,20 ----
  116.   # make file for "flex" tool, emx+gcc
  117.   
  118. ! os2release:
  119. !     $(MAKE) -f Makefile.emx flex.exe \
  120. !     CC="gcc -Zomf -O" \
  121. !     O=".obj" A=".lib" AR="emxomfar" \
  122.       LDFLAGS="-s -Zcrtdll -Zstack 512"
  123. + w32release:
  124. +     $(MAKE) -f Makefile.emx flex.exe \
  125. +     CC="gcc -Zwin32 -Zcrtdll=crtrsxnt -O" \
  126. +     O=".o" A=".a" AR="ar" \
  127. +     LDFLAGS="-s -Zstack 512"
  128.   debug:
  129. !     $(MAKE) -f Makefile.emx flex.exe \
  130.       CC="gcc -g" O=".o" A=".a" AR="ar"
  131.   
  132. ! CFLAGS = -DSHORT_FILE_NAMES
  133.   
  134.   YACC = bison 
  135.   FLEX = flex
  136. ***************
  137. *** 55,64 ****
  138.   tblcmp$O : tblcmp.c flexdef.h
  139.   yylex$O : yylex.c flexdef.h
  140.   
  141. ! skel.c: flex.skl mkskel.sh
  142. !     $(SHELL) mkskel.sh flex.skl >skel.c
  143.   
  144. ! test : flex
  145.       flex $(FLEX_FLAGS) $(COMPRESSION) scan.l | diff scan.c -
  146.   
  147.   bigtest :
  148. --- 61,70 ----
  149.   tblcmp$O : tblcmp.c flexdef.h
  150.   yylex$O : yylex.c flexdef.h
  151.   
  152. ! #skel.c: flex.skl mkskel.sh
  153. ! #    $(SHELL) mkskel.sh flex.skl >skel.c
  154.   
  155. ! test:
  156.       flex $(FLEX_FLAGS) $(COMPRESSION) scan.l | diff scan.c -
  157.   
  158.   bigtest :
  159. diff -cbr orig/skel.c new/skel.c
  160. *** orig/skel.c    Wed Sep 11 02:00:38 1996
  161. --- new/skel.c    Sun Feb 15 13:48:26 1998
  162. ***************
  163. *** 14,19 ****
  164. --- 14,22 ----
  165.     "#define YY_FLEX_MINOR_VERSION 5",
  166.     "",
  167.     "%-",
  168. +   "#ifdef __CRTRSXNT__",
  169. +   "#include <crtrsxnt.h>",
  170. +   "#endif",
  171.     "#include <stdio.h>",
  172.     "%*",
  173.     "",
  174. diff -cbr orig/yylex.c new/yylex.c
  175. *** orig/yylex.c    Sun Jul 27 04:32:20 1997
  176. --- new/yylex.c    Sun Feb 15 14:00:48 1998
  177. ***************
  178. *** 28,35 ****
  179.   
  180.   /* $Header: /home/daffy/u0/vern/flex/RCS/yylex.c,v 2.13 95/03/04 16:10:41 vern Exp $ */
  181.   
  182. - #include <ctype.h>
  183.   #include "flexdef.h"
  184.   #include "parse.h"
  185.   
  186.   
  187. --- 28,35 ----
  188.   
  189.   /* $Header: /home/daffy/u0/vern/flex/RCS/yylex.c,v 2.13 95/03/04 16:10:41 vern Exp $ */
  190.   
  191.   #include "flexdef.h"
  192. + #include <ctype.h>
  193.   #include "parse.h"
  194.   
  195.   
  196.