FreeBSD/usr.bin/sed/main.c
/*
 * Add a compilation unit to the linked list
 */
Add a compilation unit to the linked list
Add a compilation unit to the linked list
static void
add_compunit(enum e_cut type, char *s)
{
	struct s_compunit *cu;
	if ((cu = malloc(sizeof(struct s_compunit))) == NULL)
		err(1, "malloc");
	cu->type = type;
	cu->s = s;
	cu->next = NULL;
	*cu_nextp = cu;
	cu_nextp = &cu->next;
}
static void add_compunit ( enum e_cut type , char * s ) { struct s_compunit * cu ; if ( ( cu = malloc ( sizeof ( struct s_compunit ) ) ) == NULL ) err ( 1 , " " ) ; cu -> type = type ; cu -> s = s ; cu -> next = NULL ; * cu_nextp = cu ; cu_nextp = & cu -> next ; }
Add a compilation unit to the linked list
Add a compilation unit to the linked list