[gs-cvs] rev 8128 - trunk/gs/src

alexcher at ghostscript.com alexcher at ghostscript.com
Mon Jul 16 09:58:11 PDT 2007


Author: alexcher
Date: 2007-07-16 09:58:11 -0700 (Mon, 16 Jul 2007)
New Revision: 8128

Modified:
   trunk/gs/src/idict.c
   trunk/gs/src/zfcid1.c
Log:
Make failed dictionary look-up return /undefined instead of /dictfull.
Bug 689360

DIFFERENCES:
None


Modified: trunk/gs/src/idict.c
===================================================================
--- trunk/gs/src/idict.c	2007-07-15 17:27:07 UTC (rev 8127)
+++ trunk/gs/src/idict.c	2007-07-16 16:58:11 UTC (rev 8128)
@@ -423,7 +423,10 @@
 	if ((code = name_ref(dict_mem(pdict), 
 			     (const byte *)kstr, strlen(kstr), &kname, -1)) < 0)
 	    return code;
-	return dict_find(pdref, &kname, ppvalue);
+	code = dict_find(pdref, &kname, ppvalue);
+        if (code == e_dictfull)
+            return_error(e_undefined);
+        return code;
     }
     return 0;
 }

Modified: trunk/gs/src/zfcid1.c
===================================================================
--- trunk/gs/src/zfcid1.c	2007-07-15 17:27:07 UTC (rev 8127)
+++ trunk/gs/src/zfcid1.c	2007-07-16 16:58:11 UTC (rev 8128)
@@ -279,7 +279,7 @@
     if (MetricsCount & 1)	/* only allowable values are 0, 2, 4 */
 	return_error(e_rangecheck);
     code = dict_find_string(op, "File", &pfile);
-    if (code < 0 && code != e_dictfull)
+    if (code < 0 && code != e_undefined)
 	return code;
     if (code > 0) {
 	ref *file_table_pos, *a, v;



More information about the gs-cvs mailing list