MCPcopy Create free account
hub / github.com/Entware/Entware / zconf_initscan

Function zconf_initscan

scripts/config/lexer.lex.c:4069–4082  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4067}
4068
4069void zconf_initscan(const char *name)
4070{
4071 yyin = zconf_fopen(name);
4072 if (!yyin) {
4073 fprintf(stderr, "can't find file %s\n", name);
4074 exit(1);
4075 }
4076
4077 current_buf = xmalloc(sizeof(*current_buf));
4078 memset(current_buf, 0, sizeof(*current_buf));
4079
4080 current_file = file_lookup(name);
4081 yylineno = 1;
4082}
4083
4084static void __zconf_nextfile(const char *name)
4085{

Callers 1

conf_parseFunction · 0.85

Calls 3

zconf_fopenFunction · 0.85
xmallocFunction · 0.85
file_lookupFunction · 0.85

Tested by

no test coverage detected