X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=test%2Fbin%2Fjson_process.c;h=a32f1d04571243a6eb8a61d359a716864ad3a01f;hb=68f2861e92e08eb5e2af51c026981bc1e990e1eb;hp=794e3075b9ad361d2e76ab26ebd8942148c8fd25;hpb=2ad4634de51bd06c03d1ba5831247ed865c03506;p=jansson.git diff --git a/test/bin/json_process.c b/test/bin/json_process.c index 794e307..a32f1d0 100644 --- a/test/bin/json_process.c +++ b/test/bin/json_process.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009 Petri Lehtinen + * Copyright (c) 2009, 2010 Petri Lehtinen * * Jansson is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. @@ -28,7 +28,7 @@ static int getenv_int(const char *name) int main(int argc, char *argv[]) { int indent = 0; - unsigned int flags = 0; + size_t flags = 0; json_t *json; json_error_t error; @@ -53,6 +53,9 @@ int main(int argc, char *argv[]) if(getenv_int("JSON_ENSURE_ASCII")) flags |= JSON_ENSURE_ASCII; + if(getenv_int("JSON_PRESERVE_ORDER")) + flags |= JSON_PRESERVE_ORDER; + if(getenv_int("JSON_SORT_KEYS")) flags |= JSON_SORT_KEYS;