File: main.h

package info (click to toggle)
gs 3.33-7
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 7,436 kB
  • ctags: 15,511
  • sloc: ansic: 92,150; asm: 684; sh: 486; makefile: 91
file content (44 lines) | stat: -rw-r--r-- 1,954 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* Copyright (C) 1992, 1994 Aladdin Enterprises.  All rights reserved.
  
  This file is part of GNU Ghostscript.
  
  GNU 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 GNU Ghostscript General Public License for full details.
  
*/

/* main.h */
/* Interface between gs.c and gsmain.c */

#include "gsexit.h"			/* exported by gsmain.c */

/* Exported data from gsmain.c */
extern char *gs_lib_env_path;
extern uint gs_memory_chunk_size;
extern int gs_user_errors;

/* Exported procedures from gsmain.c */
void	gs_init0(P4(FILE *, FILE *, FILE *, int)),
	gs_init1(P0()),
	gs_init2(P0());
void	gs_add_lib_path(P1(const char *)),
	gs_set_lib_paths(P0());
int	gs_lib_open(P2(const char *fname, ref *pfile));
/* The value returned by gs_run_file and gs_run_string[_with_length] is */
/* 0 if the interpreter ran to completion, e_Quit for a normal quit, */
/* e_Fatal for a non-zero quit or a fatal error. */
/* e_Fatal stores the exit code in the third argument. */
/* The str argument of gs_run_string[_with_length] must be allocated */
/* in non-garbage-collectable space (e.g., by malloc or gs_malloc, */
/* or statically). */
int	gs_run_file(P4(const char *fname, int user_errors, int *pexit_code, ref *perror_object)),
	gs_run_string(P4(const char *str, int user_errors, int *pexit_code, ref *perror_object)),
	gs_run_string_with_length(P5(const char *str, uint length, int user_errors, int *pexit_code, ref *perror_object));
void	gs_debug_dump_stack(P2(int code, ref *perror_object));
void	gs_finit(P2(int exit_status, int code));
/* Direct interface to the interpreter. */
/* Clients do not normally use this. */
int	gs_interpret(P4(ref *pref, int user_errors, int *pexit_code, ref *perror_object));