Lines Matching refs:formal

472   formal_entry *formal;  in new_formal()  local
474 formal = (formal_entry *) xmalloc (sizeof (formal_entry)); in new_formal()
476 sb_new (&formal->name); in new_formal()
477 sb_new (&formal->def); in new_formal()
478 sb_new (&formal->actual); in new_formal()
479 formal->next = NULL; in new_formal()
480 formal->type = FORMAL_OPTIONAL; in new_formal()
481 return formal; in new_formal()
487 del_formal (formal_entry *formal) in del_formal() argument
489 sb_kill (&formal->actual); in del_formal()
490 sb_kill (&formal->def); in del_formal()
491 sb_kill (&formal->name); in del_formal()
492 free (formal); in del_formal()
506 formal_entry *formal = new_formal (); in do_formals() local
509 idx = get_token (idx, in, &formal->name); in do_formals()
510 if (formal->name.len == 0) in do_formals()
514 del_formal (formal); /* 'formal' goes out of scope. */ in do_formals()
519 name = sb_terminate (&formal->name); in do_formals()
540 formal->type = FORMAL_REQUIRED; in do_formals()
542 formal->type = FORMAL_VARARG; in do_formals()
556 idx = get_any_string (idx + 1, in, &formal->def); in do_formals()
558 if (formal->type == FORMAL_REQUIRED) in do_formals()
560 sb_reset (&formal->def); in do_formals()
571 hash_jam (macro->formal_hash, name, formal); in do_formals()
579 formal->index = macro->formal_count++; in do_formals()
580 *p = formal; in do_formals()
581 p = &formal->next; in do_formals()
582 if (formal->type == FORMAL_VARARG) in do_formals()
595 formal_entry *formal = new_formal (); in do_formals() local
606 sb_add_string (&formal->name, name); in do_formals()
615 hash_jam (macro->formal_hash, name, formal); in do_formals()
617 formal->index = NARG_INDEX; in do_formals()
618 *p = formal; in do_formals()
629 formal_entry *formal; in free_macro() local
631 for (formal = macro->formals; formal; ) in free_macro()
635 f = formal; in free_macro()
636 formal = formal->next; in free_macro()