Renamed insque
This commit is contained in:
parent
7ace698e4c
commit
1f6f4700ad
@ -1,5 +1,5 @@
|
||||
PROG= ed
|
||||
CFLAGS+=-DBACKWARDS -DNEED_INSQUE #-DDES
|
||||
CFLAGS+=-DBACKWARDS #-DDES
|
||||
SRCS= buf.c cbc.c glbl.c io.c main.c re.c sub.c undo.c
|
||||
|
||||
LDADD+= -lcrypt
|
||||
|
@ -132,7 +132,7 @@ add_line_node(lp)
|
||||
line_t *cp;
|
||||
|
||||
cp = get_addressed_line_node(current_addr); /* this get_addressed_line_node last! */
|
||||
insque(lp, cp);
|
||||
INSQUE(lp, cp);
|
||||
addr_last++;
|
||||
current_addr++;
|
||||
}
|
||||
|
@ -167,17 +167,15 @@ if ((i) > (n)) { \
|
||||
/* REQUE: link pred before succ */
|
||||
#define REQUE(pred, succ) (pred)->q_forw = (succ), (succ)->q_back = (pred)
|
||||
|
||||
#ifdef NEED_INSQUE
|
||||
/* insque: insert elem in circular queue after pred */
|
||||
#define insque(elem, pred) \
|
||||
/* INSQUE: insert elem in circular queue after pred */
|
||||
#define INSQUE(elem, pred) \
|
||||
{ \
|
||||
REQUE((elem), (pred)->q_forw); \
|
||||
REQUE((pred), elem); \
|
||||
}
|
||||
|
||||
/* remque: remove_lines elem from circular queue */
|
||||
#define remque(elem) REQUE((elem)->q_back, (elem)->q_forw);
|
||||
#endif /* NEED_INSQUE */
|
||||
#define REMQUE(elem) REQUE((elem)->q_back, (elem)->q_forw);
|
||||
|
||||
/* NUL_TO_NEWLINE: overwrite ASCII NULs with newlines */
|
||||
#define NUL_TO_NEWLINE(s, l) translit_text(s, l, '\0', '\n')
|
||||
|
Loading…
Reference in New Issue
Block a user