rename read functions which return a list of multiple expressions to 'parse'
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user