home *** CD-ROM | disk | FTP | other *** search
- Only in new: Makefile.os2
- Only in new: parse.c
- Only in new: parse.h
- Only in new: patches.os2
- diff -cbr orig/flexdef.h new/flexdef.h
- *** orig/flexdef.h Tue Jan 04 23:33:14 1994
- --- new/flexdef.h Sun Jan 09 22:20:50 1994
- ***************
- *** 41,46 ****
- --- 41,50 ----
- #include <stdlib.h>
- #endif
-
- + #ifdef __STDC__
- + #include <stdlib.h>
- + #endif
- +
- /* Always be prepared to generate an 8-bit scanner. */
- #define CSIZE 256
- #define Char unsigned char
- diff -cbr orig/main.c new/main.c
- *** orig/main.c Tue Jan 04 23:33:12 1994
- --- new/main.c Sun Jan 09 22:20:52 1994
- ***************
- *** 394,399 ****
- --- 394,405 ----
- program_name[strlen( program_name ) - 1] == '+' )
- C_plus_plus = true;
-
- + if ( (argc == 1) && isatty(fileno(stdin)) )
- + {
- + usage();
- + exit(1);
- + }
- +
- /* read flags */
- for ( --argc, ++argv; argc ; --argc, ++argv )
- {
- ***************
- *** 940,947 ****
-
- void usage()
- {
- fprintf( stderr,
- ! "%s [-bcdfhilnpstvwBFILTV78+ -C[aefFmr] -Pprefix -Sskeleton] [file ...]\n",
- program_name );
-
- fprintf( stderr,
- --- 946,954 ----
-
- void usage()
- {
- + fprintf( stderr, "\n%s version %s\n", program_name, flex_version );
- fprintf( stderr,
- ! "\n%s [-bcdfhilnpstvwBFILTV78+ -C[aefFmr] -Pprefix -Sskeleton] [file ...]\n\n",
- program_name );
-
- fprintf( stderr,
- diff -cbr orig/misc.c new/misc.c
- *** orig/misc.c Tue Jan 04 23:33:10 1994
- --- new/misc.c Sun Jan 09 22:20:54 1994
- ***************
- *** 393,400 ****
- if ( infilename && gen_line_dirs )
- {
- char directive[MAXLINE];
- sprintf( directive, "# line %d \"%s\"\n", linenum, infilename );
- !
- /* If output_file is nil then we should put the directive in
- * the accumulated actions.
- */
- --- 393,407 ----
- if ( infilename && gen_line_dirs )
- {
- char directive[MAXLINE];
- + #if defined(OS2) || defined(MS_DOS)
- + char path[MAXLINE], *p, *w;
- + for ( p = infilename, w = path; *p; p++, w++ )
- + *w = (*p == '\\') ? '/' : *p;
- + *w = 0;
- + sprintf( directive, "# line %d \"%s\"\n", linenum, path );
- + #else
- sprintf( directive, "# line %d \"%s\"\n", linenum, infilename );
- ! #endif
- /* If output_file is nil then we should put the directive in
- * the accumulated actions.
- */
-