home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
PROGRAM
/
DJFLX237.ZIP
/
DIFFS
/
FLEX237.DIF
Wrap
Text File
|
1992-04-13
|
3KB
|
105 lines
diff -c2 +recursive orig/flex-237/configur.bat flex-237/configur.bat
*** orig/flex-237/configur.bat Sat Mar 28 02:53:38 1992
--- flex-237/configur.bat Mon Apr 13 23:15:02 1992
***************
*** 0 ****
--- 1,27 ----
+ @echo off
+ echo Configuring flex for go32
+ rem This batch file assumes a unix-type "sed" program
+
+ echo # Makefile generated by "configure.bat">Makefile.dos
+
+ if exist config.sed del config.sed
+
+ echo "/^# Makefile gen/d ">>config.sed
+ echo "s/$(YACC)/bison -o parse.c/ ">>config.sed
+ echo "/y\.tab\.c/ c\ ">>config.sed
+ echo "parse.o: parse.c parse.h\ ">>config.sed
+ echo " gcc $(CFLAGS) -c parse.c ">>config.sed
+ echo "/y\.tab\.h/ d ">>config.sed
+ echo "/LDFLAGS =/ s/-s// ">>config.sed
+ echo "/CFLAGS =/ c\ ">>config.sed
+ echo "CFLAGS = -O -DSHORT_FILE_NAMES ">>config.sed
+
+ sed -e "s/^\"//" -e "s/\"$//" -e "s/[ ]*$//" config.sed > config2.sed
+ sed -f config2.sed makefile >> makefile.dos
+ del config.sed
+ del config2.sed
+
+ copy makefile.dos makefile
+ del makefile.dos
+
+ rem copy initscan.c scan.c
diff -c2 +recursive orig/flex-237/flexdef.h flex-237/flexdef.h
*** orig/flex-237/flexdef.h Sat Mar 28 03:09:56 1992
--- flex-237/flexdef.h Sat Mar 28 03:28:08 1992
***************
*** 70,73 ****
--- 70,74 ----
char *sprintf(); /* keep lint happy */
#endif
+ #ifndef __GO32__
#ifdef SCO_UNIX
void *memset();
***************
*** 76,79 ****
--- 77,81 ----
#endif
#endif
+ #endif
#ifdef AMIGA
***************
*** 660,664 ****
* be YYSTYPE, but we can't easily get our hands on it.
*/
! extern int yylval;
--- 662,669 ----
* be YYSTYPE, but we can't easily get our hands on it.
*/
! #ifndef YYSTYPE
! #define YYSTYPE int
! #endif
! extern YYSTYPE yylval;
***************
*** 867,871 ****
--- 872,878 ----
/* The Unix kernel calls used here */
+ #ifndef __GO32__
extern int read PROTO((int, char*, int));
extern int unlink PROTO((char*));
extern int write PROTO((int, char*, int));
+ #endif
diff -c2 +recursive orig/flex-237/main.c flex-237/main.c
*** orig/flex-237/main.c Mon Apr 13 23:24:34 1992
--- flex-237/main.c Mon Apr 13 23:26:28 1992
***************
*** 553,559 ****
{
static char skeleton_name_storage[400];
! skelname = skeleton_name_storage;
! (void) strcpy( skelname, DEFAULT_SKELETON_FILE );
}
--- 553,565 ----
{
static char skeleton_name_storage[400];
+ char *eskel = getenv("FLEX_SKELETON");
! if (eskel)
! skelname = eskel;
! else
! {
! skelname = skeleton_name_storage;
! (void) strcpy( skelname, DEFAULT_SKELETON_FILE );
! }
}