iinit.h 1.52 KB
Newer Older
1
/* Copyright (C) 2001-2019 Artifex Software, Inc.
2
   All Rights Reserved.
3

4 5 6
   This software is provided AS-IS with no warranty, either express or
   implied.

7 8 9 10 11
   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.

   Refer to licensing information at http://www.artifex.com or contact
12 13
   Artifex Software, Inc.,  1305 Grant Avenue - Suite 200, Novato,
   CA 94945, U.S.A., +1(415)492-9861, for further information.
14 15
*/

16

17 18
/* (Internal) interface to iinit.c */

19 20 21 22
/* The following will allow for -Z! to trace PS operators. */
/* This is slightly less noisy but less informative than -ZI */
/* #define DEBUG_TRACE_PS_OPERATORS */

23 24 25
#ifndef iinit_INCLUDED
#  define iinit_INCLUDED

26 27
#include "imemory.h"

28 29 30 31 32 33 34
/*
 * Declare initialization procedures exported by iinit.c for imain.c.
 * These must be executed in the order they are declared below.
 */
int obj_init(i_ctx_t **, gs_dual_memory_t *);
int zop_init(i_ctx_t *);
int op_init(i_ctx_t *);
35
#if defined(DEBUG_TRACE_PS_OPERATORS) || defined(DEBUG)
36 37 38
const char *op_get_name_string(op_proc_t opproc);
#endif

39
int
40 41 42 43
i_iodev_init(gs_dual_memory_t *);

void
i_iodev_finit(gs_dual_memory_t *);
44

45 46 47 48 49 50 51 52
/*
 * Test whether there are any Level 2 operators in the executable.
 * (This is different from the language level in which the interpreter is
 * actually running: it is only tested during initialization.)
 */
bool gs_have_level2(void);

#endif /* iinit_INCLUDED */