386BSD 0.1 development
authorWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Fri, 17 Apr 1992 21:17:36 +0000 (13:17 -0800)
committerWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Fri, 17 Apr 1992 21:17:36 +0000 (13:17 -0800)
Work on file usr/othersrc/public/ghostscript-2.4.1/gx.h

Co-Authored-By: Lynne Greer Jolitz <ljolitz@cardio.ucsf.edu>
Synthesized-from: 386BSD-0.1

usr/othersrc/public/ghostscript-2.4.1/gx.h [new file with mode: 0644]

diff --git a/usr/othersrc/public/ghostscript-2.4.1/gx.h b/usr/othersrc/public/ghostscript-2.4.1/gx.h
new file mode 100644 (file)
index 0000000..26f4a05
--- /dev/null
@@ -0,0 +1,58 @@
+/* Copyright (C) 1989, 1991 Aladdin Enterprises.  All rights reserved.
+   Distributed by Free Software Foundation, Inc.
+
+This file is part of Ghostscript.
+
+Ghostscript is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
+to anyone for the consequences of using it or for whether it serves any
+particular purpose or works at all, unless he says so in writing.  Refer
+to the Ghostscript General Public License for full details.
+
+Everyone is granted permission to copy, modify and redistribute
+Ghostscript, but only under the conditions described in the Ghostscript
+General Public License.  A copy of this license is supposed to have been
+given to you along with Ghostscript so you can know your rights and
+responsibilities.  It should be in a file named COPYING.  Among other
+things, the copyright notice and this notice must be preserved on all
+copies.  */
+
+/* gx.h */
+/* Common internal definitions for Ghostscript library */
+#include "gs.h"
+
+/* Debugging options array */
+extern char gs_debug[128];
+
+/* Debugging printout macros. */
+#ifdef DEBUG
+#  define if_d_c(c)\
+    if(c>='a' && c<='z' ? gs_debug[c] | gs_debug[c^32] : gs_debug[c])
+#  define if_debug0(c,s)\
+    if_d_c(c) dprintf(s)
+#  define if_debug1(c,s,a1)\
+    if_d_c(c) dprintf1(s,a1)
+#  define if_debug2(c,s,a1,a2)\
+    if_d_c(c) dprintf2(s,a1,a2)
+#  define if_debug3(c,s,a1,a2,a3)\
+    if_d_c(c) dprintf3(s,a1,a2,a3)
+#  define if_debug4(c,s,a1,a2,a3,a4)\
+    if_d_c(c) dprintf4(s,a1,a2,a3,a4)
+#  define if_debug5(c,s,a1,a2,a3,a4,a5)\
+    if_d_c(c) dprintf5(s,a1,a2,a3,a4,a5)
+#  define if_debug6(c,s,a1,a2,a3,a4,a5,a6)\
+    if_d_c(c) dprintf6(s,a1,a2,a3,a4,a5,a6)
+#else
+#  define if_debug0(c,s) 0
+#  define if_debug1(c,s,a1) 0
+#  define if_debug2(c,s,a1,a2) 0
+#  define if_debug3(c,s,a1,a2,a3) 0
+#  define if_debug4(c,s,a1,a2,a3,a4) 0
+#  define if_debug5(c,s,a1,a2,a3,a4,a5) 0
+#  define if_debug6(c,s,a1,a2,a3,a4,a5,a6) 0
+#endif
+
+/* Error return macro */
+extern int gs_log_error(P3(int, const char _ds *, int));
+#define gs_note_error(err) gs_log_error(err, __FILE__, __LINE__)
+#define return_error(err) return gs_note_error(err)