MCPcopy Create free account
hub / github.com/apache/nuttx / pop_dependency

Function pop_dependency

tools/kconfig2html.c:1045–1061  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1043 ****************************************************************************/
1044
1045static void pop_dependency(void)
1046{
1047 int ndx = g_ndependencies - 1;
1048 if (ndx < 0)
1049 {
1050 error("Dependency underflow, aborting\n");
1051 exit(ERROR_DEPENDENCIES_UNDERFLOW);
1052 }
1053
1054 if (g_dependencies[ndx])
1055 {
1056 free(g_dependencies[ndx]);
1057 g_dependencies[ndx] = NULL;
1058 }
1059
1060 g_ndependencies = ndx;
1061}
1062
1063/****************************************************************************
1064 * Name: incr_level

Callers 2

free_dependenciesFunction · 0.85
parse_kconfigfileFunction · 0.85

Calls 3

errorFunction · 0.85
exitFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected