@@ -37,7 +37,7 @@ typedef struct JsonValueListIterator
3737
3838#define JsonValueListIteratorEnd ((ListCell *) -1)
3939
40- static JsonPathExecResult recursiveExecute (JsonPathExecContext * cxt ,
40+ static inline JsonPathExecResult recursiveExecute (JsonPathExecContext * cxt ,
4141 JsonPathItem * jsp , JsonbValue * jb ,
4242 JsonValueList * found );
4343
@@ -303,7 +303,7 @@ computeJsonPathItem(JsonPathExecContext *cxt, JsonPathItem *item, JsonbValue *va
303303 * as alias to jbvBinary
304304 */
305305#define jbvScalar jbvBinary
306- static int
306+ static inline int
307307JsonbType (JsonbValue * jb )
308308{
309309 int type = jb -> type ;
@@ -411,7 +411,7 @@ compareNumeric(Numeric a, Numeric b)
411411 );
412412}
413413
414- static JsonPathExecResult
414+ static inline JsonPathExecResult
415415checkEquality (JsonbValue * jb1 , JsonbValue * jb2 , bool not )
416416{
417417 bool eq = false;
@@ -1783,7 +1783,7 @@ recursiveExecuteUnwrap(JsonPathExecContext *cxt, JsonPathItem *jsp,
17831783 return recursiveExecuteNoUnwrap (cxt , jsp , jb , found );
17841784}
17851785
1786- static JsonbValue *
1786+ static inline JsonbValue *
17871787wrapItem (JsonbValue * jbv )
17881788{
17891789 JsonbParseState * ps = NULL ;
@@ -1811,12 +1811,10 @@ wrapItem(JsonbValue *jbv)
18111811 return jbv ;
18121812}
18131813
1814- static JsonPathExecResult
1814+ static inline JsonPathExecResult
18151815recursiveExecute (JsonPathExecContext * cxt , JsonPathItem * jsp , JsonbValue * jb ,
18161816 JsonValueList * found )
18171817{
1818- check_stack_depth ();
1819-
18201818 if (cxt -> lax )
18211819 {
18221820 switch (jsp -> type )
0 commit comments