File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,20 @@ typedef struct
219219#define JB_ROOT_IS_ARRAY (jbp_ ) ( *(uint32*) VARDATA(jbp_) & JB_FARRAY)
220220
221221
222+ enum jbvType
223+ {
224+ /* Scalar types */
225+ jbvNull = 0x0 ,
226+ jbvString ,
227+ jbvNumeric ,
228+ jbvBool ,
229+ /* Composite types */
230+ jbvArray = 0x10 ,
231+ jbvObject ,
232+ /* Binary (i.e. struct Jsonb) jbvArray/jbvObject */
233+ jbvBinary
234+ };
235+
222236/*
223237 * JsonbValue: In-memory representation of Jsonb. This is a convenient
224238 * deserialized representation, that can easily support using the "val"
@@ -227,19 +241,7 @@ typedef struct
227241 */
228242struct JsonbValue
229243{
230- enum
231- {
232- /* Scalar types */
233- jbvNull = 0x0 ,
234- jbvString ,
235- jbvNumeric ,
236- jbvBool ,
237- /* Composite types */
238- jbvArray = 0x10 ,
239- jbvObject ,
240- /* Binary (i.e. struct Jsonb) jbvArray/jbvObject */
241- jbvBinary
242- } type ; /* Influences sort order */
244+ jbvType type ; /* Influences sort order */
243245
244246 union
245247 {
You can’t perform that action at this time.
0 commit comments