aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/formatting.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-02-18 14:25:40 +0000
committerBruce Momjian <bruce@momjian.us>2002-02-18 14:25:40 +0000
commitb4a5fa45187979ff21aecdf8f089935769a17461 (patch)
tree23663a11c075b3278b0ffeba03518aefdb381845 /src/backend/utils/adt/formatting.c
parentd622cf867bb11b39f087c7c0d9952098e0a6e85f (diff)
downloadpostgresql-b4a5fa45187979ff21aecdf8f089935769a17461.tar.gz
postgresql-b4a5fa45187979ff21aecdf8f089935769a17461.zip
Remove MAX/MIN() macros, use c.h Max/Min() instead.
Diffstat (limited to 'src/backend/utils/adt/formatting.c')
-rw-r--r--src/backend/utils/adt/formatting.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c
index d9422587f4f..5a901f45f2e 100644
--- a/src/backend/utils/adt/formatting.c
+++ b/src/backend/utils/adt/formatting.c
@@ -1,7 +1,7 @@
/* -----------------------------------------------------------------------
* formatting.c
*
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.49 2002/01/04 15:49:42 thomas Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.50 2002/02/18 14:24:35 momjian Exp $
*
*
* Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group
@@ -434,17 +434,6 @@ typedef struct TmToChar
tmtcTzn(_X) = NULL; \
} while(0)
-/* ----------
- * Utils
- * ----------
- */
-#ifndef MIN
-#define MIN(a,b) (((a)<(b)) ? (a) : (b))
-#endif
-#ifndef MAX
-#define MAX(a,b) (((a)>(b)) ? (a) : (b))
-#endif
-
/*****************************************************************************
* KeyWords definition & action
*****************************************************************************/
@@ -4333,7 +4322,7 @@ numeric_to_number(PG_FUNCTION_ARGS)
VARSIZE(value) - VARHDRSZ, 0, FROM_CHAR);
scale = Num.post;
- precision = MAX(0, Num.pre) + scale;
+ precision = Max(0, Num.pre) + scale;
if (flag)
pfree(format);