test_msgpack.c (d9f0ce31900a48d1a2bfc1c8c86f79d1e831451a) test_msgpack.c (a0409676120c1e558d0ade943019934e0f15118d)
1/*
2 * Copyright (c) 2015, Vsevolod Stakhov
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 442 unchanged lines hidden (view full) ---

451 char *str;
452 uint32_t cur_len;
453
454 while ((cur_len = pcg32_random ()) % 100000 == 0);
455 str = malloc (cur_len % 100000);
456 res = ucl_object_fromstring_common (str, cur_len % 100000,
457 UCL_STRING_RAW);
458 res->flags |= UCL_OBJECT_BINARY;
1/*
2 * Copyright (c) 2015, Vsevolod Stakhov
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 442 unchanged lines hidden (view full) ---

451 char *str;
452 uint32_t cur_len;
453
454 while ((cur_len = pcg32_random ()) % 100000 == 0);
455 str = malloc (cur_len % 100000);
456 res = ucl_object_fromstring_common (str, cur_len % 100000,
457 UCL_STRING_RAW);
458 res->flags |= UCL_OBJECT_BINARY;
459 free (str);
459
460 return res;
461}
462
463static ucl_object_t*
464ucl_test_null (void)
465{
466 return ucl_object_typed_new (UCL_NULL);
467}
460
461 return res;
462}
463
464static ucl_object_t*
465ucl_test_null (void)
466{
467 return ucl_object_typed_new (UCL_NULL);
468}