xref: /plan9/sys/src/cmd/gs/src/iscanbin.h (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 1999 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: iscanbin.h,v 1.5 2002/06/16 04:47:10 lpd Exp $ */
18 /* Interface to binary token scanner */
19 
20 #ifndef iscanbin_INCLUDED
21 #  define iscanbin_INCLUDED
22 
23 /*
24  * Scan a binary token.  The main scanner calls this iff recognize_btokens()
25  * is true.  Return e_unregistered if Level 2 features are not included.
26  * Return 0 or scan_BOS on success, <0 on failure.
27  *
28  * This header file exists only because there are two implementations of
29  * this procedure: a dummy one for Level 1 systems, and the real one.
30  * The interface is entirely internal to the scanner.
31  */
32 int scan_binary_token(i_ctx_t *i_ctx_p, stream *s, ref *pref,
33 		      scanner_state *pstate);
34 
35 #endif /* iscanbin_INCLUDED */
36