1 /* Copyright (C) 1994, 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: idebug.h,v 1.6 2004/08/04 19:36:12 stefan Exp $ */ 18 /* Prototypes for debugging procedures in idebug.c */ 19 20 #ifndef idebug_INCLUDED 21 # define idebug_INCLUDED 22 23 /* Print individual values. */ 24 void debug_print_name(const gs_memory_t *mem, const ref *); 25 void debug_print_name_index(const gs_memory_t *mem, uint /*name_index_t*/); 26 void debug_print_ref(const gs_memory_t *mem, const ref *); 27 void debug_print_ref_packed(const gs_memory_t *mem, const ref_packed *); 28 29 /* Dump regions of memory. */ 30 void debug_dump_one_ref(const gs_memory_t *mem, const ref *); 31 void debug_dump_refs(const gs_memory_t *mem, 32 const ref * from, uint size, const char *msg); 33 void debug_dump_array(const gs_memory_t *mem, const ref * array); 34 35 /* Dump a stack. Using this requires istack.h. */ 36 #ifndef ref_stack_DEFINED 37 typedef struct ref_stack_s ref_stack_t; /* also defined in isdata.h */ 38 # define ref_stack_DEFINED 39 #endif 40 void debug_dump_stack(const gs_memory_t *mem, 41 const ref_stack_t * pstack, const char *msg); 42 43 #endif /* idebug_INCLUDED */ 44