7 static label_p label_list = (label_p)0;
8 extern char *myalloc();
10 add_label(num, height, flth)
12 register label_p lbl = (label_p)0;
14 if (height <= 0) return;
15 if (flth != TRUE && flth != FALSE)
16 fatal("incorrect value for fallthrough");
18 lbl = (label_p) myalloc(sizeof(label_t));
19 lbl->lb_next = label_list;
21 lbl->lb_height = height;
22 lbl->lb_fallthrough = flth;
26 label_p get_label(num)
29 register label_p tmp = label_list;
31 while (tmp != (label_p)0) {
32 if (tmp->lb_number == num) return tmp;
42 while((tmp = label_list) != (label_p)0) {
43 label_list = label_list->lb_next;