home *** CD-ROM | disk | FTP | other *** search
- *** flex.skel.orig Mon Sep 3 21:34:09 1990
- --- flex.skel Mon Apr 8 18:27:49 1991
- ***************
- *** 51,57 ****
- --- 51,66 ----
- #define YY_USE_CONST
- #endif
-
- + #ifdef atarist
- + #include <stdlib.h>
- + #include <string.h>
- + #include <memory.h>
- + #define YY_INPUT(buf,result,max_size) \
- + if ( (result = _yyread( fileno(yyin), (char *) buf, max_size )) < 0 ) \
- + YY_FATAL_ERROR( "read() in flex scanner failed" );
- + #endif
-
- +
- #ifndef YY_USE_CONST
- #define const
- #endif
- ***************
- *** 90,98 ****
- --- 99,109 ----
- /* gets input and stuffs it into "buf". number of characters read, or YY_NULL,
- * is returned in "result".
- */
- + #ifndef YY_INPUT
- #define YY_INPUT(buf,result,max_size) \
- if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
- YY_FATAL_ERROR( "read() in flex scanner failed" );
- + #endif
- #define YY_NULL 0
-
- /* no semi-colon after return; correct usage is to write "yyterminate();" -
- *** flexdef.h.orig Mon Sep 3 21:34:09 1990
- --- flexdef.h Mon Apr 8 16:43:56 1991
- ***************
- *** 72,80 ****
- --- 72,82 ----
- #ifdef SCO_UNIX
- void *memset();
- #else
- + #ifndef atarist
- char *memset();
- #endif
- #endif
- + #endif
-
- #ifdef AMIGA
- #define bzero(s, n) setmem((char *)(s), n, '\0')
- ***************
- *** 90,95 ****
- --- 92,105 ----
- #define SHORT_FILE_NAMES
- #endif
-
- + #ifdef atarist
- + #include <string.h>
- + #include <stdlib.h>
- + #include <unistd.h>
- + #include <memory.h>
- + #define SHORT_FILE_NAMES
- + #endif
- +
- #ifdef __STDC__
-
- #ifdef __GNUC__
- ***************
- *** 109,115 ****
- --- 119,129 ----
- #define MAXLINE BUFSIZ
-
- /* maximum size of file name */
- + #ifndef FILENAME_MAX /* ansi compliant headers have this */
- #define FILENAMESIZE 1024
- + #else
- + #define FILENAMESIZE FILENAME_MAX
- + #endif
-
- #ifndef min
- #define min(x,y) ((x) < (y) ? (x) : (y))
- ***************
- *** 813,818 ****
- --- 827,834 ----
- extern void synerr PROTO((char [])); /* report a syntax error */
- extern int yyparse PROTO(()); /* the YACC parser */
-
- + extern void build_eof_action PROTO(());
- + extern void yyerror PROTO((char[]));
-
- /* from file scan.l */
-
- ***************
- *** 866,871 ****
- --- 882,889 ----
-
- /* The Unix kernel calls used here */
-
- + #ifndef atarist
- extern int read PROTO((int, char*, int));
- extern int unlink PROTO((char*));
- extern int write PROTO((int, char*, int));
- + #endif
- *** main.c.orig Mon Apr 8 16:17:25 1991
- --- main.c Tue Apr 9 10:04:06 1991
- ***************
- *** 104,110 ****
- static int outfile_created = 0;
- static int use_stdout;
- static char *skelname = NULL;
- !
-
- int main( argc, argv )
- int argc;
- --- 104,112 ----
- static int outfile_created = 0;
- static int use_stdout;
- static char *skelname = NULL;
- ! #ifdef atarist
- ! long _stksize = -1L; /* need lots of stk+heap */
- ! #endif
-
- int main( argc, argv )
- int argc;
- ***************
- *** 597,602 ****
- --- 599,607 ----
- lerrsf( "can't open skeleton file %s", skelname );
-
- #ifdef SYS_V
- + action_file_name = tmpnam( NULL );
- + #endif
- + #ifdef atarist
- action_file_name = tmpnam( NULL );
- #endif
-
-