1 /* Copyright (C) 1993, 1995, 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: isstate.h,v 1.4 2002/02/21 22:24:53 giles Exp $ */ 18 /* Definition of 'save' structure */ 19 /* Requires isave.h */ 20 21 #ifndef isstate_INCLUDED 22 # define isstate_INCLUDED 23 24 /* Saved state of allocator and other things as needed. */ 25 /*typedef struct alloc_save_s alloc_save_t; *//* in isave.h */ 26 struct alloc_save_s { 27 gs_ref_memory_t state; /* must be first for subclassing */ 28 vm_spaces spaces; 29 bool restore_names; 30 bool is_current; 31 ulong id; 32 void *client_data; 33 }; 34 35 #define private_st_alloc_save() /* in isave.c */\ 36 gs_private_st_suffix_add1(st_alloc_save, alloc_save_t, "alloc_save",\ 37 save_enum_ptrs, save_reloc_ptrs, st_ref_memory, client_data) 38 39 #endif /* isstate_INCLUDED */ 40