]> andersk Git - splint.git/blame - src/Headers/boolStack.h
Added va_copy to standard.h.
[splint.git] / src / Headers / boolStack.h
CommitLineData
885824d3 1/*
c0de361f 2** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003.
885824d3 3** See ../LICENSE for license information.
4**
5*/
6/*
7** boolStack.h
8*/
9
10# ifndef boolStack_H
11# define boolStack_H
12
13typedef struct _boolStack
14{
15 int nelements;
16 int nspace;
17 int current;
18 /*@reldef@*/ bool *elements;
19} _boolStack ;
20
21typedef _boolStack *boolStack ;
22
23# define boolStack_size(s) ((s)->nelements)
24# define boolStack_isEmpty(s) (boolStack_size(s) == 0)
25# define boolStack_empty(s) (boolStack_size(s) == 0)
26
27extern boolStack boolStack_new(void);
28
29extern void boolStack_push (boolStack s, bool el) ;
30extern void boolStack_pop (boolStack s) ;
31extern bool boolStack_top (boolStack s) ;
32
33extern cstring boolStack_unparse (boolStack s) ;
34extern void boolStack_free (/*@only@*/ boolStack s) ;
35extern void boolStack_switchTop (boolStack s);
36
37# define boolStackBASESIZE MIDBASESIZE
38
39# else
40# error "Multiple include"
41# endif
42
43
44
45
This page took 0.06499 seconds and 5 git commands to generate.