version 1.24, 2007/07/03 00:56:23 |
version 1.25, 2007/09/11 15:47:17 |
|
|
unsigned char buf[FUNCTION_CONTEXT_SIZE]; |
unsigned char buf[FUNCTION_CONTEXT_SIZE]; |
size_t nc; |
size_t nc; |
int last = lastline; |
int last = lastline; |
char *p; |
|
char *state = NULL; |
char *state = NULL; |
|
|
lastline = pos; |
lastline = pos; |
|
|
nc = fread(buf, 1, nc, fp); |
nc = fread(buf, 1, nc, fp); |
if (nc > 0) { |
if (nc > 0) { |
buf[nc] = '\0'; |
buf[nc] = '\0'; |
p = strchr((const char *)buf, '\n'); |
|
if (p != NULL) |
buf[strcspn(buf, "\n")] = '\0'; |
*p = '\0'; |
|
if (isalpha(buf[0]) || buf[0] == '_' || buf[0] == '$') { |
if (isalpha(buf[0]) || buf[0] == '_' || buf[0] == '$') { |
if (begins_with(buf, "private:")) { |
if (begins_with(buf, "private:")) { |
if (!state) |
if (!state) |