version 1.56, 2005/10/05 23:11:06 |
version 1.57, 2005/10/07 21:47:32 |
|
|
struct context_vec *tmp; |
struct context_vec *tmp; |
ptrdiff_t offset = context_vec_ptr - context_vec_start; |
ptrdiff_t offset = context_vec_ptr - context_vec_start; |
max_context <<= 1; |
max_context <<= 1; |
if ((tmp = realloc(context_vec_start, |
if ((tmp = realloc(context_vec_start, max_context * |
max_context * sizeof(struct context_vec))) == NULL) { |
sizeof(struct context_vec))) == NULL) { |
free(context_vec_start); |
free(context_vec_start); |
context_vec_start = NULL; |
context_vec_start = NULL; |
cvs_log(LP_ERRNO, |
cvs_log(LP_ERRNO, |
|
|
if (p != NULL) |
if (p != NULL) |
*p = '\0'; |
*p = '\0'; |
if (isalpha(buf[0]) || buf[0] == '_' || buf[0] == '$') { |
if (isalpha(buf[0]) || buf[0] == '_' || buf[0] == '$') { |
strlcpy(lastbuf, (const char *)buf, sizeof lastbuf); |
strlcpy(lastbuf, (const char *)buf, |
|
sizeof lastbuf); |
lastmatchline = pos; |
lastmatchline = pos; |
return lastbuf; |
return lastbuf; |
} |
} |