home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / bbs / gnu / flex-2.4.7-src.lha / GNU / src / amiga / flex-2.4.7 / MISC / MVS / diffs next >
Encoding:
Text File  |  1990-07-17  |  20.4 KB  |  855 lines

  1. diff -c ../Makefile ./Makefile
  2. *** ../Makefile    Thu Jun 28 00:44:07 1990
  3. --- ./Makefile    Mon Jul 16 13:57:26 1990
  4. ***************
  5. *** 39,49 ****
  6.   # AUXDIR, manual pages will be installed in MANDIR with extension MANEXT.
  7.   # Raw, unformatted troff source will be installed if INSTALLMAN=man, nroff
  8.   # preformatted versions will be installed if INSTALLMAN=cat.
  9. ! DESTDIR =
  10.   BINDIR = /usr/local
  11.   LIBDIR = /usr/local/lib
  12.   AUXDIR = /usr/local/lib
  13.   MANDIR = /usr/man/manl
  14.   MANEXT = l
  15.   INSTALLMAN = man
  16.   
  17. --- 39,50 ----
  18.   # AUXDIR, manual pages will be installed in MANDIR with extension MANEXT.
  19.   # Raw, unformatted troff source will be installed if INSTALLMAN=man, nroff
  20.   # preformatted versions will be installed if INSTALLMAN=cat.
  21. ! DESTDIR = /projects/m751stereo/code/c/swl26
  22.   BINDIR = /usr/local
  23.   LIBDIR = /usr/local/lib
  24.   AUXDIR = /usr/local/lib
  25.   MANDIR = /usr/man/manl
  26. + INCLUDEDIR = .
  27.   MANEXT = l
  28.   INSTALLMAN = man
  29.   
  30. ***************
  31. *** 52,58 ****
  32.   
  33.   SKELETON_FILE = $(DESTDIR)$(AUXDIR)/flex.skel
  34.   SKELFLAGS = -DDEFAULT_SKELETON_FILE=\"$(SKELETON_FILE)\"
  35. ! CFLAGS = -O
  36.   LDFLAGS = -s
  37.   
  38.   COMPRESSION =
  39. --- 53,59 ----
  40.   
  41.   SKELETON_FILE = $(DESTDIR)$(AUXDIR)/flex.skel
  42.   SKELFLAGS = -DDEFAULT_SKELETON_FILE=\"$(SKELETON_FILE)\"
  43. ! CFLAGS = -O -DUSG -I$(INCLUDEDIR)
  44.   LDFLAGS = -s
  45.   
  46.   COMPRESSION =
  47. diff -c ../ccl.c ./ccl.c
  48. *** ../ccl.c    Thu Jun 28 00:44:07 1990
  49. --- ./ccl.c    Mon Jul 16 13:57:27 1990
  50. ***************
  51. *** 28,37 ****
  52.   
  53.   #ifndef lint
  54.   static char rcsid[] =
  55. !     "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/ccl.c,v 2.5 90/06/27 23:48:13 vern Exp $ (LBL)";
  56.   #endif
  57.   
  58. ! #include "flexdef.h"
  59.   
  60.   /* ccladd - add a single character to a ccl
  61.    *
  62. --- 28,37 ----
  63.   
  64.   #ifndef lint
  65.   static char rcsid[] =
  66. !     "@(#) $Header: ccl.c,v 2.5 90/06/27 23:48:13 vern Exp $ (LBL)";
  67.   #endif
  68.   
  69. ! #include <flexdef.h>
  70.   
  71.   /* ccladd - add a single character to a ccl
  72.    *
  73. diff -c ../dfa.c ./dfa.c
  74. *** ../dfa.c    Thu Jun 28 00:44:08 1990
  75. --- ./dfa.c    Mon Jul 16 13:57:28 1990
  76. ***************
  77. *** 28,37 ****
  78.   
  79.   #ifndef lint
  80.   static char rcsid[] =
  81. !     "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/dfa.c,v 2.7 90/06/27 23:48:15 vern Exp $ (LBL)";
  82.   #endif
  83.   
  84. ! #include "flexdef.h"
  85.   
  86.   
  87.   /* declare functions that have forward references */
  88. --- 28,38 ----
  89.   
  90.   #ifndef lint
  91.   static char rcsid[] =
  92. !     "@(#) $Header: dfa.c,v 2.7 90/06/27 23:48:15 vern Exp $ (LBL)";
  93.   #endif
  94.   
  95. ! #include <flexdef.h>
  96. ! #include <ctype.h>
  97.   
  98.   
  99.   /* declare functions that have forward references */
  100. ***************
  101. *** 682,688 ****
  102.           register int j;
  103.   
  104.           for ( i = 'A', j = 'a'; i <= 'Z'; ++i, ++j )
  105. !         state[i] = state[j];
  106.           }
  107.   
  108.       if ( ds > num_start_states )
  109. --- 683,692 ----
  110.           register int j;
  111.   
  112.           for ( i = 'A', j = 'a'; i <= 'Z'; ++i, ++j )
  113. !         {
  114. !         if (isupper(i) )
  115. !            state[i] = state[j];
  116. !         }
  117.           }
  118.   
  119.       if ( ds > num_start_states )
  120. ***************
  121. *** 958,964 ****
  122.               }
  123.           }
  124.   
  125. !     else if ( sym >= 'A' && sym <= 'Z' && caseins )
  126.           flexfatal( "consistency check failed in symfollowset" );
  127.   
  128.       else if ( sym == SYM_EPSILON )
  129. --- 962,968 ----
  130.               }
  131.           }
  132.   
  133. !     else if ( isupper ( sym ) && caseins )
  134.           flexfatal( "consistency check failed in symfollowset" );
  135.   
  136.       else if ( sym == SYM_EPSILON )
  137. Only in .: diffs
  138. Only in .: diffs.new
  139. diff -c ../ecs.c ./ecs.c
  140. *** ../ecs.c    Thu Jun 28 00:44:08 1990
  141. --- ./ecs.c    Mon Jul 16 13:57:28 1990
  142. ***************
  143. *** 28,37 ****
  144.   
  145.   #ifndef lint
  146.   static char rcsid[] =
  147. !     "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/ecs.c,v 2.5 90/06/27 23:48:17 vern Exp $ (LBL)";
  148.   #endif
  149.   
  150. ! #include "flexdef.h"
  151.   
  152.   /* ccl2ecl - convert character classes to set of equivalence classes
  153.    *
  154. --- 28,37 ----
  155.   
  156.   #ifndef lint
  157.   static char rcsid[] =
  158. !     "@(#) $Header: ecs.c,v 2.5 90/06/27 23:48:17 vern Exp $ (LBL)";
  159.   #endif
  160.   
  161. ! #include <flexdef.h>
  162.   
  163.   /* ccl2ecl - convert character classes to set of equivalence classes
  164.    *
  165. diff -c ../flex.skel ./flex.skel
  166. *** ../flex.skel    Thu Jun 28 00:44:27 1990
  167. --- ./flex.skel    Mon Jul 16 13:57:29 1990
  168. ***************
  169. *** 1,7 ****
  170.   /* A lexical scanner generated by flex */
  171.   
  172.   /* scanner skeleton version:
  173. !  * $Header: /usr/fsys/odin/a/vern/flex/RCS/flex.skel,v 2.13 90/05/26 17:24:13 vern Exp $
  174.    */
  175.   
  176.   #define FLEX_SCANNER
  177. --- 1,7 ----
  178.   /* A lexical scanner generated by flex */
  179.   
  180.   /* scanner skeleton version:
  181. !  * $Header: flex.skel,v 2.13 90/05/26 17:24:13 vern Exp $
  182.    */
  183.   
  184.   #define FLEX_SCANNER
  185. diff -c ../flexdef.h ./flexdef.h
  186. *** ../flexdef.h    Thu Jun 28 00:44:27 1990
  187. --- ./flexdef.h    Mon Jul 16 13:57:30 1990
  188. ***************
  189. *** 26,32 ****
  190.    * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  191.    */
  192.   
  193. ! /* @(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/flexdef.h,v 2.7 90/06/27 23:48:19 vern Exp $ (LBL) */
  194.   
  195.   #ifndef FILE
  196.   #include <stdio.h>
  197. --- 26,32 ----
  198.    * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  199.    */
  200.   
  201. ! /* @(#) $Header: flexdef.h,v 2.7 90/06/27 23:48:19 vern Exp $ (LBL) */
  202.   
  203.   #ifndef FILE
  204.   #include <stdio.h>
  205. ***************
  206. *** 45,51 ****
  207.   
  208.   /* size of input alphabet - should be size of ASCII set */
  209.   #ifndef DEFAULT_CSIZE
  210. ! #define DEFAULT_CSIZE 128
  211.   #endif
  212.   
  213.   #ifndef PROTO
  214. --- 45,51 ----
  215.   
  216.   /* size of input alphabet - should be size of ASCII set */
  217.   #ifndef DEFAULT_CSIZE
  218. ! #define DEFAULT_CSIZE 256
  219.   #endif
  220.   
  221.   #ifndef PROTO
  222. ***************
  223. *** 90,96 ****
  224. --- 90,98 ----
  225.   #define SHORT_FILE_NAMES
  226.   #endif
  227.   
  228. + #ifndef OSVS
  229.   char *malloc(), *realloc();
  230. + #endif
  231.   
  232.   
  233.   /* maximum line length we'll have to deal with */
  234. ***************
  235. *** 116,125 ****
  236.   #define true 1
  237.   #define false 0
  238.   
  239.   #ifndef DEFAULT_SKELETON_FILE
  240.   #define DEFAULT_SKELETON_FILE "flex.skel"
  241. ! #endif
  242.   
  243.   /* special chk[] values marking the slots taking by end-of-buffer and action
  244.    * numbers
  245. --- 118,132 ----
  246.   #define true 1
  247.   #define false 0
  248.   
  249.   #ifndef DEFAULT_SKELETON_FILE
  250. + #ifdef OSVS
  251. + #define DEFAULT_SKELETON_FILE "ctri01"
  252. + #define SYSUT1    "sysut1" 
  253. + #define SYSUT2    "sysut2" 
  254. + #else
  255.   #define DEFAULT_SKELETON_FILE "flex.skel"
  256. ! #endif /* OSVS */
  257. ! #endif /* DEFAULT_SKELETON_FILE */
  258.   
  259.   /* special chk[] values marking the slots taking by end-of-buffer and action
  260.    * numbers
  261. ***************
  262. *** 226,233 ****
  263.   #define INITIAL_MAX_SCS 40    /* maximum number of start conditions */
  264.   #define MAX_SCS_INCREMENT 40    /* amount to bump by if it's not enough */
  265.   
  266. ! #define ONE_STACK_SIZE 500    /* stack of states with only one out-transition */
  267. ! #define SAME_TRANS -1    /* transition is the same as "default" entry for state */
  268.   
  269.   /* the following percentages are used to tune table compression:
  270.   
  271. --- 233,240 ----
  272.   #define INITIAL_MAX_SCS 40    /* maximum number of start conditions */
  273.   #define MAX_SCS_INCREMENT 40    /* amount to bump by if it's not enough */
  274.   
  275. ! #define ONE_STACK_SIZE 500  /*stack of states with only one out-transition*/
  276. ! #define SAME_TRANS -1 /*transition is the same as "default" entry for state */
  277.   
  278.   /* the following percentages are used to tune table compression:
  279.   
  280. diff -c ../gen.c ./gen.c
  281. *** ../gen.c    Thu Jun 28 00:44:28 1990
  282. --- ./gen.c    Mon Jul 16 13:57:32 1990
  283. ***************
  284. *** 28,37 ****
  285.   
  286.   #ifndef lint
  287.   static char rcsid[] =
  288. !     "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/gen.c,v 2.9 90/06/27 23:48:22 vern Exp $ (LBL)";
  289.   #endif
  290.   
  291. ! #include "flexdef.h"
  292.   
  293.   
  294.   /* declare functions that have forward references */
  295. --- 28,37 ----
  296.   
  297.   #ifndef lint
  298.   static char rcsid[] =
  299. !     "@(#) $Header: gen.c,v 2.9 90/06/27 23:48:22 vern Exp $ (LBL)";
  300.   #endif
  301.   
  302. ! #include <flexdef.h>
  303.   
  304.   
  305.   /* declare functions that have forward references */
  306. ***************
  307. *** 292,298 ****
  308.   
  309.       indent_puts( "{" );
  310.   
  311. !     indent_puts( "if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )" );
  312.       indent_up();
  313.       indent_puts( "{" );
  314.       indent_puts( "yy_act = yy_acclist[yy_lp];" );
  315. --- 292,298 ----
  316.   
  317.       indent_puts( "{" );
  318.   
  319. !     indent_puts("if( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )");
  320.       indent_up();
  321.       indent_puts( "{" );
  322.       indent_puts( "yy_act = yy_acclist[yy_lp];" );
  323. diff -c ../initscan.c ./initscan.c
  324. *** ../initscan.c    Thu Jun 28 00:44:51 1990
  325. --- ./initscan.c    Mon Jul 16 13:57:33 1990
  326. ***************
  327. *** 1,7 ****
  328.   /* A lexical scanner generated by flex */
  329.   
  330.   /* scanner skeleton version:
  331. !  * $Header: /usr/fsys/odin/a/vern/flex/RCS/flex.skel,v 2.13 90/05/26 17:24:13 vern Exp $
  332.    */
  333.   
  334.   #define FLEX_SCANNER
  335. --- 1,7 ----
  336.   /* A lexical scanner generated by flex */
  337.   
  338.   /* scanner skeleton version:
  339. !  * $Header: flex.skel,v 2.13 90/05/26 17:24:13 vern Exp $
  340.    */
  341.   
  342.   #define FLEX_SCANNER
  343. ***************
  344. *** 193,199 ****
  345.   
  346.   #ifndef lint
  347.   static char rcsid[] =
  348. !     "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/scan.l,v 2.9 90/06/27 23:48:34 vern Exp $ (LBL)";
  349.   #endif
  350.   
  351.   #undef yywrap
  352. --- 193,199 ----
  353.   
  354.   #ifndef lint
  355.   static char rcsid[] =
  356. !     "@(#) $Header: scan.l,v 2.9 90/06/27 23:48:34 vern Exp $ (LBL)";
  357.   #endif
  358.   
  359.   #undef yywrap
  360. diff -c ../libmain.c ./libmain.c
  361. *** ../libmain.c    Thu Jun 28 00:44:28 1990
  362. --- ./libmain.c    Mon Jul 16 13:57:34 1990
  363. ***************
  364. *** 1,6 ****
  365.   /* libmain - flex run-time support library "main" function */
  366.   
  367. ! /* $Header: /usr/fsys/odin/a/vern/flex/RCS/libmain.c,v 1.2 90/05/26 16:50:08 vern Exp $ */
  368.   
  369.   extern int yylex();
  370.   
  371. --- 1,6 ----
  372.   /* libmain - flex run-time support library "main" function */
  373.   
  374. ! /* $Header: libmain.c,v 1.2 90/05/26 16:50:08 vern Exp $ */
  375.   
  376.   extern int yylex();
  377.   
  378. diff -c ../main.c ./main.c
  379. *** ../main.c    Thu Jun 28 00:44:29 1990
  380. --- ./main.c    Mon Jul 16 13:57:34 1990
  381. ***************
  382. *** 34,44 ****
  383.   
  384.   #ifndef lint
  385.   static char rcsid[] =
  386. !     "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/main.c,v 2.9 90/06/27 23:48:24 vern Exp $ (LBL)";
  387.   #endif
  388.   
  389.   
  390. ! #include "flexdef.h"
  391.   
  392.   static char flex_version[] = "2.3";
  393.   
  394. --- 34,44 ----
  395.   
  396.   #ifndef lint
  397.   static char rcsid[] =
  398. !     "@(#) $Header: main.c,v 2.9 90/06/27 23:48:24 vern Exp $ (LBL)";
  399.   #endif
  400.   
  401.   
  402. ! #include <flexdef.h>
  403.   
  404.   static char flex_version[] = "2.3";
  405.   
  406. ***************
  407. *** 97,106 ****
  408.   char *program_name;
  409.   
  410.   #ifndef SHORT_FILE_NAMES
  411.   static char *outfile = "lex.yy.c";
  412. ! #else
  413.   static char *outfile = "lexyy.c";
  414. ! #endif
  415.   static int outfile_created = 0;
  416.   static int use_stdout;
  417.   static char *skelname = NULL;
  418. --- 97,110 ----
  419.   char *program_name;
  420.   
  421.   #ifndef SHORT_FILE_NAMES
  422. + #ifdef OSVS
  423. + static char *outfile = "ctro01";
  424. + #else    /* not OSVS */
  425.   static char *outfile = "lex.yy.c";
  426. ! #endif  /* not OSVS */
  427. ! #else  /* SHORT_FILE_NAMES */
  428.   static char *outfile = "lexyy.c";
  429. ! #endif  /* SHORT_FILE_NAMES */
  430.   static int outfile_created = 0;
  431.   static int use_stdout;
  432.   static char *skelname = NULL;
  433. ***************
  434. *** 209,216 ****
  435. --- 213,222 ----
  436.       else if ( fclose( temp_action_file ) )
  437.           flexfatal( "error occurred when closing temporary action file" );
  438.   
  439. + #ifndef OSVS
  440.       else if ( unlink( action_file_name ) )
  441.           flexfatal( "error occurred when deleting temporary action file" );
  442. + #endif
  443.       }
  444.   
  445.       if ( status != 0 && outfile_created )
  446. ***************
  447. *** 221,228 ****
  448. --- 227,236 ----
  449.       else if ( fclose( stdout ) )
  450.           flexfatal( "error occurred when closing output file" );
  451.   
  452. + #ifndef OSVS
  453.       else if ( unlink( outfile ) )
  454.           flexfatal( "error occurred when deleting output file" );
  455. + #endif
  456.       }
  457.   
  458.       if ( backtrack_report && backtrack_file )
  459. ***************
  460. *** 574,583 ****
  461.       if ( backtrack_report )
  462.       {
  463.   #ifndef SHORT_FILE_NAMES
  464.       backtrack_file = fopen( "lex.backtrack", "w" );
  465. ! #else
  466.       backtrack_file = fopen( "lex.bck", "w" );
  467. ! #endif
  468.   
  469.       if ( backtrack_file == NULL )
  470.           flexerror( "could not create lex.backtrack" );
  471. --- 582,595 ----
  472.       if ( backtrack_report )
  473.       {
  474.   #ifndef SHORT_FILE_NAMES
  475. + #ifdef OSVS
  476. +     backtrack_file = fopen( SYSUT2, "w");
  477. + #else   /* not OSVS */
  478.       backtrack_file = fopen( "lex.backtrack", "w" );
  479. ! #endif    /* OSVS */
  480. ! #else   /* SHORT_FILE_NAMES  */
  481.       backtrack_file = fopen( "lex.bck", "w" );
  482. ! #endif  /* SHORT_FILE_NAMES */
  483.   
  484.       if ( backtrack_file == NULL )
  485.           flexerror( "could not create lex.backtrack" );
  486. ***************
  487. *** 597,604 ****
  488.       lerrsf( "can't open skeleton file %s", skelname );
  489.   
  490.   #ifdef SYS_V
  491.       action_file_name = tmpnam( NULL );
  492. ! #endif
  493.   
  494.       if ( action_file_name == NULL )
  495.       {
  496. --- 609,620 ----
  497.       lerrsf( "can't open skeleton file %s", skelname );
  498.   
  499.   #ifdef SYS_V
  500. + #ifndef OSVS
  501.       action_file_name = tmpnam( NULL );
  502. ! #else    /* OSVS */
  503. !     action_file_name = SYSUT1;
  504. ! #endif    /* OSVS */
  505. ! #endif    /* SYS_V */
  506.   
  507.       if ( action_file_name == NULL )
  508.       {
  509. ***************
  510. *** 609,615 ****
  511. --- 625,636 ----
  512.   #else
  513.       (void) strcpy( temp_action_file_name, "flexXXXXXX.tmp" );
  514.   #endif
  515. + #ifndef OSVS
  516.       (void) mktemp( temp_action_file_name );
  517. + #else    /* OSVS */
  518. +     /* should never be executed in OSVS as IF should always be false  */
  519. +     (void) strcpy( temp_action_file_name, SYSUT1 ) ;
  520. + #endif  /* OSVS */
  521.   
  522.       action_file_name = temp_action_file_name;
  523.       }
  524. diff -c ../misc.c ./misc.c
  525. *** ../misc.c    Thu Jun 28 00:44:40 1990
  526. --- ./misc.c    Mon Jul 16 13:57:35 1990
  527. ***************
  528. *** 28,38 ****
  529.   
  530.   #ifndef lint
  531.   static char rcsid[] =
  532. !     "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/misc.c,v 2.7 90/06/27 23:48:27 vern Exp $ (LBL)";
  533.   #endif
  534.   
  535.   #include <ctype.h>
  536. ! #include "flexdef.h"
  537.   
  538.   
  539.   /* ANSI C does not guarantee that isascii() is defined */
  540. --- 28,38 ----
  541.   
  542.   #ifndef lint
  543.   static char rcsid[] =
  544. !     "@(#) $Header: misc.c,v 2.7 90/06/27 23:48:27 vern Exp $ (LBL)";
  545.   #endif
  546.   
  547.   #include <ctype.h>
  548. ! #include <flexdef.h>
  549.   
  550.   
  551.   /* ANSI C does not guarantee that isascii() is defined */
  552. ***************
  553. *** 107,113 ****
  554. --- 107,117 ----
  555.       {
  556.       while ( *str )
  557.       {
  558. + #ifdef OSVS
  559. +     if ( ! islower( *str ) )
  560. + #else
  561.       if ( ! isascii( *str ) || ! islower( *str ) )
  562. + #endif
  563.           return ( 0 );
  564.       ++str;
  565.       }
  566. ***************
  567. *** 130,136 ****
  568. --- 134,144 ----
  569.       {
  570.       while ( *str )
  571.       {
  572. + #ifdef OSVS
  573. +     if ( ! isupper( (char) *str ) )
  574. + #else
  575.       if ( ! isascii( *str ) || ! isupper( (char) *str ) )
  576. + #endif
  577.           return ( 0 );
  578.       ++str;
  579.       }
  580. ***************
  581. *** 182,188 ****
  582. --- 190,200 ----
  583.   register int c;
  584.   
  585.       {
  586. + #ifdef OSVS
  587. +     return ( isupper( c ) ? (Char) tolower( c ) : (Char) c );
  588. + #else
  589.       return ( (isascii( c ) && isupper( c )) ? tolower( c ) : c );
  590. + #endif
  591.       }
  592.   
  593.   
  594. ***************
  595. *** 204,210 ****
  596.       for ( c = str; *c; ++c )
  597.       ;
  598.   
  599. !     copy = malloc( (unsigned) ((c - str + 1) * sizeof( char )) );
  600.   
  601.       if ( copy == NULL )
  602.       flexfatal( "dynamic memory failure in copy_string()" );
  603. --- 216,222 ----
  604.       for ( c = str; *c; ++c )
  605.       ;
  606.   
  607. !     copy = (char *) malloc( (unsigned) ((c - str + 1) * sizeof( char )) );
  608.   
  609.       if ( copy == NULL )
  610.       flexfatal( "dynamic memory failure in copy_string()" );
  611. ***************
  612. *** 392,403 ****
  613. --- 404,421 ----
  614.   
  615.   #ifndef MS_DOS
  616.   #ifndef VMS
  617. + #ifndef OSVS
  618.   #include <sys/types.h>
  619. + #endif  /* OSVS */
  620.   #else
  621.   #include <types.h>
  622.   #endif
  623.   #endif
  624.   
  625. + #ifdef OSVS
  626. + #include <time.h>
  627. + #endif /* OSVS */
  628.   #ifdef MS_DOS
  629.   #include <time.h>
  630.   typedef long time_t;
  631. ***************
  632. *** 615,621 ****
  633. --- 633,643 ----
  634.           if ( array[1] == 'x' )
  635.           ++sptr;
  636.   
  637. + #ifdef OSVS
  638. +         while ( isdigit( array[sptr] ) )
  639. + #else
  640.           while ( isascii( array[sptr] ) && isdigit( array[sptr] ) )
  641. + #endif
  642.           /* don't increment inside loop control because if
  643.            * isdigit() is a macro it will expand it to two
  644.            * increments ...
  645. Only in ..: new
  646. diff -c ../nfa.c ./nfa.c
  647. *** ../nfa.c    Thu Jun 28 00:44:40 1990
  648. --- ./nfa.c    Mon Jul 16 13:57:36 1990
  649. ***************
  650. *** 28,37 ****
  651.   
  652.   #ifndef lint
  653.   static char rcsid[] =
  654. !     "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/nfa.c,v 2.6 90/06/27 23:48:29 vern Exp $ (LBL)";
  655.   #endif
  656.   
  657. ! #include "flexdef.h"
  658.   
  659.   
  660.   /* declare functions that have forward references */
  661. --- 28,37 ----
  662.   
  663.   #ifndef lint
  664.   static char rcsid[] =
  665. !     "@(#) $Header: nfa.c,v 2.6 90/06/27 23:48:29 vern Exp $ (LBL)";
  666.   #endif
  667.   
  668. ! #include <flexdef.h>
  669.   
  670.   
  671.   /* declare functions that have forward references */
  672. ***************
  673. *** 110,116 ****
  674.       {
  675.       int sym, tsp1, tsp2, anum, ns;
  676.   
  677. !     fprintf( stderr, "\n\n********** beginning dump of nfa with start state %d\n",
  678.            state1 );
  679.   
  680.       /* we probably should loop starting at firstst[state1] and going to
  681. --- 110,116 ----
  682.       {
  683.       int sym, tsp1, tsp2, anum, ns;
  684.   
  685. !     fprintf(stderr,"\n\n********* beginning dump of nfa with start state %d\n",
  686.            state1 );
  687.   
  688.       /* we probably should loop starting at firstst[state1] and going to
  689. diff -c ../parse.y ./parse.y
  690. *** ../parse.y    Thu Jun 28 00:44:40 1990
  691. --- ./parse.y    Mon Jul 16 13:57:36 1990
  692. ***************
  693. *** 32,45 ****
  694.   
  695.   #ifndef lint
  696.   static char rcsid[] =
  697. !     "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/parse.y,v 2.7 90/06/27 23:48:31 vern Exp $ (LBL)";
  698.   #endif
  699.   
  700. ! #include "flexdef.h"
  701.   
  702.   int pat, scnum, eps, headcnt, trailcnt, anyccl, lastchar, i, actvp, rulelen;
  703.   int trlcontxt, xcluflg, cclsorted, varlength, variable_trail_rule;
  704.   Char clower();
  705.   
  706.   static int madeany = false;  /* whether we've made the '.' character class */
  707.   int previous_continued_action;    /* whether the previous rule's action was '|' */
  708. --- 32,47 ----
  709.   
  710.   #ifndef lint
  711.   static char rcsid[] =
  712. !     "@(#) $Header: parse.y,v 2.7 90/06/27 23:48:31 vern Exp $ (LBL)";
  713.   #endif
  714.   
  715. ! #include <flexdef.h>
  716.   
  717.   int pat, scnum, eps, headcnt, trailcnt, anyccl, lastchar, i, actvp, rulelen;
  718.   int trlcontxt, xcluflg, cclsorted, varlength, variable_trail_rule;
  719.   Char clower();
  720. + void build_eof_action();
  721. + void yyerror();
  722.   
  723.   static int madeany = false;  /* whether we've made the '.' character class */
  724.   int previous_continued_action;    /* whether the previous rule's action was '|' */
  725. diff -c ../scan.l ./scan.l
  726. *** ../scan.l    Thu Jun 28 00:44:41 1990
  727. --- ./scan.l    Mon Jul 16 13:57:37 1990
  728. ***************
  729. *** 30,42 ****
  730.   
  731.   #ifndef lint
  732.   static char rcsid[] =
  733. !     "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/scan.l,v 2.9 90/06/27 23:48:34 vern Exp $ (LBL)";
  734.   #endif
  735.   
  736.   #undef yywrap
  737.   
  738. ! #include "flexdef.h"
  739. ! #include "parse.h"
  740.   
  741.   #define ACTION_ECHO fprintf( temp_action_file, "%s", yytext )
  742.   #define MARK_END_OF_PROLOG fprintf( temp_action_file, "%%%% end of prolog\n" );
  743. --- 30,42 ----
  744.   
  745.   #ifndef lint
  746.   static char rcsid[] =
  747. !     "@(#) $Header: scan.l,v 2.9 90/06/27 23:48:34 vern Exp $ (LBL)";
  748.   #endif
  749.   
  750.   #undef yywrap
  751.   
  752. ! #include <flexdef.h>
  753. ! #include <parse.h>
  754.   
  755.   #define ACTION_ECHO fprintf( temp_action_file, "%s", yytext )
  756.   #define MARK_END_OF_PROLOG fprintf( temp_action_file, "%%%% end of prolog\n" );
  757. diff -c ../sym.c ./sym.c
  758. *** ../sym.c    Thu Jun 28 00:44:41 1990
  759. --- ./sym.c    Mon Jul 16 13:57:37 1990
  760. ***************
  761. *** 28,37 ****
  762.   
  763.   #ifndef lint
  764.   static char rcsid[] =
  765. !     "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/sym.c,v 2.4 90/06/27 23:48:36 vern Exp $ (LBL)";
  766.   #endif
  767.   
  768. ! #include "flexdef.h"
  769.   
  770.   
  771.   /* declare functions that have forward references */
  772. --- 28,37 ----
  773.   
  774.   #ifndef lint
  775.   static char rcsid[] =
  776. !     "@(#) $Header: sym.c,v 2.4 90/06/27 23:48:36 vern Exp $ (LBL)";
  777.   #endif
  778.   
  779. ! #include <flexdef.h>
  780.   
  781.   
  782.   /* declare functions that have forward references */
  783. diff -c ../tblcmp.c ./tblcmp.c
  784. *** ../tblcmp.c    Thu Jun 28 00:44:41 1990
  785. --- ./tblcmp.c    Mon Jul 16 13:57:38 1990
  786. ***************
  787. *** 28,37 ****
  788.   
  789.   #ifndef lint
  790.   static char rcsid[] =
  791. !     "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/tblcmp.c,v 2.5 90/06/27 23:48:38 vern Exp $ (LBL)";
  792.   #endif
  793.   
  794. ! #include "flexdef.h"
  795.   
  796.   
  797.   /* declarations for functions that have forward references */
  798. --- 28,37 ----
  799.   
  800.   #ifndef lint
  801.   static char rcsid[] =
  802. !     "@(#) $Header: tblcmp.c,v 2.5 90/06/27 23:48:38 vern Exp $ (LBL)";
  803.   #endif
  804.   
  805. ! #include <flexdef.h>
  806.   
  807.   
  808.   /* declarations for functions that have forward references */
  809. diff -c ../yylex.c ./yylex.c
  810. *** ../yylex.c    Thu Jun 28 00:44:41 1990
  811. --- ./yylex.c    Mon Jul 16 13:57:38 1990
  812. ***************
  813. *** 28,39 ****
  814.   
  815.   #ifndef lint
  816.   static char rcsid[] =
  817. !     "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/yylex.c,v 2.5 90/06/27 23:48:40 vern Exp $ (LBL)";
  818.   #endif
  819.   
  820.   #include <ctype.h>
  821. ! #include "flexdef.h"
  822. ! #include "parse.h"
  823.   
  824.   
  825.   /* ANSI C does not guarantee that isascii() is defined */
  826. --- 28,39 ----
  827.   
  828.   #ifndef lint
  829.   static char rcsid[] =
  830. !     "@(#) $Header: yylex.c,v 2.5 90/06/27 23:48:40 vern Exp $ (LBL)";
  831.   #endif
  832.   
  833.   #include <ctype.h>
  834. ! #include <flexdef.h>
  835. ! #include <parse.h>
  836.   
  837.   
  838.   /* ANSI C does not guarantee that isascii() is defined */
  839. ***************
  840. *** 180,186 ****
  841. --- 180,190 ----
  842.               break;
  843.   
  844.               default:
  845. + #ifdef OSVS
  846. +             if ( ! isprint( yylval ) )
  847. + #else
  848.               if ( ! isascii( yylval ) || ! isprint( yylval ) )
  849. + #endif
  850.                   fprintf( stderr, "\\%.3o", yylval );
  851.               else
  852.                   (void) putc( yylval, stderr );
  853.