nxt_conf.c (173:5ff437e4281d) nxt_conf.c (180:3453139f9728)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#include <nxt_main.h>

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

36 NXT_CONF_OP_DELETE,
37} nxt_conf_op_action_t;
38
39
40typedef struct nxt_conf_array_s nxt_conf_array_t;
41typedef struct nxt_conf_object_s nxt_conf_object_t;
42
43
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#include <nxt_main.h>

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

36 NXT_CONF_OP_DELETE,
37} nxt_conf_op_action_t;
38
39
40typedef struct nxt_conf_array_s nxt_conf_array_t;
41typedef struct nxt_conf_object_s nxt_conf_object_t;
42
43
44struct nxt_aligned(8) nxt_conf_value_s {
44struct nxt_conf_value_s {
45 union nxt_packed {
46 uint8_t boolean; /* 1 bit. */
47 int64_t integer;
48 double number;
49
50 struct {
51 uint8_t length;
52 u_char start[NXT_CONF_MAX_SHORT_STRING];

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

57 uint32_t length;
58 } string;
59
60 nxt_conf_array_t *array;
61 nxt_conf_object_t *object;
62 } u;
63
64 uint8_t type; /* 3 bits. */
45 union nxt_packed {
46 uint8_t boolean; /* 1 bit. */
47 int64_t integer;
48 double number;
49
50 struct {
51 uint8_t length;
52 u_char start[NXT_CONF_MAX_SHORT_STRING];

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

57 uint32_t length;
58 } string;
59
60 nxt_conf_array_t *array;
61 nxt_conf_object_t *object;
62 } u;
63
64 uint8_t type; /* 3 bits. */
65};
65} nxt_aligned(8);
66
67
68struct nxt_conf_array_s {
69 nxt_uint_t count;
70 nxt_conf_value_t elements[];
71};
72
73

--- 1913 unchanged lines hidden ---
66
67
68struct nxt_conf_array_s {
69 nxt_uint_t count;
70 nxt_conf_value_t elements[];
71};
72
73

--- 1913 unchanged lines hidden ---