Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / programs / dthelp / parser.ccdf / volumegen / PstackI.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 librararies 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: PstackI.h /main/4 1995/11/08 11:47:58 rswiston $ */
24 /************************************<+>*************************************
25  ****************************************************************************
26  *
27  * File:         PstackI.h
28  *
29  * Project:      Cache Creek (Rivers) Project
30  * Description:  Header file for Utility functions for PStack.h
31  * Author:       Brian Cripe
32  *               Modifications by (Mike Wilson)
33  * Language:     C
34  *
35  * (C) Copyright 1992, Hewlett-Packard, all rights reserved.
36  *
37  ****************************************************************************
38  ************************************<+>*************************************/
39
40 struct PStackRec {
41     int size;
42     int count;
43     void **items;
44 };
45
46 typedef struct PStackRec *PStack;
47
48
49
50
51
52 /*****************************************************************************
53  * Function:        PStack PStackCreate();
54  *
55  * Parameters:      NONE.
56  *
57  * Return Value:    PStack.
58  *
59  * Purpose:         Generates a PStack structure and returns it to the 
60  *                  caller.
61  *
62  *****************************************************************************/
63 extern PStack PStackCreate();
64
65
66 /*****************************************************************************
67  * Function:        PStack PStackDestroy();
68  *
69  * Parameters:      stack:
70  *
71  * Return Value:    void.
72  *
73  * Purpose:         Destroys a PStack structure.
74  *
75  *****************************************************************************/
76 extern void PStackDestroy(
77      PStack stack);
78
79
80 /*****************************************************************************
81  * Function:        PStack PStackPush();
82  *
83  * Parameters:      stack:
84  *                  ptr:
85  *
86  * Return Value:    void
87  *
88  * Purpose:         Pushes a PStack structure on the current stack.
89  *
90  *****************************************************************************/
91 extern void PStackPush(
92      PStack stack,
93      void *ptr);
94
95
96 /*****************************************************************************
97  * Function:        PStack *PStackPeek();
98  *
99  * Parameters:      stack:
100  *
101  * Return Value:    void.
102  *
103  * Purpose:         Gets a PStack.
104  *
105  *****************************************************************************/
106 extern void *PStackPeek(
107      PStack stack);
108
109
110 /*****************************************************************************
111  * Function:        PStack *PStackPop();
112  *
113  * Parameters:      stack:
114  *
115  * Return Value:    void.
116  *
117  * Purpose:         Pops the top element off the stack
118  *
119  *****************************************************************************/
120 extern void *PStackPop(
121      PStack stack);
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139