Lines Matching +refs:current +refs:line
51 struct cil_tree_node *current = NULL; in cil_parser() local
59 current = tree->root; in cil_parser()
67 node->parent = current; in cil_parser()
69 node->line = tok.line; in cil_parser()
71 if (current->cl_head == NULL) { in cil_parser()
72 current->cl_head = node; in cil_parser()
74 current->cl_tail->next = node; in cil_parser()
76 current->cl_tail = node; in cil_parser()
77 current = node; in cil_parser()
82 cil_log(CIL_ERR, "Close parenthesis without matching open at line %d of %s\n", tok.line, path); in cil_parser()
85 current = current->parent; in cil_parser()
90 cil_log(CIL_ERR, "Symbol not inside parenthesis at line %d of %s\n", tok.line, path); in cil_parser()
94 item->parent = current; in cil_parser()
102 item->line = tok.line; in cil_parser()
104 if (current->cl_head == NULL) { in cil_parser()
105 current->cl_head = item; in cil_parser()
107 current->cl_tail->next = item; in cil_parser()
109 current->cl_tail = item; in cil_parser()
113 cil_log(CIL_ERR, "Open parenthesis without matching close at line %d of %s\n", tok.line, path); in cil_parser()
121 cil_log(CIL_ERR, "Invalid token '%s' at line %d of %s\n", tok.value, tok.line, path); in cil_parser()
124 cil_log(CIL_ERR, "Unknown token type '%d' at line %d of %s\n", tok.type, tok.line, path); in cil_parser()