]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Fix unknownMacro
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Wed, 15 May 2024 14:04:50 +0000 (17:04 +0300)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Wed, 15 May 2024 14:04:50 +0000 (17:04 +0300)
src/parser/ucp_table.cpp
src/parser/ucp_table.h

index fc1330fe7f22a0a15156874d7db279a402cb3d52..77f13009249d98c4f88ec6fc1847596702f1ca2f 100644 (file)
@@ -34,14 +34,6 @@ using namespace std;
 
 namespace ue2 {
 
-#define UCP_FN(cat)                                                     \
-CodePointSet getUcp##cat(void) {                                        \
-    CodePointSet rv;                                                    \
-    for (u32 i = 0; i < ARRAY_LENGTH(ucp_##cat##_def); i += 2) {        \
-        rv.setRange(ucp_##cat##_def[i], ucp_##cat##_def[i + 1]);        \
-    }                                                                   \
-    return rv;                                                          \
-}
 
 struct unicase {
     unichar base;
index 269a971cb1f0734c9f68b239c6e51886bab2afcb..5f0c9af387e9ef035d74c0b17957c78bbac43803 100644 (file)
 
 namespace ue2 {
 
+#define UCP_FN(cat)                                                     \
+CodePointSet getUcp##cat(void) {                                        \
+    CodePointSet rv;                                                    \
+    for (u32 i = 0; i < ARRAY_LENGTH(ucp_##cat##_def); i += 2) {        \
+        rv.setRange(ucp_##cat##_def[i], ucp_##cat##_def[i + 1]);        \
+    }                                                                   \
+    return rv;                                                          \
+}
+
 class CodePointSet;
 void make_caseless(CodePointSet *cps);
 bool flip_case(unichar *c);