[tlbuild] compile fix (variable declaration not at the beginning of a block)

Vladimir Volovich vvv at vsu.ru
Thu May 14 18:53:51 CEST 2009


Hi,

here is a patch for (some) places which use variable decaration not at
the beginning of a block:

===============================================
--- texk/dvipdfmx/src/pdfdoc.c	(revision 13085)
+++ texk/dvipdfmx/src/pdfdoc.c	(working copy)
@@ -965,12 +965,13 @@
    */
   {
     pdf_obj *tmp = pdf_deref_obj(pdf_lookup_dict(page_tree, "Count"));
+    long count;
     if (!PDF_OBJ_NUMBERTYPE(tmp)) {
       if (tmp)
 	pdf_release_obj(tmp);
       goto error;
     }
-    long count = pdf_number_value(tmp);
+    count = pdf_number_value(tmp);
     pdf_release_obj(tmp);
     page_idx = page_no + (page_no >= 0 ? -1 : count);
     if (page_idx < 0 || page_idx >= count) {
--- texk/kpathsea/absolute.c	(revision 13085)
+++ texk/kpathsea/absolute.c	(working copy)
@@ -27,7 +27,7 @@
 boolean
 kpathsea_absolute_p (kpathsea kpse, const_string filename,  boolean relative_ok)
 {
-    (void)kpse; /* currenty not used */
+/*    (void)kpse; */ /* currenty not used */
 #ifdef VMS
 #include <string.h>
   return strcspn (filename, "]>:") != strlen (filename);
--- texk/kpathsea/hash.c	(revision 13085)
+++ texk/kpathsea/hash.c	(working copy)
@@ -182,6 +182,7 @@
 
 #ifdef KPSE_DEBUG
 #if defined (KPSE_COMPAT_API)
+  {
   kpathsea kpse = kpse_def;
   if (KPATHSEA_DEBUG_P (KPSE_DEBUG_HASH))
     {
@@ -203,6 +204,7 @@
         }
       fflush (stderr);
     }
+  }
 #endif
 #endif
 
===============================================

Best,
v.


More information about the tlbuild mailing list