ucl_msgpack.c (a0409676120c1e558d0ade943019934e0f15118d) ucl_msgpack.c (048488c0c4e47aa2aac9709b18d7da14b06f78cd)
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.

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

1242 /* Check the finishing state */
1243 switch (state) {
1244 case start_array:
1245 case start_assoc:
1246 /* Empty container at the end */
1247 if (len != 0) {
1248 ucl_create_err (&parser->err,
1249 "invalid non-empty container at the end; len=%zu",
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.

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

1242 /* Check the finishing state */
1243 switch (state) {
1244 case start_array:
1245 case start_assoc:
1246 /* Empty container at the end */
1247 if (len != 0) {
1248 ucl_create_err (&parser->err,
1249 "invalid non-empty container at the end; len=%zu",
1250 (uintmax_t)len);
1250 (size_t)len);
1251
1252 return false;
1253 }
1254
1255 parser->cur_obj = ucl_object_new_full (
1256 state == start_array ? UCL_ARRAY : UCL_OBJECT,
1257 parser->chunks->priority);
1258

--- 380 unchanged lines hidden ---
1251
1252 return false;
1253 }
1254
1255 parser->cur_obj = ucl_object_new_full (
1256 state == start_array ? UCL_ARRAY : UCL_OBJECT,
1257 parser->chunks->priority);
1258

--- 380 unchanged lines hidden ---