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

leonardo at ghostscript.com leonardo at ghostscript.com
Tue Jun 19 00:09:42 PDT 2007


Author: leonardo
Date: 2007-06-19 00:09:42 -0700 (Tue, 19 Jun 2007)
New Revision: 8064

Modified:
   trunk/gs/src/idicttpl.h
Log:
Fix (PS interpreter) : Replace packed_search_* macros with a template (continued).

DETAILS :

This change is algorithmically equivalent.
The purpose is to improve the debugging technology.
The new variable 'start' allows to observe the value of the starting search index.

EXPECTED DIFFERENCES :

None.


Modified: trunk/gs/src/idicttpl.h
===================================================================
--- trunk/gs/src/idicttpl.h	2007-06-19 05:51:01 UTC (rev 8063)
+++ trunk/gs/src/idicttpl.h	2007-06-19 07:09:42 UTC (rev 8064)
@@ -33,8 +33,8 @@
  */
 
     const ref_packed *kbot = pdict->keys.value.packed;
-    register const ref_packed *kp = kbot + dict_hash_mod(hash, size) + 1;
-
+    const int start = dict_hash_mod(hash, size) + 1;
+    register const ref_packed *kp = kbot + start;
     int wrap = 0;
 
     again:



More information about the gs-cvs mailing list