aboutsummaryrefslogtreecommitdiff
path: root/gen
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-04-16 10:39:47 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-04-16 10:49:21 +0200
commit402f5b4777897f0400a6a3e710452f6f64edb7d2 (patch)
treef49762ea36389ab6202be8076a73b5c08620dd32 /gen
parentc84f2f1b74d362054ecde1838cbc13a953cae8aa (diff)
Change private symbol prefix from ‘__’ to ‘_’
Diffstat (limited to 'gen')
-rwxr-xr-xgen/prop/age4
-rwxr-xr-xgen/prop/bc4
-rwxr-xr-xgen/prop/blk4
-rwxr-xr-xgen/prop/bmg4
-rw-r--r--gen/prop/bool-props.awk4
-rwxr-xr-xgen/prop/bpb4
-rwxr-xr-xgen/prop/bpt4
-rwxr-xr-xgen/prop/dt4
-rwxr-xr-xgen/prop/ea4
-rwxr-xr-xgen/prop/gc4
-rwxr-xr-xgen/prop/lb4
-rwxr-xr-xgen/prop/na14
-rwxr-xr-xgen/prop/nt4
-rwxr-xr-xgen/prop/nv4
-rwxr-xr-xgen/prop/sc4
-rwxr-xr-xgen/prop/scf4
-rwxr-xr-xgen/prop/slc4
-rwxr-xr-xgen/prop/stc4
-rwxr-xr-xgen/prop/suc4
-rwxr-xr-xgen/string/gbrk10
20 files changed, 43 insertions, 43 deletions
diff --git a/gen/prop/age b/gen/prop/age
index d0f742f..c6aac06 100755
--- a/gen/prop/age
+++ b/gen/prop/age
@@ -10,7 +10,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/age; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
print ""
@@ -44,7 +44,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH(enum uprop_age, lookup, AGE_NA)"
+ print "_MLIB_DEFINE_BSEARCH(enum uprop_age, lookup, AGE_NA)"
print ""
print "enum uprop_age"
print "uprop_get_age(rune ch)"
diff --git a/gen/prop/bc b/gen/prop/bc
index ccaf55a..fdb8c3f 100755
--- a/gen/prop/bc
+++ b/gen/prop/bc
@@ -10,7 +10,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/bc; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -54,7 +54,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH(enum uprop_bc, lookup, BC_L)"
+ print "_MLIB_DEFINE_BSEARCH(enum uprop_bc, lookup, BC_L)"
print ""
print "enum uprop_bc"
print "uprop_get_bc(rune ch)"
diff --git a/gen/prop/blk b/gen/prop/blk
index 574f5af..a3bf56d 100755
--- a/gen/prop/blk
+++ b/gen/prop/blk
@@ -339,7 +339,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/blk; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -384,7 +384,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH(enum uprop_blk, lookup, BLK_NB)"
+ print "_MLIB_DEFINE_BSEARCH(enum uprop_blk, lookup, BLK_NB)"
print ""
print "enum uprop_blk"
print "uprop_get_blk(rune ch)"
diff --git a/gen/prop/bmg b/gen/prop/bmg
index ae5beff..67124cd 100755
--- a/gen/prop/bmg
+++ b/gen/prop/bmg
@@ -10,7 +10,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/bmg; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -43,7 +43,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH_KV(rune, lookup, 0)"
+ print "_MLIB_DEFINE_BSEARCH_KV(rune, lookup, 0)"
print ""
print "rune"
print "uprop_get_bmg(rune ch)"
diff --git a/gen/prop/bool-props.awk b/gen/prop/bool-props.awk
index d9c6299..6362dea 100644
--- a/gen/prop/bool-props.awk
+++ b/gen/prop/bool-props.awk
@@ -3,7 +3,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/bool-props; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"bitset.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -62,7 +62,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH_CONTAINS(lookup)"
+ print "_MLIB_DEFINE_BSEARCH_CONTAINS(lookup)"
print ""
}
diff --git a/gen/prop/bpb b/gen/prop/bpb
index c6fdf5d..8c0b696 100755
--- a/gen/prop/bpb
+++ b/gen/prop/bpb
@@ -10,7 +10,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/bpb; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -41,7 +41,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH_KV(rune, lookup, 0)"
+ print "_MLIB_DEFINE_BSEARCH_KV(rune, lookup, 0)"
print ""
print "rune"
print "uprop_get_bpb(rune ch)"
diff --git a/gen/prop/bpt b/gen/prop/bpt
index c9726a6..1ad1741 100755
--- a/gen/prop/bpt
+++ b/gen/prop/bpt
@@ -10,7 +10,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/bpt; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -42,7 +42,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH_KV(enum uprop_bpt, lookup, BPT_N)"
+ print "_MLIB_DEFINE_BSEARCH_KV(enum uprop_bpt, lookup, BPT_N)"
print ""
print "enum uprop_bpt"
print "uprop_get_bpt(rune ch)"
diff --git a/gen/prop/dt b/gen/prop/dt
index eb4884c..12881c5 100755
--- a/gen/prop/dt
+++ b/gen/prop/dt
@@ -29,7 +29,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/dt; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -73,7 +73,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH(enum uprop_dt, lookup, DT_NONE)"
+ print "_MLIB_DEFINE_BSEARCH(enum uprop_dt, lookup, DT_NONE)"
print ""
print "enum uprop_dt"
print "uprop_get_dt(rune ch)"
diff --git a/gen/prop/ea b/gen/prop/ea
index a72ff10..0d7f357 100755
--- a/gen/prop/ea
+++ b/gen/prop/ea
@@ -10,7 +10,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/ea; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -54,7 +54,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH(enum uprop_ea, lookup, EA_NA)"
+ print "_MLIB_DEFINE_BSEARCH(enum uprop_ea, lookup, EA_NA)"
print ""
print "enum uprop_ea"
print "uprop_get_ea(rune ch)"
diff --git a/gen/prop/gc b/gen/prop/gc
index c027754..4b4409f 100755
--- a/gen/prop/gc
+++ b/gen/prop/gc
@@ -10,7 +10,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/gc; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -57,7 +57,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH(enum uprop_gc, lookup, GC_CN)"
+ print "_MLIB_DEFINE_BSEARCH(enum uprop_gc, lookup, GC_CN)"
print ""
print "enum uprop_gc"
print "uprop_get_gc(rune ch)"
diff --git a/gen/prop/lb b/gen/prop/lb
index 251a947..2abab6c 100755
--- a/gen/prop/lb
+++ b/gen/prop/lb
@@ -10,7 +10,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/lb; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -54,7 +54,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH(enum uprop_lb, lookup, LB_XX)"
+ print "_MLIB_DEFINE_BSEARCH(enum uprop_lb, lookup, LB_XX)"
print ""
print "enum uprop_lb"
print "uprop_get_lb(rune ch)"
diff --git a/gen/prop/na1 b/gen/prop/na1
index 855f1de..776bf11 100755
--- a/gen/prop/na1
+++ b/gen/prop/na1
@@ -10,7 +10,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/na1; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -33,7 +33,7 @@ length($11) > 0 {
END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH_KV(struct u8view, lookup, (struct u8view){})"
+ print "_MLIB_DEFINE_BSEARCH_KV(struct u8view, lookup, (struct u8view){})"
print ""
print "struct u8view"
print "uprop_get_na1(rune ch)"
diff --git a/gen/prop/nt b/gen/prop/nt
index 720baf2..835bc3f 100755
--- a/gen/prop/nt
+++ b/gen/prop/nt
@@ -14,7 +14,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/nt; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -58,7 +58,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH(enum uprop_nt, lookup, NT_NONE)"
+ print "_MLIB_DEFINE_BSEARCH(enum uprop_nt, lookup, NT_NONE)"
print ""
print "enum uprop_nt"
print "uprop_get_nt(rune ch)"
diff --git a/gen/prop/nv b/gen/prop/nv
index 9cb6ba9..f8c3e31 100755
--- a/gen/prop/nv
+++ b/gen/prop/nv
@@ -12,7 +12,7 @@ BEGIN {
print ""
print "#include <float.h>"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -54,7 +54,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH_KV(double, lookup, NAN)"
+ print "_MLIB_DEFINE_BSEARCH_KV(double, lookup, NAN)"
print ""
print "double"
print "uprop_get_nv(rune ch)"
diff --git a/gen/prop/sc b/gen/prop/sc
index 40fc39b..ac8cbf6 100755
--- a/gen/prop/sc
+++ b/gen/prop/sc
@@ -177,7 +177,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/sc; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -221,7 +221,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH(enum uprop_sc, lookup, SC_ZZZZ)"
+ print "_MLIB_DEFINE_BSEARCH(enum uprop_sc, lookup, SC_ZZZZ)"
print ""
print "enum uprop_sc"
print "uprop_get_sc(rune ch)"
diff --git a/gen/prop/scf b/gen/prop/scf
index c2a2b9d..8dcfcec 100755
--- a/gen/prop/scf
+++ b/gen/prop/scf
@@ -10,7 +10,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/scf; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -42,7 +42,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH_KV(rune, lookup, ch)"
+ print "_MLIB_DEFINE_BSEARCH_KV(rune, lookup, ch)"
print ""
print "rune"
print "uprop_get_scf(rune ch, bool az_or_tr)"
diff --git a/gen/prop/slc b/gen/prop/slc
index c7019e4..8142be8 100755
--- a/gen/prop/slc
+++ b/gen/prop/slc
@@ -10,7 +10,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/slc; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -42,7 +42,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH_KV(rune, lookup, ch)"
+ print "_MLIB_DEFINE_BSEARCH_KV(rune, lookup, ch)"
print ""
print "rune"
print "uprop_get_slc(rune ch)"
diff --git a/gen/prop/stc b/gen/prop/stc
index 252cfa5..eb65d07 100755
--- a/gen/prop/stc
+++ b/gen/prop/stc
@@ -10,7 +10,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/stc; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -34,7 +34,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH_KV(rune, lookup, uprop_get_suc(ch))"
+ print "_MLIB_DEFINE_BSEARCH_KV(rune, lookup, uprop_get_suc(ch))"
print ""
print "rune"
print "uprop_get_stc(rune ch)"
diff --git a/gen/prop/suc b/gen/prop/suc
index 1ae4ad4..9448dbc 100755
--- a/gen/prop/suc
+++ b/gen/prop/suc
@@ -10,7 +10,7 @@ BEGIN {
print "/* This file is autogenerated by gen/prop/suc; DO NOT EDIT. */"
print ""
- print "#include \"__bsearch.h\""
+ print "#include \"_bsearch.h\""
print "#include \"macros.h\""
print "#include \"rune.h\""
print "#include \"unicode/prop.h\""
@@ -42,7 +42,7 @@ END {
print "};"
print ""
- print "__MLIB_DEFINE_BSEARCH_KV(rune, lookup, ch)"
+ print "_MLIB_DEFINE_BSEARCH_KV(rune, lookup, ch)"
print ""
print "rune"
print "uprop_get_suc(rune ch)"
diff --git a/gen/string/gbrk b/gen/string/gbrk
index ecde7f5..18f7cd4 100755
--- a/gen/string/gbrk
+++ b/gen/string/gbrk
@@ -2,17 +2,17 @@
set -e
cd "${0%/*}/../.."
-exec >include/unicode/__gbrk.h
+exec >include/unicode/_gbrk.h
cat <<C
/* This file is autogenerated by gen/string/gbrk; DO NOT EDIT. */
-#ifndef MLIB_UNICODE___GBRK_H
-#define MLIB_UNICODE___GBRK_H
+#ifndef MLIB_UNICODE__GBRK_H
+#define MLIB_UNICODE__GBRK_H
/* clang-format off */
-#include "__rune.h"
+#include "_rune.h"
typedef enum {
GBP_OTHER = 0,
@@ -93,5 +93,5 @@ END {
cat <<C
};
-#endif /* !MLIB_UNICODE___GBRK_H */
+#endif /* !MLIB_UNICODE__GBRK_H */
C