aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/psql/common.h')
-rw-r--r--src/bin/psql/common.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/psql/common.h b/src/bin/psql/common.h
index 35d67828015..64988142c89 100644
--- a/src/bin/psql/common.h
+++ b/src/bin/psql/common.h
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.37 2004/07/11 13:29:15 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.38 2004/07/12 20:41:13 momjian Exp $
*/
#ifndef COMMON_H
#define COMMON_H
@@ -20,6 +20,9 @@
#define psql_assert(p)
#endif
+#define atooid(x) ((Oid) strtoul((x), NULL, 10))
+
+
/*
* Safer versions of some standard C library functions. If an
* out-of-memory condition occurs, these functions will bail out