@@ -92,7 +92,7 @@ recursiveAny(char *jqBase, int32 jqPos, JsonbValue *jb)
9292}
9393
9494static bool
95- checkEquality (char * jqBase , int32 jqPos , int32 type , JsonbValue * jb )
95+ checkEquality (char * jqBase , int32 jqPos , JsQueryItemType type , JsonbValue * jb )
9696{
9797 int len ;
9898
@@ -123,7 +123,7 @@ checkEquality(char *jqBase, int32 jqPos, int32 type, JsonbValue *jb)
123123}
124124
125125static bool
126- checkArrayEquality (char * jqBase , int32 jqPos , int32 type , JsonbValue * jb )
126+ checkArrayEquality (char * jqBase , int32 jqPos , JsQueryItemType type , JsonbValue * jb )
127127{
128128 int32 i , nelems , * arrayPos ;
129129 int32 r ;
@@ -159,7 +159,7 @@ checkArrayEquality(char *jqBase, int32 jqPos, int32 type, JsonbValue *jb)
159159}
160160
161161static bool
162- checkIn (char * jqBase , int32 jqPos , int32 type , JsonbValue * jb )
162+ checkIn (char * jqBase , int32 jqPos , JsQueryItemType type , JsonbValue * jb )
163163{
164164 int32 i , nelems , * arrayPos ;
165165
@@ -180,7 +180,7 @@ checkIn(char *jqBase, int32 jqPos, int32 type, JsonbValue *jb)
180180}
181181
182182static bool
183- executeArrayOp (char * jqBase , int32 jqPos , int32 type , int32 op , JsonbValue * jb )
183+ executeArrayOp (char * jqBase , int32 jqPos , JsQueryItemType type , int32 op , JsonbValue * jb )
184184{
185185 int32 i , nelems , * arrayPos ;
186186 int32 r ;
@@ -252,7 +252,7 @@ executeArrayOp(char *jqBase, int32 jqPos, int32 type, int32 op, JsonbValue *jb)
252252}
253253
254254static bool
255- makeCompare (char * jqBase , int32 jqPos , int32 type , int32 op , JsonbValue * jb )
255+ makeCompare (char * jqBase , int32 jqPos , JsQueryItemType type , int32 op , JsonbValue * jb )
256256{
257257 int res ;
258258
@@ -283,8 +283,8 @@ makeCompare(char *jqBase, int32 jqPos, int32 type, int32 op, JsonbValue *jb)
283283static bool
284284executeExpr (char * jqBase , int32 jqPos , int32 op , JsonbValue * jb )
285285{
286- int32 type ;
287- int32 nextPos ;
286+ JsQueryItemType type ;
287+ int32 nextPos ;
288288
289289 check_stack_depth ();
290290
@@ -324,10 +324,10 @@ executeExpr(char *jqBase, int32 jqPos, int32 op, JsonbValue *jb)
324324static bool
325325recursiveExecute (char * jqBase , int32 jqPos , JsonbValue * jb )
326326{
327- int32 type ;
328- int32 nextPos ;
329- int32 left , right , arg ;
330- bool res = false;
327+ JsQueryItemType type ;
328+ int32 nextPos ;
329+ int32 left , right , arg ;
330+ bool res = false;
331331
332332 check_stack_depth ();
333333
@@ -497,11 +497,11 @@ json_jsquery_exec(PG_FUNCTION_ARGS)
497497static int
498498compareJsQuery (char * base1 , int32 pos1 , char * base2 , int32 pos2 )
499499{
500- int32 type1 ,
501- nextPos1 ,
502- type2 ,
503- nextPos2 ;
504- int32 res = 0 ;
500+ JsQueryItemType type1 ,
501+ type2 ;
502+ int32 nextPos1 ,
503+ nextPos2 ;
504+ int32 res = 0 ;
505505
506506 check_stack_depth ();
507507
@@ -730,8 +730,8 @@ jsquery_gt(PG_FUNCTION_ARGS)
730730static void
731731hashJsQuery (char * base , int32 pos , pg_crc32 * crc )
732732{
733- int32 type ;
734- int32 nextPos ;
733+ JsQueryItemType type ;
734+ int32 nextPos ;
735735
736736 check_stack_depth ();
737737
0 commit comments