From b4a5fa45187979ff21aecdf8f089935769a17461 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 18 Feb 2002 14:25:40 +0000 Subject: Remove MAX/MIN() macros, use c.h Max/Min() instead. --- src/backend/utils/adt/formatting.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'src/backend/utils/adt/formatting.c') 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); -- cgit v1.2.3