1 /* Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. */
3 /* This file implements the emacs_insque and emacs_remque functions,
4 copies of the insque and remque functions of BSD. They and all
5 their callers have been renamed to emacs_mumble to allow us to
6 include this file in the menu library on all systems. */
15 /* Insert ELEM into a doubly-linked list, after PREV. */
18 emacs_insque (elem
, prev
)
19 struct qelem
*elem
, *prev
;
21 struct qelem
*next
= prev
->q_forw
;
29 /* Unlink ELEM from the doubly-linked list that it is in. */
34 struct qelem
*next
= elem
->q_forw
;
35 struct qelem
*prev
= elem
->q_back
;
42 /* arch-tag: a8719d1a-5c3f-4bce-b36b-173106d36165
43 (do not change this comment) */