Lines Matching refs:file
230 static int parse_string(const char *file, unsigned long len, in parse_string() argument
235 add_char(file[0], md); in parse_string()
237 add_char(file[i], md); in parse_string()
238 if (file[i] == '"' && file[i-1] != '\\') in parse_string()
244 static int parse_comment(const char *file, unsigned long len) in parse_comment() argument
249 if (file[i-1] == '*' && file[i] == '/') in parse_comment()
258 char *file; in parse_file() local
261 file = read_text_file(fname); in parse_file()
262 len = strlen(file); in parse_file()
266 if (file[i] == '\\' && (i+1 < len) && file[i+1] == '\n') { in parse_file()
272 if (isspace(file[i])) in parse_file()
276 if (file[i] == '"') { in parse_file()
277 i += parse_string(file+i, len - i, md); in parse_file()
282 if (file[i] == '/' && file[i+1] == '*') { in parse_file()
283 i += parse_comment(file+i, len - i); in parse_file()
287 add_char(file[i], md); in parse_file()
289 free(file); in parse_file()
306 char *cmd, *file, *line, *dir, *pos; in parse_source_files() local
325 file = read_text_file(cmd); in parse_source_files()
327 pos = file; in parse_source_files()
386 free(file); in parse_source_files()