81 snprintf(buf,
sizeof(buf),
"%lld", (
long long)
x);
95 snprintf(buf,
sizeof(buf),
"%llu", (
unsigned long long)
x);
173 for (
i = 0;
i <
l;
i++) {
190 for (
i = 0;
i <
l;
i++) {
215 snprintf(buf,
sizeof(buf),
"%02hhx%02hhx%02hhx%02hhx",
216 a[0], a[1], a[2], a[3]);
244 if ((len & 0xc0) != 0)
322 s->content = (
char *)
realloc(
s->content,
s->length +
n + 1);
326 s->content[
s->length] = 0;
339 s->content[
s->length] = 0;
348 if (
s->length !=
o->length)
387 return e->value.int_value;
395 return e->value.double_value;
404 return e->value.bool_value;
412 return &
e->value.string_value;
420 return &
e->value.list_value;
428 return &
e->value.map_value;
451 elem->value.int_value =
i;
463 elem->value.double_value =
d;
475 elem->value.bool_value =
b;
498 elem->value.string_value = *
s;
533 memset(&
e->value, 0,
sizeof(
e->value));
543 e->value.int_value =
i;
553 e->value.double_value =
d;
563 e->value.bool_value =
b;
581 e->value.string_value = *
s;
620 e->value.int_value =
o->value.int_value;
623 e->value.double_value =
o->value.double_value;
626 e->value.bool_value =
o->value.bool_value;
629 e->value.string_value =
o->value.string_value;
659 for (
j =
i;
j > 0; --
j) {
686 for (
j =
i;
j > 1; --
j) {
720 for (
j =
i;
j > 0; --
j) {
871 return "not initialized?";
879 return "(unused) null";
935 fprintf(
fp,
"%lld", (
long long)
e->value.int_value);
941 if (
e->value.bool_value)
1067 for (
i = 0;
i <
s->length;
i++) {
1068 char c = *(
s->content +
i);
1093 if ((
c >= 0) && (
c < 0x20)) {
1110 }
while (
e !=
NULL);
struct element * copyList(struct element *l)
void concatString(struct string *s, const struct string *a)
void listPush(struct element *l, struct element *e)
struct comment * createComment(const char *line)
void resetInt(struct element *e, int64_t i)
isc_boolean_t eqString(const struct string *s, const struct string *o)
struct string * makeString(int l, const char *s)
isc_boolean_t boolValue(const struct element *e)
struct element * copy(struct element *e)
struct element * createHexa(struct string *h)
void listRemove(struct element *l, int i)
struct element * createList(void)
struct element * createBool(isc_boolean_t b)
struct string * allocString(void)
struct handle * mapPop(struct element *m)
void resetBool(struct element *e, isc_boolean_t b)
size_t mapSize(const struct element *m)
void appendString(struct string *s, const char *a)
struct string * makeStringArray(int l, const char *s, char fmt)
struct element * listGet(struct element *l, int i)
struct string * stringValue(struct element *e)
struct element * createNull(void)
double doubleValue(const struct element *e)
void resetNull(struct element *e)
void resetDouble(struct element *e, double d)
void resetList(struct element *e)
void concat(struct element *l, struct element *o)
void printString(FILE *fp, const struct string *s)
isc_boolean_t mapContains(const struct element *m, const char *k)
struct element * create(void)
void printMap(FILE *fp, const struct map *m, isc_boolean_t skip, unsigned indent)
void derive(struct handle *src, struct handle *dst)
struct string * quote(struct string *s)
struct string * hexaValue(struct element *s)
struct map * mapValue(struct element *e)
struct element * copyMap(struct element *m)
struct element * createInt(int64_t i)
int name2type(const char *n)
void merge(struct element *m, struct element *o)
void mapSet(struct element *m, struct element *e, const char *k)
struct element * createDouble(double d)
isc_boolean_t skip_to_end(const struct element *e)
void listSet(struct element *l, struct element *e, int i)
size_t listSize(const struct element *l)
void resetString(struct element *e, const struct string *s)
struct list * listValue(struct element *e)
struct element * createMap(void)
void print(FILE *fp, const struct element *e, isc_boolean_t skip, unsigned indent)
struct element * createString(const struct string *s)
void printList(FILE *fp, const struct list *l, isc_boolean_t skip, unsigned indent)
void resetBy(struct element *e, struct element *o)
void mapRemove(struct element *m, const char *k)
struct element * mapGet(struct element *m, const char *k)
int64_t intValue(const struct element *e)
const char * type2name(int t)
void resetMap(struct element *e)
struct string * makeStringExt(int l, const char *s, char fmt)
#define TAILQ_INSERT_AFTER(head, listelm, elm)
#define TAILQ_FOREACH_SAFE(var, head, tvar)
#define TAILQ_INSERT_TAIL(head, elm)
#define TAILQ_FOREACH(var, head)
#define TAILQ_CONCAT(head1, head2)
#define TAILQ_FIRST(head)
#define TAILQ_REMOVE(head, elm)
#define TAILQ_EMPTY(head)
#define TAILQ_INSERT_HEAD(head, elm)