diff options
| author | Peter Eisentraut <peter@eisentraut.org> | 2022-02-14 21:29:45 +0100 |
|---|---|---|
| committer | Peter Eisentraut <peter@eisentraut.org> | 2022-02-14 21:57:26 +0100 |
| commit | cfc7191dfea330dd7a71e940d59de78129bb6175 (patch) | |
| tree | d1d6bc5dbade67b536fc09457b2e71a6fad61c4a /src/include/utils/builtins.h | |
| parent | 291ec6e45ebe1a87f930a250ad3c6672472b9b19 (diff) | |
| download | postgresql-cfc7191dfea330dd7a71e940d59de78129bb6175.tar.gz | |
Move scanint8() to numutils.c
Move scanint8() to numutils.c and rename to pg_strtoint64(). We
already have a "16" and "32" version of that, and the code inside the
functions was aligned, so this move makes all three versions
consistent. The API is also changed to no longer provide the errorOK
case. Users that need the error checking can use strtoi64().
Reviewed-by: John Naylor <john.naylor@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/b239564c-cad0-b23e-c57e-166d883cb97d@enterprisedb.com
Diffstat (limited to 'src/include/utils/builtins.h')
| -rw-r--r-- | src/include/utils/builtins.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index d8f05a7df3..48ddfec9eb 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -46,6 +46,7 @@ extern int namestrcmp(Name name, const char *str); extern int32 pg_atoi(const char *s, int size, int c); extern int16 pg_strtoint16(const char *s); extern int32 pg_strtoint32(const char *s); +extern int64 pg_strtoint64(const char *s); extern int pg_itoa(int16 i, char *a); extern int pg_ultoa_n(uint32 l, char *a); extern int pg_ulltoa_n(uint64 l, char *a); |
