This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regexec.c: Move a #define next to related code
authorKarl Williamson <khw@cpan.org>
Sun, 23 Aug 2015 16:45:43 +0000 (10:45 -0600)
committerKarl Williamson <khw@cpan.org>
Mon, 24 Aug 2015 20:01:23 +0000 (14:01 -0600)
One message here uses a static array, and one uses a #define.  I don't
think it really matters, but they should be adjacent.

regexec.c

index 781bc6b..cb209c8 100644 (file)
--- a/regexec.c
+++ b/regexec.c
@@ -37,9 +37,6 @@
 #include "re_top.h"
 #endif
 
-#define B_ON_NON_UTF8_LOCALE_IS_WRONG            \
-      "Use of \\b{} or \\B{} for non-UTF-8 locale is wrong.  Assuming a UTF-8 locale"
-
 /*
  * pregcomp and pregexec -- regsub and regerror are not used in perl
  *
@@ -86,6 +83,9 @@
 #include "invlist_inline.h"
 #include "unicode_constants.h"
 
+#define B_ON_NON_UTF8_LOCALE_IS_WRONG            \
+ "Use of \\b{} or \\B{} for non-UTF-8 locale is wrong.  Assuming a UTF-8 locale"
+
 static const char utf8_locale_required[] =
       "Use of (?[ ]) for non-UTF-8 locale is wrong.  Assuming a UTF-8 locale";