home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 419b.lha / GrepWild / egrep.dif < prev    next >
Text File  |  1990-10-02  |  2KB  |  60 lines

  1.  
  2.         TO TRANSFORM dist/egrep.c INTO egrep.c ...
  3.  
  4. *** APPEND AFTER 121 IN dist/egrep.c ***
  5. >/* rlp900927 -- support for wildcards in file names */
  6. >#if defined(AMIGA) && defined(LATTICE)
  7. >#include <dos.h>
  8. >extern    int    msflag;        /* 0 = AmigaDos wildcards, 1 = MSDOS */
  9. >static    char    ami_drive[FMSIZE];
  10. >static    char    ami_path[FMSIZE];
  11. >static    char    ami_node[FMSIZE];
  12. >static    char    ami_ext[FMSIZE];
  13. >static    char    ami_filename[FMSIZE];
  14. >static    struct FILEINFO    ami_fib;
  15. >#endif
  16. >
  17.  
  18. *** APPEND AFTER 794 IN dist/egrep.c ***
  19. >/* rlp900927 -- support for wildcards in file names */
  20. >#if defined(AMIGA) && defined(LATTICE)
  21. >  /* default no_filenames to 0, always */
  22. >#else
  23.  
  24. *** APPEND AFTER 796 IN dist/egrep.c ***
  25. >#endif
  26.  
  27. *** APPEND AFTER 804 IN dist/egrep.c ***
  28. >
  29. >/* rlp900927 -- support for wildcards in file names */
  30. >#if defined(AMIGA) && defined(LATTICE)
  31. >  if (dfind( &ami_fib, filename, 0 ) != 0)
  32. >    {
  33. >      fprintf ( stderr, "%s: No match for '%s'\n", prog, filename );
  34. >      continue;
  35. >    }
  36. >  strsfn( filename, ami_drive, ami_path, ami_node, ami_ext );
  37. >  do
  38. >    {
  39. >      strmfn( ami_filename,
  40. >              (*ami_drive) ? ami_drive : NULL,
  41. >              (*ami_path) ? ami_path : NULL,
  42. >              ami_fib.fib_FileName,
  43. >              NULL );
  44. >      filename = ami_filename;
  45. >#endif
  46. >
  47.  
  48. *** APPEND AFTER 822 IN dist/egrep.c ***
  49. >
  50. >/* rlp900927 -- support for wildcards in file names */
  51. >#if defined(AMIGA) && defined(LATTICE)
  52. >    }
  53. >  while ( dnext(&ami_fib) == 0);
  54. >#endif
  55. >
  56.  
  57. *** APPEND AFTER 1074 IN dist/egrep.c ***
  58. >
  59.  
  60.