PostgreSQL Source Code
git master
jsonpath_internal.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
*
3
* jsonpath_internal.h
4
* Private definitions for jsonpath scanner & parser
5
*
6
* Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group
7
* Portions Copyright (c) 1994, Regents of the University of California
8
*
9
* src/backend/utils/adt/jsonpath_internal.h
10
*
11
*-------------------------------------------------------------------------
12
*/
13
14
#ifndef JSONPATH_INTERNAL_H
15
#define JSONPATH_INTERNAL_H
16
17
/* struct JsonPathString is shared between scan and gram */
18
typedef
struct
JsonPathString
19
{
20
char
*
val
;
21
int
len
;
22
int
total
;
23
}
JsonPathString
;
24
25
#include "
utils/jsonpath.h
"
26
#include "jsonpath_gram.h"
27
28
#define YY_DECL extern int jsonpath_yylex(YYSTYPE *yylval_param, \
29
JsonPathParseResult **result, \
30
struct Node *escontext)
31
YY_DECL
;
32
extern
int
jsonpath_yyparse
(
JsonPathParseResult
**result,
33
struct
Node
*escontext);
34
extern
void
jsonpath_yyerror
(
JsonPathParseResult
**result,
35
struct
Node
*escontext,
36
const
char
*message);
37
38
#endif
/* JSONPATH_INTERNAL_H */
jsonpath.h
JsonPathString
struct JsonPathString JsonPathString
jsonpath_yyerror
void jsonpath_yyerror(JsonPathParseResult **result, struct Node *escontext, const char *message)
jsonpath_yyparse
int jsonpath_yyparse(JsonPathParseResult **result, struct Node *escontext)
YY_DECL
#define YY_DECL
Definition:
jsonpath_internal.h:28
JsonPathParseResult
Definition:
jsonpath.h:252
JsonPathString
Definition:
jsonpath_internal.h:19
JsonPathString::len
int len
Definition:
jsonpath_internal.h:21
JsonPathString::val
char * val
Definition:
jsonpath_internal.h:20
JsonPathString::total
int total
Definition:
jsonpath_internal.h:22
Node
Definition:
nodes.h:129
src
backend
utils
adt
jsonpath_internal.h
Generated on Sun Dec 10 2023 00:13:20 for PostgreSQL Source Code by
1.9.1