From 690d24f28e17c417330b569e2f43e1d1a2438848 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Wed, 19 Dec 2001 18:47:46 +0000 Subject: [PATCH] Replaced MAX with max and deleted definition of MAX. --- tools/wrc/ppl.l | 2 +- tools/wrc/wrc.h | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/wrc/ppl.l b/tools/wrc/ppl.l index 412d100c21d..67411dd5bb2 100644 --- a/tools/wrc/ppl.l +++ b/tools/wrc/ppl.l @@ -1333,7 +1333,7 @@ static void add_text_to_macro(char *text, int len) if(mep->curargalloc - mep->curargsize <= len+1) /* +1 for '\0' */ { - mep->curargalloc += MAX(ALLOCBLOCKSIZE, len+1); + mep->curargalloc += max(ALLOCBLOCKSIZE, len+1); mep->curarg = xrealloc(mep->curarg, mep->curargalloc * sizeof(mep->curarg[0])); } memcpy(mep->curarg + mep->curargsize, text, len); diff --git a/tools/wrc/wrc.h b/tools/wrc/wrc.h index 0f539302fae..0468b9c46cd 100644 --- a/tools/wrc/wrc.h +++ b/tools/wrc/wrc.h @@ -25,10 +25,6 @@ #define WRC_VERSION WRC_VERSIONIZE(WRC_MAJOR_VERSION, WRC_MINOR_VERSION, WRC_MICRO_VERSION) #define WRC_FULLVERSION WRC_VERSION " " WRC_RELEASEDATE -#ifndef MAX -#define MAX(a,b) ((a) > (b) ? (a) : (b)) -#endif - /* From wrc.c */ extern int debuglevel; #define DEBUGLEVEL_NONE 0x0000 -- 2.11.4.GIT