Lines Matching refs:cur_loc
46 static Location *cur_loc = &std_loc; variable
56 loc->prev = cur_loc; in loc_push_restore()
57 cur_loc = loc; in loc_push_restore()
80 assert(cur_loc == loc && loc->prev); in loc_pop()
81 cur_loc = loc->prev; in loc_pop()
91 *loc = *cur_loc; in loc_save()
101 Location *prev = cur_loc->prev; in loc_restore()
103 *cur_loc = *loc; in loc_restore()
104 cur_loc->prev = prev; in loc_restore()
112 cur_loc->kind = LOC_NONE; in loc_set_none()
120 cur_loc->kind = LOC_CMDLINE; in loc_set_cmdline()
121 cur_loc->num = cnt; in loc_set_cmdline()
122 cur_loc->ptr = argv + idx; in loc_set_cmdline()
130 assert (fname || cur_loc->kind == LOC_FILE); in loc_set_file()
131 cur_loc->kind = LOC_FILE; in loc_set_file()
132 cur_loc->num = lno; in loc_set_file()
134 cur_loc->ptr = fname; in loc_set_file()
151 switch (cur_loc->kind) { in print_loc()
153 argp = cur_loc->ptr; in print_loc()
154 for (i = 0; i < cur_loc->num; i++) { in print_loc()
161 error_printf("%s:", (const char *)cur_loc->ptr); in print_loc()
162 if (cur_loc->num) { in print_loc()
163 error_printf("%d:", cur_loc->num); in print_loc()