Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5e28b77

Browse files
committed
Rename typedef in jsonpath_gram.y from "string" to "JsonPathString"
Reason is the same as in75c5705.
1 parent1009920 commit5e28b77

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

‎src/backend/utils/adt/jsonpath_gram.y

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ makeItemType(int type)
4848
}
4949

5050
static JsonPathParseItem*
51-
makeItemString(string *s)
51+
makeItemString(JsonPathString *s)
5252
{
5353
JsonPathParseItem *v;
5454

@@ -67,7 +67,7 @@ makeItemString(string *s)
6767
}
6868

6969
static JsonPathParseItem*
70-
makeItemVariable(string *s)
70+
makeItemVariable(JsonPathString *s)
7171
{
7272
JsonPathParseItem *v;
7373

@@ -79,7 +79,7 @@ makeItemVariable(string *s)
7979
}
8080

8181
static JsonPathParseItem*
82-
makeItemKey(string *s)
82+
makeItemKey(JsonPathString *s)
8383
{
8484
JsonPathParseItem *v;
8585

@@ -90,7 +90,7 @@ makeItemKey(string *s)
9090
}
9191

9292
static JsonPathParseItem*
93-
makeItemNumeric(string *s)
93+
makeItemNumeric(JsonPathString *s)
9494
{
9595
JsonPathParseItem*v;
9696

@@ -210,7 +210,8 @@ makeAny(int first, int last)
210210
}
211211

212212
static JsonPathParseItem *
213-
makeItemLikeRegex(JsonPathParseItem *expr, string *pattern, string *flags)
213+
makeItemLikeRegex(JsonPathParseItem *expr, JsonPathString *pattern,
214+
JsonPathString *flags)
214215
{
215216
JsonPathParseItem *v =makeItemType(jpiLikeRegex);
216217
inti;
@@ -267,7 +268,7 @@ makeItemLikeRegex(JsonPathParseItem *expr, string *pattern, string *flags)
267268
%parse-param {JsonPathParseResult **result}
268269

269270
%union {
270-
stringstr;
271+
JsonPathStringstr;
271272
List*elems;/* list of JsonPathParseItem*/
272273
List*indexs;/* list of integers*/
273274
JsonPathParseItem*value;

‎src/backend/utils/adt/jsonpath_scan.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include"nodes/pg_list.h"
1919
#include"utils/jsonpath_scanner.h"
2020

21-
staticstring scanstring;
21+
staticJsonPathString scanstring;
2222

2323
/* No reason to constrain amount of data slurped */
2424
/* #define YY_READ_BUF_SIZE 16777216 */

‎src/include/utils/jsonpath_scanner.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
#ifndefJSONPATH_SCANNER_H
1414
#defineJSONPATH_SCANNER_H
1515

16-
/* structstring is shared between scan and gram */
17-
typedefstructstring
16+
/* structJsonPathString is shared between scan and gram */
17+
typedefstructJsonPathString
1818
{
1919
char*val;
2020
intlen;
2121
inttotal;
22-
}string;
22+
}JsonPathString;
2323

2424
#include"utils/jsonpath.h"
2525
#include"utils/jsonpath_gram.h"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp