Mercurial > emacs
comparison src/regex.c @ 7039:403172c099fc
*** empty log message ***
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 23 Apr 1994 04:07:29 +0000 |
parents | 1857dd7c6f04 |
children | ed6f3dda7ede |
comparison
equal
deleted
inserted
replaced
7038:e640d438df9a | 7039:403172c099fc |
---|---|
2493 is strictly greater than re_max_failures, the largest possible stack | 2493 is strictly greater than re_max_failures, the largest possible stack |
2494 is 2 * re_max_failures failure points. */ | 2494 is 2 * re_max_failures failure points. */ |
2495 if (fail_stack.size < (2 * re_max_failures * MAX_FAILURE_ITEMS)) | 2495 if (fail_stack.size < (2 * re_max_failures * MAX_FAILURE_ITEMS)) |
2496 { | 2496 { |
2497 fail_stack.size = (2 * re_max_failures * MAX_FAILURE_ITEMS); | 2497 fail_stack.size = (2 * re_max_failures * MAX_FAILURE_ITEMS); |
2498 | |
2499 #ifdef emacs | |
2498 if (! fail_stack.stack) | 2500 if (! fail_stack.stack) |
2499 fail_stack.stack = | 2501 fail_stack.stack |
2500 (fail_stack_elt_t *) malloc (fail_stack.size | 2502 = (fail_stack_elt_t *) xmalloc (fail_stack.size |
2501 * sizeof (fail_stack_elt_t)); | 2503 * sizeof (fail_stack_elt_t)); |
2502 else | 2504 else |
2503 fail_stack.stack = | 2505 fail_stack.stack |
2504 (fail_stack_elt_t *) realloc (fail_stack.stack, | 2506 = (fail_stack_elt_t *) xrealloc (fail_stack.stack, |
2505 (fail_stack.size | 2507 (fail_stack.size |
2506 * sizeof (fail_stack_elt_t))); | 2508 * sizeof (fail_stack_elt_t))); |
2509 #else /* not emacs */ | |
2510 if (! fail_stack.stack) | |
2511 fail_stack.stack | |
2512 = (fail_stack_elt_t *) malloc (fail_stack.size | |
2513 * sizeof (fail_stack_elt_t)); | |
2514 else | |
2515 fail_stack.stack | |
2516 = (fail_stack_elt_t *) realloc (fail_stack.stack, | |
2517 (fail_stack.size | |
2518 * sizeof (fail_stack_elt_t))); | |
2519 #endif /* not emacs */ | |
2507 } | 2520 } |
2508 | 2521 |
2509 /* Initialize some other variables the matcher uses. */ | 2522 /* Initialize some other variables the matcher uses. */ |
2510 RETALLOC_IF (regstart, num_regs, const char *); | 2523 RETALLOC_IF (regstart, num_regs, const char *); |
2511 RETALLOC_IF (regend, num_regs, const char *); | 2524 RETALLOC_IF (regend, num_regs, const char *); |