1 --- ref.c 2010-02-18 01:02:00.388009759 +0000
2 +++ ref2.c 2010-02-18 01:01:04.638036985 +0000
6 static void usage(char *argv0);
7 -static char *getline(FILE *fp);
8 +static char *getline_(FILE *fp);
9 static void store(char *line, char **list);
10 static LINECLS classify(char *line, LINECLS prev);
11 static void lookup(TAG *tag);
13 /* This function reads a single line, and replaces the terminating newline with
14 * a '\0' byte. The string will be in a static buffer. Returns NULL at EOF.
16 -static char *getline(fp)
17 +static char *getline_(fp)
24 /* for each line... */
25 - for (lnum = 1, lc = LC_COMPLETE; (line = getline(fp)) != NULL; lnum++)
26 + for (lnum = 1, lc = LC_COMPLETE; (line = getline_(fp)) != NULL; lnum++)
28 /* is this the tag definition? */
29 if (taglnum > 0 ? taglnum == lnum : !strncmp(tagline, line, len))
32 if (strchr(line, '(') != NULL)
34 - while ((line = getline(fp)) != NULL
35 + while ((line = getline_(fp)) != NULL
37 && ((*line != '#' && *line != '{')
38 || line[strlen(line) - 1] == '\\'))
41 else if ((lc = classify(line, lc)) == LC_PARTIAL)
43 - while ((line = getline(fp)) != NULL
44 + while ((line = getline_(fp)) != NULL
45 && (lc = classify(line, lc)) == LC_PARTIAL)