1 /* This file implements the emacs_insque and emacs_remque functions,
2 copies of the insque and remque functions of BSD. They and all
3 their callers have been renamed to emacs_mumble to allow us to
4 include this file in the menu library on all systems. */
13 /* Insert ELEM into a doubly-linked list, after PREV. */
16 emacs_insque (elem
, prev
)
17 struct qelem
*elem
, *prev
;
19 struct qelem
*next
= prev
->q_forw
;
27 /* Unlink ELEM from the doubly-linked list that it is in. */
32 struct qelem
*next
= elem
->q_forw
;
33 struct qelem
*prev
= elem
->q_back
;
40 /* arch-tag: a8719d1a-5c3f-4bce-b36b-173106d36165
41 (do not change this comment) */