Deleted Added
sdiff udiff text old ( 262975 ) new ( 263648 )
full compact
1/* Copyright (c) 2013, Vsevolod Stakhov
2 * All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 * * Redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer.
8 * * Redistributions in binary form must reproduce the above copyright

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

19 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 */
23
24#ifndef UCL_INTERNAL_H_
25#define UCL_INTERNAL_H_
26
27#include <sys/types.h>
28#ifndef _WIN32
29#include <sys/mman.h>
30#endif
31#include <sys/stat.h>
32#include <sys/param.h>
33
34#include <limits.h>
35#include <fcntl.h>
36#include <errno.h>
37#include <unistd.h>
38#include <ctype.h>
39
40#include "utlist.h"
41#include "utstring.h"
42#include "uthash.h"
43#include "ucl.h"
44#include "ucl_hash.h"
45#include "xxhash.h"
46

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

256 * @param obj object to set if a string is numeric
257 * @param start start of string
258 * @param end end of string
259 * @param pos position where parsing has stopped
260 * @param allow_double allow parsing of floating point values
261 * @return 0 if string is numeric and error code (EINVAL or ERANGE) in case of conversion error
262 */
263int ucl_maybe_parse_number (ucl_object_t *obj,
264 const char *start, const char *end, const char **pos, bool allow_double, bool number_bytes);
265
266
267static inline ucl_object_t *
268ucl_hash_search_obj (ucl_hash_t* hashlin, ucl_object_t *obj)
269{
270 return (ucl_object_t *)ucl_hash_search (hashlin, obj->key, obj->keylen);
271}
272

--- 22 unchanged lines hidden ---