Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
/* Copyright (C) 2000 Aladdin Enterprises.  All rights reserved.
2
 
3
  This software is provided AS-IS with no warranty, either express or
4
  implied.
5
 
6
  This software is distributed under license and may not be copied,
7
  modified or distributed except as expressly authorized under the terms
8
  of the license contained in the file LICENSE in this distribution.
9
 
10
  For more information about licensing, please refer to
11
  http://www.ghostscript.com/licensing/. For information on
12
  commercial licensing, go to http://www.artifex.com/licensing/ or
13
  contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14
  San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15
*/
16
 
17
/* $Id: itoken.h,v 1.5 2002/06/16 04:47:10 lpd Exp $ */
18
/* Interface to exported procedures in ztoken.c */
19
 
20
#ifndef itoken_INCLUDED
21
#  define itoken_INCLUDED
22
 
23
/*
24
 * Continue after handling a procedure stream refill or other callout
25
 * while reading tokens in the interpreter.
26
 */
27
int ztokenexec_continue(i_ctx_t *i_ctx_p);
28
 
29
/*
30
 * Handle a scan_Comment or scan_DSC_Comment return from scan_token.
31
 */
32
#ifndef scanner_state_DEFINED
33
#  define scanner_state_DEFINED
34
typedef struct scanner_state_s scanner_state;
35
#endif
36
int ztoken_handle_comment(i_ctx_t *i_ctx_p, const ref *fop,
37
			  scanner_state *sstate, const ref *ptoken,
38
			  int scan_code, bool save, bool push_file,
39
			  op_proc_t cont);
40
 
41
/*
42
 * Update the cached scanner_options in the context state after doing a
43
 * setuserparams.  (We might move this procedure somewhere else eventually.)
44
 */
45
int ztoken_scanner_options(const ref *upref, int old_options);
46
 
47
#endif /* itoken_INCLUDED */