Lines Matching defs:ls
337 struct unw_labeled_state *ls;
343 ls = malloc(sizeof(struct unw_labeled_state));
344 if (!ls)
348 ls = &emergency_labeled_state[n];
351 return ls;
355 free_label_state (struct unw_labeled_state *ls)
361 if (PTR_IN (emergency_labeled_state, ls))
362 atomic_free (&emergency_labeled_state_free, emergency_labeled_state - ls);
364 free (ls);
427 free_label_states (struct unw_labeled_state *ls)
431 for (; ls ; ls = next)
433 next = ls->next;
435 free_state_stack (&ls->saved_state);
436 free_label_state (ls);
827 struct unw_labeled_state *ls;
829 for (ls = sr->labeled_states; ls; ls = ls->next)
831 if (ls->label == label)
834 memcpy (&sr->curr, &ls->saved_state, sizeof (sr->curr));
835 sr->curr.next = dup_state_stack (ls->saved_state.next);
845 struct unw_labeled_state *ls = alloc_label_state ();
847 ls->label = label;
848 memcpy (&ls->saved_state, &sr->curr, sizeof (ls->saved_state));
849 ls->saved_state.next = dup_state_stack (sr->curr.next);
852 ls->next = sr->labeled_states;
853 sr->labeled_states = ls;