1 /* Copyright (C) 1992, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved. 2 3 This software is provided AS-IS with no warranty, either express or 4 implied. 5 6 This software is distributed under license and may not be copied, 7 modified or distributed except as expressly authorized under the terms 8 of the license contained in the file LICENSE in this distribution. 9 10 For more information about licensing, please refer to 11 http://www.ghostscript.com/licensing/. For information on 12 commercial licensing, go to http://www.artifex.com/licensing/ or 13 contact Artifex Software, Inc., 101 Lucas Valley Road #110, 14 San Rafael, CA 94903, U.S.A., +1(415)492-9861. 15 */ 16 17 /* $Id: iddict.h,v 1.4 2002/02/21 22:24:53 giles Exp $ */ 18 /* Dictionary API with implicit dict_stack argument */ 19 20 #ifndef iddict_INCLUDED 21 # define iddict_INCLUDED 22 23 #include "idict.h" 24 #include "icstate.h" /* for access to dict_stack */ 25 26 /* Define the dictionary stack instance for operators. */ 27 #define idict_stack (i_ctx_p->dict_stack) 28 29 #define idict_put(pdref, key, pvalue)\ 30 dict_put(pdref, key, pvalue, &idict_stack) 31 #define idict_put_string(pdref, kstr, pvalue)\ 32 dict_put_string(pdref, kstr, pvalue, &idict_stack) 33 #define idict_undef(pdref, key)\ 34 dict_undef(pdref, key, &idict_stack) 35 #define idict_copy(dfrom, dto)\ 36 dict_copy(dfrom, dto, &idict_stack) 37 #define idict_copy_new(dfrom, dto)\ 38 dict_copy_new(dfrom, dto, &idict_stack) 39 #define idict_resize(pdref, newmax)\ 40 dict_resize(pdref, newmax, &idict_stack) 41 #define idict_grow(pdref)\ 42 dict_grow(pdref, &idict_stack) 43 #define idict_unpack(pdref)\ 44 dict_unpack(pdref, &idict_stack) 45 46 #endif /* iddict_INCLUDED */ 47