/[gcl]/gcl/o/regexp.c
ViewVC logotype

Diff of /gcl/o/regexp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by camm, Sat Feb 15 00:38:28 2003 UTC revision 1.3.16.1 by camm, Sat Apr 30 22:39:48 2005 UTC
# Line 230  int case_fold_search = 0; Line 230  int case_fold_search = 0;
230   * of the structure of the compiled regexp.   * of the structure of the compiled regexp.
231   */   */
232  static regexp *  static regexp *
233  regcomp(char *exp)  regcomp(char *exp,int *sz)
234  {  {
235          register regexp *r;          register regexp *r;
236          register char *scan;          register char *scan;
# Line 255  regcomp(char *exp) Line 255  regcomp(char *exp)
255                  FAIL("regexp too big");                  FAIL("regexp too big");
256    
257          /* Allocate space. */          /* Allocate space. */
258          r = (regexp *)malloc(sizeof(regexp) + (unsigned)regsize);          *sz=sizeof(regexp) + (unsigned)regsize;
259            r = (regexp *)alloc_relblock(*sz);
260          if (r == NULL)          if (r == NULL)
261                  FAIL("out of space");                  FAIL("out of space");
262    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.3.16.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26