xref: /plan9-contrib/sys/src/cmd/gs/src/iosdata.h (revision 7dd7cddf99dd7472612f1413b4da293630e6b1bc)
1 /* Copyright (C) 1999 Aladdin Enterprises.  All rights reserved.
2 
3    This file is part of Aladdin Ghostscript.
4 
5    Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
6    or distributor accepts any responsibility for the consequences of using it,
7    or for whether it serves any particular purpose or works at all, unless he
8    or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
9    License (the "License") for full details.
10 
11    Every copy of Aladdin Ghostscript must include a copy of the License,
12    normally in a plain ASCII text file named PUBLIC.  The License grants you
13    the right to copy, modify and redistribute Aladdin Ghostscript, but only
14    under certain conditions described in the License.  Among other things, the
15    License requires that the copyright notice and this notice be preserved on
16    all copies.
17  */
18 
19 /*$Id: iosdata.h,v 1.1 2000/03/09 08:40:43 lpd Exp $ */
20 /* Generic operand stack API */
21 
22 #ifndef iosdata_INCLUDED
23 #  define iosdata_INCLUDED
24 
25 #include "isdata.h"
26 
27 /* Define the operand stack structure. */
28 /* Currently this is just a generic ref stack. */
29 typedef struct op_stack_s {
30 
31     ref_stack_t stack;		/* the actual operand stack */
32 
33 } op_stack_t;
34 
35 #define public_st_op_stack()	/* in interp.c */\
36   gs_public_st_suffix_add0(st_op_stack, op_stack_t, "op_stack_t",\
37     op_stack_enum_ptrs, op_stack_reloc_ptrs, st_ref_stack)
38 #define st_op_stack_num_ptrs st_ref_stack_num_ptrs
39 
40 #endif /* iosdata_INCLUDED */
41