1 /* Copyright (C) 2001-2006 Artifex Software, Inc.
2    All Rights Reserved.
3 
4    This software is provided AS-IS with no warranty, either express or
5    implied.
6 
7    This software is distributed under license and may not be copied, modified
8    or distributed except as expressly authorized under the terms of that
9    license.  Refer to licensing information at http://www.artifex.com/
10    or contact Artifex Software, Inc.,  7 Mt. Lassen Drive - Suite A-134,
11    San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12 */
13 
14 /* $Id: iddstack.h 9043 2008-08-28 22:48:19Z giles $ */
15 /* Dictionary stack API subset needed by idict.h */
16 
17 #ifndef iddstack_INCLUDED
18 #  define iddstack_INCLUDED
19 
20 #ifndef dict_stack_DEFINED
21 #  define dict_stack_DEFINED
22 typedef struct dict_stack_s dict_stack_t;
23 #endif
24 
25 /*
26  * Reset the cached top values.  Every routine that alters the
27  * dictionary stack (including changing the protection or size of the
28  * top dictionary on the stack) must call this.
29  */
30 void dstack_set_top(dict_stack_t *);
31 
32 /* Check whether a dictionary is one of the permanent ones on the d-stack. */
33 bool dstack_dict_is_permanent(const dict_stack_t *, const ref *);
34 
35 #endif /* iddstack_INCLUDED */
36