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

version» Context lines:

pike.git/src/modules/Regexp/pike_regexp.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: pike_regexp.c,v 1.23 2002/10/21 17:06:22 marcus Exp $ + || $Id: pike_regexp.c,v 1.24 2010/08/16 19:00:20 mast 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.
pike.git/src/modules/Regexp/pike_regexp.c:65:      /* 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 "pike_error.h" + #include "interpret.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    * reganch is the match anchored (at beginning-of-line only)?    * regmust string (pointer into program) that match must include, or NULL
pike.git/src/modules/Regexp/pike_regexp.c:885:   #else      static int regmatch(prog)   char *prog;      #endif   {    register char *scan; /* Current node. */    char *nxt; /* nxt node. */    +  check_c_stack (4 * sizeof (void *)); +     scan = prog;   #ifdef PIKE_DEBUG    if (scan != (char *)NULL && regnarrate)    fprintf(stderr, "%s(\n", regprop(scan));   #endif    while (scan != (char *)NULL) {   #ifdef PIKE_DEBUG    if (regnarrate)    fprintf(stderr, "%s...\n", regprop(scan));   #endif