static bool push_tree(const char *name, unsigned childern) { CuData cname; Node_test value; cname.start = name; cname.length = strlen(name); if (!node_Create(&value, cname, childern, &the_trees)) return false; return stack_PushNode(&the_trees, value); }
static bool push_symbol_event(Copper file, CuCursor at __attribute__ ((unused))) { CuData cname; Node_test value; if (!cu_MarkedText(file, &cname)) return false; if (!node_Create(&value, cname, 0, &the_trees)) return false; return stack_PushNode(&the_trees, value); }
void vLevel_LoadNode_0(Vent_Level *l, Level_Tag *tag, FILE *levelFile) { const int version = 0; int x = 0; int numNodes = 0; int nodeIndex = 0; int nodeX = 0; int nodeY = 0; numNodes = tag->amount; for(x = 0; x < numNodes; x++) { /*Obtain the node data, index, x and y position*/ fscanf(levelFile, "%d%d%d", &nodeIndex, &nodeX, &nodeY); /*Create the node for the level*/ graph_Add_Node(&l->pathGraph, node_Create(nodeIndex, nodeX, nodeY)); } return; }