ucl_internal.h (6525738f63c6fd15b4ae11d935311b804e0c24a6) ucl_internal.h (11dd9ed6647d821e7b43d4f8e64412a2623fbab5)
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

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

82#include <ctype.h>
83#endif
84#ifdef HAVE_STDIO_H
85#include <stdio.h>
86#endif
87#ifdef HAVE_STRING_H
88#include <string.h>
89#endif
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

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

82#include <ctype.h>
83#endif
84#ifdef HAVE_STDIO_H
85#include <stdio.h>
86#endif
87#ifdef HAVE_STRING_H
88#include <string.h>
89#endif
90#ifdef HAVE_STRINGS_H
91#include <strings.h>
92#endif
90
91#include "utlist.h"
92#include "utstring.h"
93#include "uthash.h"
94#include "ucl.h"
95#include "ucl_hash.h"
96
97#ifdef HAVE_OPENSSL

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

122 UCL_STATE_SCOMMENT,
123 UCL_STATE_MCOMMENT,
124 UCL_STATE_MACRO_NAME,
125 UCL_STATE_MACRO,
126 UCL_STATE_ERROR
127};
128
129enum ucl_character_type {
93
94#include "utlist.h"
95#include "utstring.h"
96#include "uthash.h"
97#include "ucl.h"
98#include "ucl_hash.h"
99
100#ifdef HAVE_OPENSSL

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

125 UCL_STATE_SCOMMENT,
126 UCL_STATE_MCOMMENT,
127 UCL_STATE_MACRO_NAME,
128 UCL_STATE_MACRO,
129 UCL_STATE_ERROR
130};
131
132enum ucl_character_type {
130 UCL_CHARACTER_DENIED = 0,
131 UCL_CHARACTER_KEY = 1,
132 UCL_CHARACTER_KEY_START = 1 << 1,
133 UCL_CHARACTER_WHITESPACE = 1 << 2,
134 UCL_CHARACTER_WHITESPACE_UNSAFE = 1 << 3,
135 UCL_CHARACTER_VALUE_END = 1 << 4,
136 UCL_CHARACTER_VALUE_STR = 1 << 5,
137 UCL_CHARACTER_VALUE_DIGIT = 1 << 6,
138 UCL_CHARACTER_VALUE_DIGIT_START = 1 << 7,
139 UCL_CHARACTER_ESCAPE = 1 << 8,
140 UCL_CHARACTER_KEY_SEP = 1 << 9,
141 UCL_CHARACTER_JSON_UNSAFE = 1 << 10,
142 UCL_CHARACTER_UCL_UNSAFE = 1 << 11
133 UCL_CHARACTER_DENIED = (1 << 0),
134 UCL_CHARACTER_KEY = (1 << 1),
135 UCL_CHARACTER_KEY_START = (1 << 2),
136 UCL_CHARACTER_WHITESPACE = (1 << 3),
137 UCL_CHARACTER_WHITESPACE_UNSAFE = (1 << 4),
138 UCL_CHARACTER_VALUE_END = (1 << 5),
139 UCL_CHARACTER_VALUE_STR = (1 << 6),
140 UCL_CHARACTER_VALUE_DIGIT = (1 << 7),
141 UCL_CHARACTER_VALUE_DIGIT_START = (1 << 8),
142 UCL_CHARACTER_ESCAPE = (1 << 9),
143 UCL_CHARACTER_KEY_SEP = (1 << 10),
144 UCL_CHARACTER_JSON_UNSAFE = (1 << 11),
145 UCL_CHARACTER_UCL_UNSAFE = (1 << 12)
143};
144
145struct ucl_macro {
146 char *name;
147 union {
148 ucl_macro_handler handler;
149 ucl_context_macro_handler context_handler;
150 } h;

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

563
564/**
565 * Parse msgpack chunk
566 * @param parser
567 * @return
568 */
569bool ucl_parse_msgpack (struct ucl_parser *parser);
570
146};
147
148struct ucl_macro {
149 char *name;
150 union {
151 ucl_macro_handler handler;
152 ucl_context_macro_handler context_handler;
153 } h;

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

566
567/**
568 * Parse msgpack chunk
569 * @param parser
570 * @return
571 */
572bool ucl_parse_msgpack (struct ucl_parser *parser);
573
574bool ucl_parse_csexp (struct ucl_parser *parser);
575
571#endif /* UCL_INTERNAL_H_ */
576#endif /* UCL_INTERNAL_H_ */