iscanbin.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
  2. This software is provided AS-IS with no warranty, either express or
  3. implied.
  4. This software is distributed under license and may not be copied,
  5. modified or distributed except as expressly authorized under the terms
  6. of the license contained in the file LICENSE in this distribution.
  7. For more information about licensing, please refer to
  8. http://www.ghostscript.com/licensing/. For information on
  9. commercial licensing, go to http://www.artifex.com/licensing/ or
  10. contact Artifex Software, Inc., 101 Lucas Valley Road #110,
  11. San Rafael, CA 94903, U.S.A., +1(415)492-9861.
  12. */
  13. /* $Id: iscanbin.h,v 1.5 2002/06/16 04:47:10 lpd Exp $ */
  14. /* Interface to binary token scanner */
  15. #ifndef iscanbin_INCLUDED
  16. # define iscanbin_INCLUDED
  17. /*
  18. * Scan a binary token. The main scanner calls this iff recognize_btokens()
  19. * is true. Return e_unregistered if Level 2 features are not included.
  20. * Return 0 or scan_BOS on success, <0 on failure.
  21. *
  22. * This header file exists only because there are two implementations of
  23. * this procedure: a dummy one for Level 1 systems, and the real one.
  24. * The interface is entirely internal to the scanner.
  25. */
  26. int scan_binary_token(i_ctx_t *i_ctx_p, stream *s, ref *pref,
  27. scanner_state *pstate);
  28. #endif /* iscanbin_INCLUDED */