@@ -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;
@@ -1958,7 +1958,7 @@ recursiveExecuteUnwrap(JsonPathExecContext *cxt, JsonPathItem *jsp,
1958
1958
* Wrap a non-array SQL/JSON item into an array for applying array subscription
1959
1959
* path steps in lax mode.
1960
1960
*/
1961
- static JsonbValue *
1961
+ static inline JsonbValue *
1962
1962
wrapItem (JsonbValue * jbv )
1963
1963
{
1964
1964
JsonbParseState * ps = NULL ;
@@ -2004,12 +2004,10 @@ wrapItem(JsonbValue *jbv)
2004
2004
return jbv ;
2005
2005
}
2006
2006
2007
- static JsonPathExecResult
2007
+ static inline JsonPathExecResult
2008
2008
recursiveExecute (JsonPathExecContext * cxt , JsonPathItem * jsp , JsonbValue * jb ,
2009
2009
JsonValueList * found )
2010
2010
{
2011
- check_stack_depth ();
2012
-
2013
2011
if (cxt -> lax )
2014
2012
{
2015
2013
switch (jsp -> type )
0 commit comments