summaryrefslogtreecommitdiff
path: root/sys/src/cmd/gs/src/gxclipsr.h
diff options
context:
space:
mode:
authorTaru Karttunen <taruti@taruti.net>2011-03-30 15:46:40 +0300
committerTaru Karttunen <taruti@taruti.net>2011-03-30 15:46:40 +0300
commite5888a1ffdae813d7575f5fb02275c6bb07e5199 (patch)
treed8d51eac403f07814b9e936eed0c9a79195e2450 /sys/src/cmd/gs/src/gxclipsr.h
Import sources from 2011-03-30 iso image
Diffstat (limited to 'sys/src/cmd/gs/src/gxclipsr.h')
-rwxr-xr-xsys/src/cmd/gs/src/gxclipsr.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/sys/src/cmd/gs/src/gxclipsr.h b/sys/src/cmd/gs/src/gxclipsr.h
new file mode 100755
index 000000000..d74250b01
--- /dev/null
+++ b/sys/src/cmd/gs/src/gxclipsr.h
@@ -0,0 +1,52 @@
+/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied,
+ modified or distributed except as expressly authorized under the terms
+ of the license contained in the file LICENSE in this distribution.
+
+ For more information about licensing, please refer to
+ http://www.ghostscript.com/licensing/. For information on
+ commercial licensing, go to http://www.artifex.com/licensing/ or
+ contact Artifex Software, Inc., 101 Lucas Valley Road #110,
+ San Rafael, CA 94903, U.S.A., +1(415)492-9861.
+*/
+
+/* $Id: gxclipsr.h,v 1.4 2002/02/21 22:24:53 giles Exp $ */
+/* Internals of clipsave/cliprestore */
+
+#ifndef gxclipsr_INCLUDED
+# define gxclipsr_INCLUDED
+
+#include "gsrefct.h"
+
+/*
+ * Unlike the graphics state stack, which is threaded through the actual
+ * gstate objects, the clipping path stack is implemented with separate,
+ * small objects. These are reference-counted, because they may be
+ * shared by off-stack graphics states.
+ */
+
+#ifndef gx_clip_path_DEFINED
+# define gx_clip_path_DEFINED
+typedef struct gx_clip_path_s gx_clip_path;
+#endif
+#ifndef gx_clip_stack_DEFINED
+# define gx_clip_stack_DEFINED
+typedef struct gx_clip_stack_s gx_clip_stack_t;
+#endif
+
+struct gx_clip_stack_s {
+ rc_header rc;
+ gx_clip_path *clip_path;
+ gx_clip_stack_t *next;
+};
+
+#define private_st_clip_stack() /* in gsclipsr.c */\
+ gs_private_st_ptrs2(st_clip_stack, gx_clip_stack_t,\
+ "gx_clip_stack_t", clip_stack_enum_ptrs, clip_stack_reloc_ptrs,\
+ clip_path, next)
+
+#endif /* gxclipsr_INCLUDED */