Skip to content

Commit acee6c2

Browse files
author
Nikita Glukhov
committed
Extract enum JsonbValueType
1 parent fcf30ec commit acee6c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/utils/jsonb.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ typedef struct
228228
#define JB_ROOT_IS_ARRAY(jbp_) ((*(uint32 *) VARDATA(jbp_) & JB_FARRAY) != 0)
229229

230230

231-
enum jbvType
231+
typedef enum jbvType
232232
{
233233
/* Scalar types */
234234
jbvNull = 0x0,
@@ -240,7 +240,7 @@ enum jbvType
240240
jbvObject,
241241
/* Binary (i.e. struct Jsonb) jbvArray/jbvObject */
242242
jbvBinary
243-
};
243+
} JsonbValueType;
244244

245245
/*
246246
* JsonbValue: In-memory representation of Jsonb. This is a convenient

0 commit comments

Comments
 (0)