summaryrefslogtreecommitdiff
path: root/src/make_unicode_property_data.py
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-28 16:46:11 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-28 16:46:11 +0100
commit5587db012cd0e8f69f811e8959a861112904136a (patch)
tree19472bb8b64980a43e99340ba899cd442a824445 /src/make_unicode_property_data.py
parentfa131e9ad996d099bb48a3b1302e4a3b3c0f03bd (diff)
parent4bf99bd2fb7b6bde65a11dfce43ed399ecb10ccd (diff)
Merge branch 'release/6.7.0-1'6.7.0-1
Diffstat (limited to 'src/make_unicode_property_data.py')
-rwxr-xr-xsrc/make_unicode_property_data.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/make_unicode_property_data.py b/src/make_unicode_property_data.py
index 51986b6..8dd11b8 100755
--- a/src/make_unicode_property_data.py
+++ b/src/make_unicode_property_data.py
@@ -501,11 +501,15 @@ if not(POSIX_ONLY):
print " CR_%s," % prop
s = '''};
+
+#define pool_offset(s) offsetof(struct unicode_prop_name_pool_t, unicode_prop_name_pool_str##s)
+
%}
-struct PropertyNameCtype {
- char* name:
- int ctype;
+struct PoolPropertyNameCtype {
+ short int name;
+ short int ctype;
};
+
%%
'''
sys.stdout.write(s)