home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / g / gs252src.zip / GS252 / SCANCHAR.H < prev    next >
C/C++ Source or Header  |  1992-02-15  |  2KB  |  46 lines

  1. /* Copyright (C) 1990, 1991 Aladdin Enterprises.  All rights reserved.
  2.    Distributed by Free Software Foundation, Inc.
  3.  
  4. This file is part of Ghostscript.
  5.  
  6. Ghostscript is distributed in the hope that it will be useful, but
  7. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. to anyone for the consequences of using it or for whether it serves any
  9. particular purpose or works at all, unless he says so in writing.  Refer
  10. to the Ghostscript General Public License for full details.
  11.  
  12. Everyone is granted permission to copy, modify and redistribute
  13. Ghostscript, but only under the conditions described in the Ghostscript
  14. General Public License.  A copy of this license is supposed to have been
  15. given to you along with Ghostscript so you can know your rights and
  16. responsibilities.  It should be in a file named COPYING.  Among other
  17. things, the copyright notice and this notice must be preserved on all
  18. copies.  */
  19.  
  20. /* scanchar.h */
  21. /* Character scanning table for Ghostscript */
  22.  
  23. /* An array for fast scanning of names, numbers, and hex strings. */
  24. /*  Indexed by character code (including EOFC and ERRC), it contains: */
  25. /*    0 - max_radix-1 for valid digits, */
  26. /*    ctype_name for other characters valid in names, */
  27. /*    ctype_btoken for characters introducing binary tokens */
  28. /*      (if the binary token feature is enabled), */
  29. /*    ctype_space for whitespace characters, */
  30. /*    ctype_eof for end-of-file, and */
  31. /*    ctype_other for everything else. */
  32. /* This table is initialized in iscan.c, used in iscan.c and stream.c. */
  33. extern byte scan_char_array[258];
  34. #define scan_char_decoder (&scan_char_array[2])    /* account for EOFC/ERRC */
  35. #define min_radix 2
  36. #define max_radix 36
  37. #define ctype_name 100
  38. #define ctype_btoken 101
  39. #define ctype_space 102
  40. #define ctype_other 103
  41. #define ctype_eof 104
  42. /* Special characters with no \xxx representation */
  43. #define char_NULL 0
  44. #define char_VT 013            /* ^K, vertical tab */
  45. #define char_DOS_EOF 032        /* ^Z */
  46.