[Pcre-svn] [890] code/trunk: Add PCRE_CONFIG_JITTARGET outpu…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [890] code/trunk: Add PCRE_CONFIG_JITTARGET output to pcretest -C.
Revision: 890
          http://vcs.pcre.org/viewvc?view=rev&revision=890
Author:   ph10
Date:     2012-01-18 16:25:19 +0000 (Wed, 18 Jan 2012)


Log Message:
-----------
Add PCRE_CONFIG_JITTARGET output to pcretest -C.

Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/pcretest.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2012-01-17 14:51:50 UTC (rev 889)
+++ code/trunk/ChangeLog    2012-01-18 16:25:19 UTC (rev 890)
@@ -51,6 +51,8 @@


 13. Applied Dmitry V. Levin's patch for a more portable method for linking with
     -lreadline.
+    
+14. ZH added PCRE_CONFIG_JITTARGET; added it's output to pcretest -C. 



Version 8.21 12-Dec-2011

Modified: code/trunk/pcretest.c
===================================================================
--- code/trunk/pcretest.c    2012-01-17 14:51:50 UTC (rev 889)
+++ code/trunk/pcretest.c    2012-01-18 16:25:19 UTC (rev 890)
@@ -2410,7 +2410,11 @@
     printf("  %sUnicode properties support\n", rc? "" : "No ");
     (void)PCRE_CONFIG(PCRE_CONFIG_JIT, &rc);
     if (rc)
-      printf("  Just-in-time compiler support\n");
+      {
+      const char *arch;
+      (void)PCRE_CONFIG(PCRE_CONFIG_JITTARGET, &arch);   
+      printf("  Just-in-time compiler support: %s\n", arch);
+      } 
     else
       printf("  No just-in-time compiler support\n");
     (void)PCRE_CONFIG(PCRE_CONFIG_NEWLINE, &rc);