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