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

Commit8d1b805

Browse files
committed
restrict -> pg_restrict
So that it works on MSVC, too.Author: Michaël PaquierDiscussion:https://postgr.es/m/29889.1520968202@sss.pgh.pa.us
1 parente69f5e0 commit8d1b805

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎src/common/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pg_str_endswith(const char *str, const char *end)
4747
* strtoint --- just like strtol, but returns int not long
4848
*/
4949
int
50-
strtoint(constchar*restrictstr,char**restrictendptr,intbase)
50+
strtoint(constchar*pg_restrictstr,char**pg_restrictendptr,intbase)
5151
{
5252
longval;
5353

‎src/include/common/string.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#defineCOMMON_STRING_H
1212

1313
externboolpg_str_endswith(constchar*str,constchar*end);
14-
externintstrtoint(constchar*restrictstr,char**restrictendptr,intbase);
14+
externintstrtoint(constchar*pg_restrictstr,char**pg_restrictendptr,
15+
intbase);
1516

1617
#endif/* COMMON_STRING_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp