Content-Length: 288777 | pFad | http://github.com/postgrespro/postgres_cluster/commit/8d1b805fcc57be47d3269a13eb01d993fe768295

0C restrict -> pg_restrict · postgrespro/postgres_cluster@8d1b805 · GitHub
Skip to content

Commit 8d1b805

Browse files
committed
restrict -> pg_restrict
So that it works on MSVC, too. Author: Michaël Paquier Discussion: https://postgr.es/m/29889.1520968202@sss.pgh.pa.us
1 parent e69f5e0 commit 8d1b805

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(const char *restrict str, char **restrict endptr, int base)
50+
strtoint(const char *pg_restrict str, char **pg_restrict endptr, int base)
5151
{
5252
long val;
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
#define COMMON_STRING_H
1212

1313
extern bool pg_str_endswith(const char *str, const char *end);
14-
extern int strtoint(const char *restrict str, char **restrict endptr, int base);
14+
extern int strtoint(const char *pg_restrict str, char **pg_restrict endptr,
15+
int base);
1516

1617
#endif /* COMMON_STRING_H */

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/8d1b805fcc57be47d3269a13eb01d993fe768295

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy