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-14 16:55:10 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-14 16:55:10 +0100
commit98ab313fe496ae7c792db29c80bf6b23347484ff (patch)
tree3e140e51f430a422b6dd4568fec4884c280b6876 /src/make_unicode_property_data.py
parentb62fc1758f4ae8459e6d7e8386ca547274b4daa2 (diff)
New upstream version 6.7.0upstream/6.7.0
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)