home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
programming
/
gnugrep_406
/
src
/
egrep.c.diff
< prev
next >
Wrap
Text File
|
1990-09-28
|
2KB
|
60 lines
TO TRANSFORM dist/egrep.c INTO egrep.c ...
*** APPEND AFTER 121 IN dist/egrep.c ***
>/* rlp900927 -- support for wildcards in file names */
>#if defined(AMIGA) && defined(LATTICE)
>#include <dos.h>
>extern int msflag; /* 0 = AmigaDos wildcards, 1 = MSDOS */
>static char ami_drive[FMSIZE];
>static char ami_path[FMSIZE];
>static char ami_node[FMSIZE];
>static char ami_ext[FMSIZE];
>static char ami_filename[FMSIZE];
>static struct FILEINFO ami_fib;
>#endif
>
*** APPEND AFTER 794 IN dist/egrep.c ***
>/* rlp900927 -- support for wildcards in file names */
>#if defined(AMIGA) && defined(LATTICE)
> /* default no_filenames to 0, always */
>#else
*** APPEND AFTER 796 IN dist/egrep.c ***
>#endif
*** APPEND AFTER 804 IN dist/egrep.c ***
>
>/* rlp900927 -- support for wildcards in file names */
>#if defined(AMIGA) && defined(LATTICE)
> if (dfind( &ami_fib, filename, 0 ) != 0)
> {
> fprintf ( stderr, "%s: No match for '%s'\n", prog, filename );
> continue;
> }
> strsfn( filename, ami_drive, ami_path, ami_node, ami_ext );
> do
> {
> strmfn( ami_filename,
> (*ami_drive) ? ami_drive : NULL,
> (*ami_path) ? ami_path : NULL,
> ami_fib.fib_FileName,
> NULL );
> filename = ami_filename;
>#endif
>
*** APPEND AFTER 822 IN dist/egrep.c ***
>
>/* rlp900927 -- support for wildcards in file names */
>#if defined(AMIGA) && defined(LATTICE)
> }
> while ( dnext(&ami_fib) == 0);
>#endif
>
*** APPEND AFTER 1074 IN dist/egrep.c ***
>