[gs-cvs] gs/src
L. Peter Deutsch
lpd at casper.ghostscript.com
Wed Apr 10 21:12:19 PDT 2002
Update of /cvs/ghostscript/gs/src
In directory casper:/tmp/cvs-serv12895/src
Modified Files:
gdevpdfm.c
Log Message:
Changes two calls of cos_dict_find to cos_dict_find_c_key (hygiene only).
Index: gdevpdfm.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdfm.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- gdevpdfm.c 21 Feb 2002 22:24:51 -0000 1.16
+++ gdevpdfm.c 11 Apr 2002 04:12:17 -0000 1.17
@@ -408,8 +408,7 @@
*/
pdfmark_put_pair(pcd, pair);
/* Break const so we can update the (copied) string. */
- pcv = (cos_value_t *)
- cos_dict_find(pcd, (const byte *)"/Contents", 9);
+ pcv = (cos_value_t *)cos_dict_find_c_key(pcd, "/Contents");
cstr = pcv->contents.chars.data;
/* Loop invariant: j <= i < csize. */
for (i = j = 0; i < csize;)
@@ -842,7 +841,7 @@
/* Find the article with this title, or create one. */
for (part = pdev->articles; part != 0; part = part->next) {
const cos_value_t *a_title =
- cos_dict_find(part->contents, (const byte *)"/Title", 6);
+ cos_dict_find_c_key(part->contents, "/Title");
if (a_title != 0 && !COS_VALUE_IS_OBJECT(a_title) &&
!bytes_compare(a_title->contents.chars.data,
More information about the gs-cvs
mailing list