diff options
author | L Peter Deutsch <lpd@ghostscript.com> | 2000-04-16 03:05:29 +0000 |
---|---|---|
committer | L Peter Deutsch <lpd@ghostscript.com> | 2000-04-16 03:05:29 +0000 |
commit | 30889ae25ed08dda83f6da2254af46f75adf2d5d (patch) | |
tree | 9bf2f80aa72654252dcc63877c3fc2a826f9f98c /gs/src/gsccode.h | |
parent | 3da377aec20a72577c8d0e09e181e4cadf12549e (diff) |
Completes code for reading and writing CMaps.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@324 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/gsccode.h')
-rw-r--r-- | gs/src/gsccode.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/gs/src/gsccode.h b/gs/src/gsccode.h index ec7cdb96c..1bd00c36c 100644 --- a/gs/src/gsccode.h +++ b/gs/src/gsccode.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved. +/* Copyright (C) 1993, 2000 Aladdin Enterprises. All rights reserved. This file is part of Aladdin Ghostscript. @@ -51,11 +51,21 @@ typedef ulong gs_glyph; typedef bool(*gs_glyph_mark_proc_t) (P2(gs_glyph glyph, void *proc_data)); /* Define a procedure for mapping a gs_glyph to its (string) name. */ +/* + * NOTE: As of release 6.21, his procedure is obsolete and deprecated, + * but it must be supported for backward compatibility for the xfont + * interface. + */ #define gs_proc_glyph_name(proc)\ const char *proc(P2(gs_glyph, uint *)) -/* The following typedef is needed because ansi2knr can't handle */ -/* gs_proc_glyph_name((*procname)) in a formal argument list. */ typedef gs_proc_glyph_name((*gs_proc_glyph_name_t)); +/* + * This is the updated procedure, which accepts closure data and also can + * return an error code. + */ +#define gs_glyph_name_proc(proc)\ + int proc(P3(gs_glyph glyph, gs_const_string *pstr, void *proc_data)) +typedef gs_glyph_name_proc((*gs_glyph_name_proc_t)); /* Define the indices for known encodings. */ typedef enum { |