home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 February / PCWK0296.iso / sharewar / dos / program / gs300sr1 / gs300sr1.exe / ICHAR.H < prev    next >
Text File  |  1994-07-27  |  2KB  |  58 lines

  1. /* Copyright (C) 1994 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of Aladdin Ghostscript.
  4.   
  5.   Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  6.   or distributor accepts any responsibility for the consequences of using it,
  7.   or for whether it serves any particular purpose or works at all, unless he
  8.   or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  9.   License (the "License") for full details.
  10.   
  11.   Every copy of Aladdin Ghostscript must include a copy of the License,
  12.   normally in a plain ASCII text file named PUBLIC.  The License grants you
  13.   the right to copy, modify and redistribute Aladdin Ghostscript, but only
  14.   under certain conditions described in the License.  Among other things, the
  15.   License requires that the copyright notice and this notice be preserved on
  16.   all copies.
  17. */
  18.  
  19. /* ichar.h */
  20. /* Shared definitions for text operators */
  21. /* Requires gxchar.h */
  22.  
  23. /*
  24.  * All the character rendering operators use the execution stack
  25.  * for loop control -- see estack.h for details.
  26.  * The information pushed by these operators is as follows:
  27.  *    the enumerator (t_struct, a gs_show_enum);
  28.  *    a slot for the procedure for kshow or cshow (probably t_array) or
  29.  *        the stream for [x][y]show (t_struct, a stream);
  30.  *    a slot for the saved o-stack depth for cshow or stringwidth
  31.  *        (t_integer);
  32.  *    a slot for the saved d-stack depth ditto (t_integer);
  33.  *    the procedure to be called at the end of the enumeration
  34.  *        (t_operator, but called directly, not by the interpreter);
  35.  *    the usual e-stack mark (t_null).
  36.  */
  37. #define snumpush 6
  38. #define esenum(ep) r_ptr(ep, gs_show_enum)
  39. #define senum esenum(esp)
  40. #define esslot(ep) ((ep)[-1])
  41. #define sslot esslot(esp)
  42. #define esodepth(ep) ((ep)[-2])
  43. #define sodepth esodepth(esp)
  44. #define esddepth(ep) ((ep)[-3])
  45. #define sddepth esddepth(esp)
  46. #define eseproc(ep) ((ep)[-4])
  47. #define seproc eseproc(esp)
  48.  
  49. /* Procedures exported by zchar.c for zchar1.c and/or zchar2.c. */
  50. gs_show_enum *op_show_find(P0());
  51. int op_show_setup(P2(os_ptr, gs_show_enum **));
  52. int op_show_enum_setup(P1(gs_show_enum **));
  53. void op_show_finish_setup(P3(gs_show_enum *, int, op_proc_p));
  54. int op_show_continue(P1(os_ptr));
  55. int op_show_continue_dispatch(P2(os_ptr, int));
  56. int op_show_return_width(P3(os_ptr, uint, float *));
  57. void op_show_free(P0());
  58.