summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSteven G. Johnson <stevenj@mit.edu>2015-03-27 12:35:41 -0400
committerSteven G. Johnson <stevenj@mit.edu>2015-03-27 12:35:41 -0400
commitc851c678881fe3d910b29d20f1c813ecd3b9d920 (patch)
treeb95ce4e39dcb9019cf327a5f28efc233903b8286 /test
parent164cc48aaf325cb4ffe227712e6488e1cb359d1c (diff)
downloadlibutf8proc-c851c678881fe3d910b29d20f1c813ecd3b9d920.tar.gz
libutf8proc-c851c678881fe3d910b29d20f1c813ecd3b9d920.tar.bz2
put the API version as #defines in the header file (as discussed in #30)
Diffstat (limited to 'test')
-rw-r--r--test/printproperty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/printproperty.c b/test/printproperty.c
index 6be8cb1..b876f0c 100644
--- a/test/printproperty.c
+++ b/test/printproperty.c
@@ -8,6 +8,10 @@ int main(int argc, char **argv)
for (i = 1; i < argc; ++i) {
int c;
+ if (!strcmp(argv[i], "-V")) {
+ printf("utf8proc version %s\n", utf8proc_version());
+ continue;
+ }
check(sscanf(argv[i],"%x",&c) == 1, "invalid hex input %s", argv[i]);
const utf8proc_property_t *p = utf8proc_get_property(c);
printf("U+%s:\n"