@@ -39,7 +39,7 @@ typedef struct JsonValueListIterator
39
39
40
40
#define JsonValueListIteratorEnd ((ListCell *) -1)
41
41
42
- static JsonPathExecResult recursiveExecute (JsonPathExecContext * cxt ,
42
+ static inline JsonPathExecResult recursiveExecute (JsonPathExecContext * cxt ,
43
43
JsonPathItem * jsp , JsonbValue * jb ,
44
44
JsonValueList * found );
45
45
@@ -293,7 +293,7 @@ computeJsonPathItem(JsonPathExecContext *cxt, JsonPathItem *item, JsonbValue *va
293
293
* as alias to jbvBinary
294
294
*/
295
295
#define jbvScalar jbvBinary
296
- static int
296
+ static inline int
297
297
JsonbType (JsonbValue * jb )
298
298
{
299
299
int type = jb -> type ;
@@ -513,7 +513,7 @@ compareDatetime(Datum val1, Oid typid1, Datum val2, Oid typid2, bool *error)
513
513
return DatumGetInt32 (DirectFunctionCall2 (cmpfunc , val1 , val2 ));
514
514
}
515
515
516
- static JsonPathExecResult
516
+ static inline JsonPathExecResult
517
517
checkEquality (JsonbValue * jb1 , JsonbValue * jb2 , bool not )
518
518
{
519
519
bool eq = false;
@@ -1947,7 +1947,7 @@ recursiveExecuteUnwrap(JsonPathExecContext *cxt, JsonPathItem *jsp,
1947
1947
* Wrap a non-array SQL/JSON item into an array for applying array subscription
1948
1948
* path steps in lax mode.
1949
1949
*/
1950
- static JsonbValue *
1950
+ static inline JsonbValue *
1951
1951
wrapItem (JsonbValue * jbv )
1952
1952
{
1953
1953
JsonbParseState * ps = NULL ;
@@ -1985,12 +1985,10 @@ wrapItem(JsonbValue *jbv)
1985
1985
return JsonbWrapInBinary (jbv , NULL );
1986
1986
}
1987
1987
1988
- static JsonPathExecResult
1988
+ static inline JsonPathExecResult
1989
1989
recursiveExecute (JsonPathExecContext * cxt , JsonPathItem * jsp , JsonbValue * jb ,
1990
1990
JsonValueList * found )
1991
1991
{
1992
- check_stack_depth ();
1993
-
1994
1992
if (cxt -> lax )
1995
1993
{
1996
1994
switch (jsp -> type )
0 commit comments