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

Function zconf_endtoken

scripts/config/parser.tab.c:1974–1993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1972}
1973
1974static bool zconf_endtoken(const char *tokenname,
1975 const char *expected_tokenname)
1976{
1977 if (strcmp(tokenname, expected_tokenname)) {
1978 zconf_error("unexpected '%s' within %s block",
1979 tokenname, expected_tokenname);
1980 yynerrs++;
1981 return false;
1982 }
1983 if (current_menu->file != current_file) {
1984 zconf_error("'%s' in different file than '%s'",
1985 tokenname, expected_tokenname);
1986 fprintf(stderr, "%s:%d: location of the '%s'\n",
1987 current_menu->file->name, current_menu->lineno,
1988 expected_tokenname);
1989 yynerrs++;
1990 return false;
1991 }
1992 return true;
1993}
1994
1995static void zconfprint(const char *err, ...)
1996{

Callers 1

yyparseFunction · 0.85

Calls 1

zconf_errorFunction · 0.85

Tested by

no test coverage detected