mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Run pgindent, pgperltidy, and reformat-dat-files. This set of diffs is a bit larger than typical. We've updated to pg_bsd_indent 2.1.2, which properly indents variable declarations that have multi-line initialization expressions (the continuation lines are now indented one tab stop). We've also updated to perltidy version 20230309 and changed some of its settings, which reduces its desire to add whitespace to lines to make assignments etc. line up. Going forward, that should make for fewer random-seeming changes to existing code. Discussion: https://postgr.es/m/20230428092545.qfb3y5wcu4cm75ur@alvherre.pgsql
39 lines
1.1 KiB
C
39 lines
1.1 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* jsonpath_internal.h
|
|
* Private definitions for jsonpath scanner & parser
|
|
*
|
|
* Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/backend/utils/adt/jsonpath_internal.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef JSONPATH_INTERNAL_H
|
|
#define JSONPATH_INTERNAL_H
|
|
|
|
/* struct JsonPathString is shared between scan and gram */
|
|
typedef struct JsonPathString
|
|
{
|
|
char *val;
|
|
int len;
|
|
int total;
|
|
} JsonPathString;
|
|
|
|
#include "utils/jsonpath.h"
|
|
#include "jsonpath_gram.h"
|
|
|
|
#define YY_DECL extern int jsonpath_yylex(YYSTYPE *yylval_param, \
|
|
JsonPathParseResult **result, \
|
|
struct Node *escontext)
|
|
YY_DECL;
|
|
extern int jsonpath_yyparse(JsonPathParseResult **result,
|
|
struct Node *escontext);
|
|
extern void jsonpath_yyerror(JsonPathParseResult **result,
|
|
struct Node *escontext,
|
|
const char *message);
|
|
|
|
#endif /* JSONPATH_INTERNAL_H */
|