[Pcre-svn] [969] code/trunk: Put spaces around SLJIT_PRINT_D…

Startseite
Nachricht löschen
Autor: Subversion repository
Datum:  
To: pcre-svn
Betreff: [Pcre-svn] [969] code/trunk: Put spaces around SLJIT_PRINT_D in the JIT compiler
Revision: 969
          http://vcs.pcre.org/viewvc?view=rev&revision=969
Author:   zherczeg
Date:     2012-05-27 05:33:38 +0100 (Sun, 27 May 2012)


Log Message:
-----------
Put spaces around SLJIT_PRINT_D in the JIT compiler

Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/sljit/sljitLir.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2012-05-26 14:22:52 UTC (rev 968)
+++ code/trunk/ChangeLog    2012-05-27 04:33:38 UTC (rev 969)
@@ -116,7 +116,9 @@
 31. JIT is now supported on jailbroken iOS devices. Thanks for Ruiger
     Rill for the patch.


+32. Put spaces around SLJIT_PRINT_D in the JIT compiler. Required by CXX11.

+
Version 8.30 04-February-2012
-----------------------------


Modified: code/trunk/sljit/sljitLir.c
===================================================================
--- code/trunk/sljit/sljitLir.c    2012-05-26 14:22:52 UTC (rev 968)
+++ code/trunk/sljit/sljitLir.c    2012-05-27 04:33:38 UTC (rev 969)
@@ -615,14 +615,14 @@


 #define sljit_verbose_param(p, i) \
     if ((p) & SLJIT_IMM) \
-        fprintf(compiler->verbose, "#%"SLJIT_PRINT_D"d", (i)); \
+        fprintf(compiler->verbose, "#%" SLJIT_PRINT_D "d", (i)); \
     else if ((p) & SLJIT_MEM) { \
         if ((p) & 0xf) { \
             if (i) { \
                 if (((p) >> 4) & 0xf) \
                     fprintf(compiler->verbose, "[%s + %s * %d]", reg_names[(p) & 0xF], reg_names[((p) >> 4)& 0xF], 1 << (i)); \
                 else \
-                    fprintf(compiler->verbose, "[%s + #%"SLJIT_PRINT_D"d]", reg_names[(p) & 0xF], (i)); \
+                    fprintf(compiler->verbose, "[%s + #%" SLJIT_PRINT_D "d]", reg_names[(p) & 0xF], (i)); \
             } \
             else { \
                 if (((p) >> 4) & 0xf) \
@@ -632,7 +632,7 @@
             } \
         } \
         else \
-            fprintf(compiler->verbose, "[#%"SLJIT_PRINT_D"d]", (i)); \
+            fprintf(compiler->verbose, "[#%" SLJIT_PRINT_D "d]", (i)); \
     } else \
         fprintf(compiler->verbose, "%s", reg_names[p]);
 #define sljit_verbose_fparam(p, i) \
@@ -642,7 +642,7 @@
                 if (((p) >> 4) & 0xf) \
                     fprintf(compiler->verbose, "[%s + %s * %d]", reg_names[(p) & 0xF], reg_names[((p) >> 4)& 0xF], 1 << (i)); \
                 else \
-                    fprintf(compiler->verbose, "[%s + #%"SLJIT_PRINT_D"d]", reg_names[(p) & 0xF], (i)); \
+                    fprintf(compiler->verbose, "[%s + #%" SLJIT_PRINT_D "d]", reg_names[(p) & 0xF], (i)); \
             } \
             else { \
                 if (((p) >> 4) & 0xF) \
@@ -652,7 +652,7 @@
             } \
         } \
         else \
-            fprintf(compiler->verbose, "[#%"SLJIT_PRINT_D"d]", (i)); \
+            fprintf(compiler->verbose, "[#%" SLJIT_PRINT_D "d]", (i)); \
     } else \
         fprintf(compiler->verbose, "%s", freg_names[p]);


@@ -1164,7 +1164,7 @@
     if (SLJIT_UNLIKELY(!!compiler->verbose)) {
         fprintf(compiler->verbose, "  local_base ");
         sljit_verbose_param(dst, dstw);
-        fprintf(compiler->verbose, ", #%"SLJIT_PRINT_D"d\n", offset);
+        fprintf(compiler->verbose, ", #%" SLJIT_PRINT_D "d\n", offset);
     }
 #endif
 }
@@ -1184,7 +1184,7 @@
     if (SLJIT_UNLIKELY(!!compiler->verbose)) {
         fprintf(compiler->verbose, "  const ");
         sljit_verbose_param(dst, dstw);
-        fprintf(compiler->verbose, ", #%"SLJIT_PRINT_D"d\n", init_value);
+        fprintf(compiler->verbose, ", #%" SLJIT_PRINT_D "d\n", init_value);
     }
 #endif
 }