Make function grib_push_action_file local

This commit is contained in:
Shahram Najm 2020-01-29 10:57:30 +00:00
parent ef2e842859
commit cee0608d0d
2 changed files with 2 additions and 3 deletions

View File

@ -1208,7 +1208,6 @@ int grib_accessor_print(grib_accessor* a, const char* name, int type, const char
int grib_accessors_list_print(grib_handle* h, grib_accessors_list* al, const char* name, int type, const char* format, const char* separator, int maxcols, int* newline, FILE* out);
int grib_recompose_print(grib_handle* h, grib_accessor* observer, const char* uname, int fail, FILE* out);
grib_action_file* grib_find_action_file(const char* fname, grib_action_file_list* afl);
void grib_push_action_file(grib_action_file* af, grib_action_file_list* afl);
int grib_yywrap(void);
char* file_being_parsed(void);
int grib_yyerror(const char* msg);

View File

@ -549,7 +549,7 @@ grib_action_file* grib_find_action_file(const char* fname, grib_action_file_list
return 0;
}
void grib_push_action_file(grib_action_file* af, grib_action_file_list* afl)
static void grib_push_action_file(grib_action_file* af, grib_action_file_list* afl)
{
if (!afl->first)
afl->first = afl->last = af;
@ -853,7 +853,7 @@ grib_action* grib_parse_file(grib_context* gc, const char* filename)
af->root = a;
af->filename = grib_context_strdup_persistent(gc, filename);
grib_push_action_file(af, gc->grib_reader);
grib_push_action_file(af, gc->grib_reader); /* Add af to grib_reader action file list */
}
else
grib_context_log(gc, GRIB_LOG_DEBUG, "Using cached version of %s", filename);