rename read functions which return a list of multiple expressions to 'parse'

This commit is contained in:
Yuichi Nishiwaki
2014-03-04 00:26:33 +09:00
parent 8a9bd366a1
commit 5b2898ae5c
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ pic_load(pic_state *pic, const char *fn)
pic_error(pic, "load: could not read file");
}
exprs = pic_read_file(pic, file);
exprs = pic_parse_file(pic, file);
if (pic_undef_p(exprs)) {
pic_error(pic, "load: unexpected EOF");
}
+1 -1
View File
@@ -627,7 +627,7 @@ pic_macro_include(pic_state *pic)
if (file == NULL) {
pic_error(pic, "could not open file");
}
exprs = pic_read_file(pic, file);
exprs = pic_parse_file(pic, file);
if (pic_undef_p(exprs)) {
pic_error(pic, "parse error");
}
+2 -2
View File
@@ -216,7 +216,7 @@ pic_read(pic_state *pic, const char *cstr)
}
pic_list
pic_read_file(pic_state *pic, FILE *file)
pic_parse_file(pic_state *pic, FILE *file)
{
yyscan_t scanner;
struct parser_control ctrl;
@@ -234,7 +234,7 @@ pic_read_file(pic_state *pic, FILE *file)
}
pic_list
pic_read_cstr(pic_state *pic, const char *cstr)
pic_parse_cstr(pic_state *pic, const char *cstr)
{
yyscan_t scanner;
struct parser_control ctrl;