@@ -38,7 +38,7 @@ typedef struct JsonValueListIterator
38
38
39
39
#define JsonValueListIteratorEnd ((ListCell *) -1)
40
40
41
- static JsonPathExecResult recursiveExecute (JsonPathExecContext * cxt ,
41
+ static inline JsonPathExecResult recursiveExecute (JsonPathExecContext * cxt ,
42
42
JsonPathItem * jsp , JsonbValue * jb ,
43
43
JsonValueList * found );
44
44
@@ -304,7 +304,7 @@ computeJsonPathItem(JsonPathExecContext *cxt, JsonPathItem *item, JsonbValue *va
304
304
* as alias to jbvBinary
305
305
*/
306
306
#define jbvScalar jbvBinary
307
- static int
307
+ static inline int
308
308
JsonbType (JsonbValue * jb )
309
309
{
310
310
int type = jb -> type ;
@@ -524,7 +524,7 @@ compareDatetime(Datum val1, Oid typid1, Datum val2, Oid typid2, bool *error)
524
524
return DatumGetInt32 (DirectFunctionCall2 (cmpfunc , val1 , val2 ));
525
525
}
526
526
527
- static JsonPathExecResult
527
+ static inline JsonPathExecResult
528
528
checkEquality (JsonbValue * jb1 , JsonbValue * jb2 , bool not )
529
529
{
530
530
bool eq = false;
@@ -1954,7 +1954,7 @@ recursiveExecuteUnwrap(JsonPathExecContext *cxt, JsonPathItem *jsp,
1954
1954
return recursiveExecuteNoUnwrap (cxt , jsp , jb , found );
1955
1955
}
1956
1956
1957
- static JsonbValue *
1957
+ static inline JsonbValue *
1958
1958
wrapItem (JsonbValue * jbv )
1959
1959
{
1960
1960
JsonbParseState * ps = NULL ;
@@ -1982,12 +1982,10 @@ wrapItem(JsonbValue *jbv)
1982
1982
return jbv ;
1983
1983
}
1984
1984
1985
- static JsonPathExecResult
1985
+ static inline JsonPathExecResult
1986
1986
recursiveExecute (JsonPathExecContext * cxt , JsonPathItem * jsp , JsonbValue * jb ,
1987
1987
JsonValueList * found )
1988
1988
{
1989
- check_stack_depth ();
1990
-
1991
1989
if (cxt -> lax )
1992
1990
{
1993
1991
switch (jsp -> type )
0 commit comments