~ubuntu-branches/ubuntu/hardy/ghostscript/hardy

« back to all changes in this revision

Viewing changes to src/imain.c

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2007-11-22 12:17:43 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071122121743-cd70s3ypq0r243mp
Tags: 8.61.dfsg.1-0ubtuntu1
* New upstream release
  o Final 8.61 release
* debian/patches/09_ijs_krgb_support.dpatch: Adapted to upstream changes.
* debian/rules: Updated CUPS-related variables for "make install" calls.
* debian/rules: Remove /usr/include/ghostscript from the ghostscript
  package, they go into lings-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
13
 
14
 
/* $Id: imain.c 8022 2007-06-05 22:23:38Z giles $ */
 
14
/* $Id: imain.c 8250 2007-09-25 13:31:24Z giles $ */
15
15
/* Common support for interpreter front ends */
16
16
#include "malloc_.h"
17
17
#include "memory_.h"
88
88
 
89
89
/* ------ Forward references ------ */
90
90
 
91
 
private int gs_run_init_file(gs_main_instance *, int *, ref *);
 
91
static int gs_run_init_file(gs_main_instance *, int *, ref *);
92
92
void print_resource_usage(const gs_main_instance *,
93
93
                                  gs_dual_memory_t *, const char *);
94
94
 
186
186
}
187
187
 
188
188
/* Initialization to be done before running any files. */
189
 
private void
 
189
static void
190
190
init2_make_string_array(i_ctx_t *i_ctx_p, const ref * srefs, const char *aname)
191
191
{
192
192
    const ref *ifp = srefs;
202
202
 * Invoke the interpreter. This layer doesn't do much (previously stdio
203
203
 * callouts were handled here instead of in the stream processing.
204
204
 */
205
 
private int
 
205
static int
206
206
gs_main_interpret(gs_main_instance *minst, ref * pref, int user_errors, 
207
207
        int *pexit_code, ref * perror_object)
208
208
{
278
278
 
279
279
/* Internal routine to add a set of directories to a search list. */
280
280
/* Returns 0 or an error code. */
281
 
private int
 
281
static int
282
282
file_path_add(gs_file_path * pfp, const char *dirs)
283
283
{
284
284
    uint len = r_size(&pfp->list);
426
426
}
427
427
 
428
428
/* Open and run the very first initialization file. */
429
 
private int
 
429
static int
430
430
gs_run_init_file(gs_main_instance * minst, int *pexit_code, ref * perror_object)
431
431
{
432
432
    i_ctx_t *i_ctx_p = minst->i_ctx_p;
534
534
 
535
535
/* These are built for comfort, not for speed. */
536
536
 
537
 
private int
 
537
static int
538
538
push_value(gs_main_instance *minst, ref * pvalue)
539
539
{
540
540
    i_ctx_t *i_ctx_p = minst->i_ctx_p;
584
584
    return push_value(minst, &vref);
585
585
}
586
586
 
587
 
private int
 
587
static int
588
588
pop_value(i_ctx_t *i_ctx_p, ref * pvalue)
589
589
{
590
590
    if (!ref_stack_count(&o_stack))
681
681
 * the interpreter finishes, and then delete the files 
682
682
 * after the interpreter has closed all files.
683
683
 */
684
 
private char *gs_main_tempnames(gs_main_instance *minst)
 
684
static char *gs_main_tempnames(gs_main_instance *minst)
685
685
{
686
686
    i_ctx_t *i_ctx_p = minst->i_ctx_p;
687
687
    ref *SAFETY;