1 /* Copyright (C) 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: istkparm.h,v 1.4 2002/02/21 22:24:53 giles Exp $ */ 18 /* Parameter structure for expandable stacks of refs */ 19 20 #ifndef istkparm_INCLUDED 21 # define istkparm_INCLUDED 22 23 /* 24 * Define the structure for stack parameters set at initialization. 25 */ 26 /*typedef struct ref_stack_params_s ref_stack_params_t;*/ /* in istack.h */ 27 struct ref_stack_params_s { 28 uint bot_guard; /* # of guard elements below bot */ 29 uint top_guard; /* # of guard elements above top */ 30 uint block_size; /* size of each block */ 31 uint data_size; /* # of data slots in each block */ 32 ref guard_value; /* t__invalid or t_operator, */ 33 /* bottom guard value */ 34 int underflow_error; /* error code for underflow */ 35 int overflow_error; /* error code for overflow */ 36 bool allow_expansion; /* if false, don't expand */ 37 }; 38 #define private_st_ref_stack_params() /* in istack.c */\ 39 gs_private_st_simple(st_ref_stack_params, ref_stack_params_t,\ 40 "ref_stack_params_t") 41 42 #endif /* istkparm_INCLUDED */ 43