diff options
author | Ori Bernstein <ori@eigenstate.org> | 2019-06-14 20:48:12 +0000 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2019-06-14 20:48:12 +0000 |
commit | a447e091313eb6ebb17ad165c91acbfe992ed8eb (patch) | |
tree | feb3e80bcb00068f8d3c720df5b0e72362429a9f | |
parent | dee1a04b6a0234857333325dcfdedf8450994f95 (diff) | |
download | libutf8proc-a447e091313eb6ebb17ad165c91acbfe992ed8eb.tar.gz |
-rw-r--r-- | include/libutf8proc/utf8proc.h | 15 | ||||
-rw-r--r-- | mkfile | 13 |
2 files changed, 21 insertions, 7 deletions
diff --git a/include/libutf8proc/utf8proc.h b/include/libutf8proc/utf8proc.h index f5cc1e1..4f6b6b8 100644 --- a/include/libutf8proc/utf8proc.h +++ b/include/libutf8proc/utf8proc.h @@ -256,24 +256,25 @@ typedef struct utf8proc_property_struct { utf8proc_uint16_t lowercase_seqindex; utf8proc_uint16_t titlecase_seqindex; utf8proc_uint16_t comb_index; - unsigned bidi_mirrored:1; - unsigned comp_exclusion:1; + + char bidi_mirrored; + char comp_exclusion; /** * Can this codepoint be ignored? * * Used by @ref utf8proc_decompose_char when @ref UTF8PROC_IGNORE is * passed as an option. */ - unsigned ignorable:1; - unsigned control_boundary:1; + char ignorable; + char control_boundary; /** The width of the codepoint. */ - unsigned charwidth:2; - unsigned pad:2; + char charwidth; + char pad; /** * Boundclass. * @see utf8proc_boundclass_t. */ - unsigned boundclass:8; + uint8_t boundclass; } utf8proc_property_t; /** Unicode categories. */ @@ -0,0 +1,13 @@ +</$objtype/mkfile + +LIB=libnsutils.a +OFILES=\ + src/utf8proc.$O\ + +HFILES=\ + include/libutf8proc/utf8proc.h + +</sys/src/cmd/mklib +<../toolchain + +CFLAGS=$CFLAGS -Iinclude/libutf8proc |