version 1.69, 2007/06/09 05:16:21 |
version 1.70, 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, file); |
nc = fread(buf, 1, nc, file); |
if (nc > 0) { |
if (nc > 0) { |
buf[nc] = '\0'; |
buf[nc] = '\0'; |
p = strchr(buf, '\n'); |
buf[strcspn(buf, "\n")] = '\0'; |
if (p != NULL) |
|
*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) |