1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-03 20:02:46 +03:00

Move atooid() definition to a central place

This commit is contained in:
Peter Eisentraut
2017-03-01 11:55:28 -05:00
parent b5a388392d
commit 788af6f854
12 changed files with 4 additions and 23 deletions

View File

@ -39,6 +39,10 @@ typedef unsigned int Oid;
#define OID_MAX UINT_MAX
/* you will need to include <limits.h> to use the above #define */
#define atooid(x) ((Oid) strtoul((x), NULL, 10))
/* the above needs <stdlib.h> */
/* Define a signed 64-bit integer type for use in client API declarations. */
typedef PG_INT64_TYPE pg_int64;