pike.git / src / modules / Regexp / pike_regexp.c

version» Context lines:

pike.git/src/modules/Regexp/pike_regexp.c:1:   /* -  * $Id: pike_regexp.c,v 1.19 2000/09/14 12:08:03 grubba Exp $ +  * $Id: pike_regexp.c,v 1.20 2000/12/01 08:10:23 hubbe Exp $    *    * regexp.c - regular expression matching    *    * DESCRIPTION    *    * Underneath the reformatting and comment blocks which were added to    * make it consistent with the rest of the code, you will find a    * modified version of Henry Specer's regular expression library.    * Henry's functions were modified to provide the minimal regular    * expression matching, as required by P1003. Henry's code was
pike.git/src/modules/Regexp/pike_regexp.c:59:    */      /* Headers */   #include "global.h"   #include <ctype.h>   #ifdef HAVE_STRING_H   #include <string.h>   #endif /* HAVE_STRING_H */   #include "pike_regexp.h"   #include "pike_memory.h" - #include "error.h" + #include "pike_error.h"      /* must be included last */   #include "module_magic.h"      /*    * The "internal use only" fields in regexp.h are present to pass info from    * compile to execute that permits the execute phase to run lots faster on    * simple cases. They are:    *    * regstart char that must begin a match; '\0' if none obvious
pike.git/src/modules/Regexp/pike_regexp.c:168:   /*    * The first byte of the regexp internal "program" is actually this magic    * number; the start node begins in the second byte.    */   #define MAGIC 0234      /*    * Utility definitions.    */    - #define regerror(X) error("Regexp: %s\n",X); + #define regerror(X) Pike_error("Regexp: %s\n",X);   #define SPECIAL 0x100   #define LBRAC ('('|SPECIAL)   #define RBRAC (')'|SPECIAL)   #define ASTERIX ('*'|SPECIAL)   #define PLUS ('+'|SPECIAL)   #define OR_OP ('|'|SPECIAL)   #define DOLLAR ('$'|SPECIAL)   #define DOT ('.'|SPECIAL)   #define CARET ('^'|SPECIAL)   #define LSQBRAC ('['|SPECIAL)