Logo Search packages:      
Sourcecode: acfax version File versions  Download package

RegExp.h

/****************************************************************************

      RegExp.h

      This file contains the C definitions and declarations for
      the regular expression matching code.

      The routines supported act as a more friendly, user level
      interface to the regexp regular expression matching system.

 ****************************************************************************/

/*
 * Author:
 *    Brian Totty
 *    Department of Computer Science
 *    University Of Illinois at Urbana-Champaign
 *    1304 West Springfield Avenue
 *    Urbana, IL 61801
 * 
 *    totty@cs.uiuc.edu
 *    
 */ 

#ifndef _REGEXP_H_
#define     _REGEXP_H_

#include <stdio.h>
#include <regex.h>

#if (!NeedFunctionPrototypes)

void  RegExpCompile();
int   RegExpMatch();
void  _RegExpError();
void  RegExpPatternToRegExp();

#else

void  RegExpCompile(char *regexp, regex_t *fsm_ptr);
int   RegExpMatch(char *string, regex_t *fsm_ptr);
void  _RegExpError(int val);
void  RegExpPatternToRegExp(char *pattern, char *reg_exp);

#endif

#ifndef TRUE
#define TRUE                        1
#endif

#ifndef FALSE
#define     FALSE                   0
#endif

#define     INIT        register char *sp = instring;
#define     GETC()            (*sp++)
#define     PEEKC()           (*sp)
#define     UNGETC(c)   -- sp
#define     RETURN(ptr) return;
#define     ERROR(val)  _RegExpError(val)

#endif

Generated by  Doxygen 1.6.0   Back to index