Remove all optional compile flags from dtwm that are not referenced anywhere, and...
[oweals/cde.git] / cde / lib / DtSearch / raima / ll.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: ll.h /main/2 1996/05/09 04:11:29 drk $ */
24 /*
25  *   COMPONENT_NAME: austext
26  *
27  *   FUNCTIONS: LLIST_INIT
28  *              LL_ELEM_INIT
29  *              ll_access
30  *              ll_append
31  *              ll_deaccess
32  *              ll_first
33  *              ll_free
34  *              ll_next
35  *              ll_prepend
36  *
37  *   ORIGINS: 157
38  *
39  */
40 /* The functions in this file are defined in alloc.c */
41
42 typedef struct {struct ll_elem *ptr; LOCK_DESC} LL_P;
43
44 typedef struct ll_elem {
45    LL_P next;
46    CHAR_P data;
47 } ll_elem;
48
49 #define LL_ELEM_INIT()  { POINTER_INIT(), POINTER_INIT() }
50
51 typedef struct {
52    LL_P head;
53    LL_P tail;
54    LL_P *curr;
55 } llist;
56
57 #define LLIST_INIT()    { POINTER_INIT(), POINTER_INIT(), NULL }
58
59 BOOLEAN ll_access(P1(llist *));
60 int ll_append(P1(llist *) Pi(CHAR_P *));
61 #define ll_deaccess(ll)     /**/
62 CHAR_P *ll_first(P1(llist *));
63 void ll_free(P1(llist *));
64 CHAR_P *ll_next(P1(llist *));
65 int ll_prepend(P1(llist *) Pi(CHAR_P *));
66 /* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin ll.h */