1 /* $Id: il3_aux.c,v 1.5 1994/06/24 10:25:48 ceriel Exp $ */
3 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4 * See the copyright notice in the ACK home directory, in the file "Copyright".
6 /* I N L I N E S U B S T I T U T I O N
12 #include "../share/types.h"
14 #include "../share/debug.h"
15 #include "../share/alloc.h"
16 #include "../share/global.h"
22 line_p last_line(lines)
25 /* Determine the last line of a list */
29 assert (lines != (line_p) 0);
30 for (l = lines; l->l_next != (line_p) 0; l = l->l_next);
39 /* Append the list after line l */
43 assert(l != (line_p) 0);
44 assert (list != (line_p) 0);
45 llast = last_line(list);
46 llast->l_next = l->l_next;
47 if (l->l_next != (line_p) 0) {
48 PREV(l->l_next) = llast;
59 /* Remove a line from the list */
61 if (PREV(l) != (line_p) 0) {
62 PREV(l)->l_next = l->l_next;
64 if (l->l_next != (line_p) 0) {
65 PREV(l->l_next) = PREV(l);