[gs-cvs] gs/toolbin

L. Peter Deutsch lpd at casper.ghostscript.com
Tue Jul 9 07:04:21 PDT 2002


Update of /cvs/ghostscript/gs/toolbin
In directory casper:/tmp/cvs-serv21022/toolbin

Modified Files:
	encs2c.ps 
Log Message:

Adds a procedure for testing whether a string was returned by
gs_c_glyph_name.  Allows the font copying code to share these strings,
substantially reducing the load on the garbage collector.


Index: encs2c.ps
===================================================================
RCS file: /cvs/ghostscript/gs/toolbin/encs2c.ps,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- encs2c.ps	14 Jun 2002 13:31:53 -0000	1.2
+++ encs2c.ps	9 Jul 2002 14:04:19 -0000	1.3
@@ -48,6 +48,7 @@
   (#define N_OFFSET(e) ((e) >> NUM_LEN_BITS)) =
   () =
   (extern const char gs_c_known_encoding_chars[];) =
+  (extern const int gs_c_known_encoding_total_chars;) =
   (extern const int gs_c_known_encoding_max_length;) =
   (extern const ushort gs_c_known_encoding_offsets[];) =
   (extern const int gs_c_known_encoding_count;) =
@@ -93,6 +94,9 @@
     /offset offset noff add def
   } for
   (0};) =
+(
+const int gs_c_known_encoding_total_chars = ) print
+  offset =only (;) =
 
 	% Write the starting offsets of the names of each length.
   /numchars 0 estrs { pop length add } forall def




More information about the gs-cvs mailing list