File tree 1 file changed +15
-13
lines changed
1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,20 @@ typedef struct
219
219
#define JB_ROOT_IS_ARRAY (jbp_ ) ( *(uint32*) VARDATA(jbp_) & JB_FARRAY)
220
220
221
221
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
+
222
236
/*
223
237
* JsonbValue: In-memory representation of Jsonb. This is a convenient
224
238
* deserialized representation, that can easily support using the "val"
@@ -227,19 +241,7 @@ typedef struct
227
241
*/
228
242
struct JsonbValue
229
243
{
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 */
243
245
244
246
union
245
247
{
You can’t perform that action at this time.
0 commit comments