home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / disks / disk444.lzh / RegExpLib / regexp.h < prev    next >
C/C++ Source or Header  |  1991-01-24  |  701b  |  21 lines

  1. /* REGEXP.H -- Header file for use with regexp.library
  2.  */
  3.  
  4. /* Possible return values for RegExpCompile() */
  5. enum errs { ILLEGAL_OP = -99, BAD_COLON_TYPE, NO_COLON_TYPE, BAD_CLASS_TERM,
  6.     UNTERM_CLASS, LARGE_CLASS, EMPTY_CLASS };
  7.  
  8. /* Flags for RexExpMatch() */
  9. enum flags { FIRST_MATCH = 0, LAST_MATCH = 1 };
  10.  
  11. /* RegExpBase is really a struct Library *, but it did not seem worthwhile
  12.  * pulling in all those exec header files. */
  13. extern void *RegExpBase;
  14.  
  15. int        RegExpCompile(char *, char *);
  16. int        RegExpMatch(char *, char *, long *, long *, long);
  17.  
  18. /* SAS/C pragmas for inline calls to the library. */
  19. #pragma libcall RegExpBase RegExpCompile 24 9802
  20. #pragma libcall RegExpBase RegExpMatch 2A 0BA9805
  21.