iscanbin.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
  2. This file is part of AFPL Ghostscript.
  3. AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or
  4. distributor accepts any responsibility for the consequences of using it, or
  5. for whether it serves any particular purpose or works at all, unless he or
  6. she says so in writing. Refer to the Aladdin Free Public License (the
  7. "License") for full details.
  8. Every copy of AFPL Ghostscript must include a copy of the License, normally
  9. in a plain ASCII text file named PUBLIC. The License grants you the right
  10. to copy, modify and redistribute AFPL Ghostscript, but only under certain
  11. conditions described in the License. Among other things, the License
  12. requires that the copyright notice and this notice be preserved on all
  13. copies.
  14. */
  15. /*$Id: iscanbin.h,v 1.2 2000/09/19 19:00:46 lpd Exp $ */
  16. /* Interface to binary token scanner */
  17. #ifndef iscanbin_INCLUDED
  18. # define iscanbin_INCLUDED
  19. /*
  20. * Scan a binary token. The main scanner calls this iff recognize_btokens()
  21. * is true. Return e_unregistered if Level 2 features are not included.
  22. * Return 0 or scan_BOS on success, <0 on failure.
  23. *
  24. * This header file exists only because there are two implementations of
  25. * this procedure: a dummy one for Level 1 systems, and the real one.
  26. * The interface is entirely internal to the scanner.
  27. */
  28. int scan_binary_token(P4(i_ctx_t *i_ctx_p, stream *s, ref *pref,
  29. scanner_state *pstate));
  30. #endif /* iscanbin_INCLUDED */