From e164329d3f453f4959a5a0a900b6f8a10003a3a1 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 8 May 2000 15:05:36 +0000 Subject: [PATCH] [project @ 2000-05-08 15:05:36 by simonmar] change a bunch of externs into statics. This fixes a long-standing bug and should eliminate the annoying " was declared extern and later static" warnings from gcc. --- ghc/includes/StgMacros.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ghc/includes/StgMacros.h b/ghc/includes/StgMacros.h index fb074e8..b58ff2b 100644 --- a/ghc/includes/StgMacros.h +++ b/ghc/includes/StgMacros.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: StgMacros.h,v 1.24 2000/03/17 13:30:23 simonmar Exp $ + * $Id: StgMacros.h,v 1.25 2000/05/08 15:05:36 simonmar Exp $ * * (c) The GHC Team, 1998-1999 * @@ -50,17 +50,17 @@ #define ED_ extern #define EDD_ extern DLLIMPORT #define ED_RO_ extern const -#define ID_ extern -#define ID_RO_ extern const +#define ID_ static +#define ID_RO_ static const #define EI_ extern INFO_TBL_CONST StgInfoTable #define EDI_ extern DLLIMPORT INFO_TBL_CONST StgInfoTable -#define II_ extern INFO_TBL_CONST StgInfoTable +#define II_ static INFO_TBL_CONST StgInfoTable #define EC_ extern StgClosure #define EDC_ extern DLLIMPORT StgClosure -#define IC_ extern StgClosure +#define IC_ static StgClosure #define ECP_(x) extern const StgClosure *(x)[] #define EDCP_(x) extern DLLIMPORT StgClosure *(x)[] -#define ICP_(x) extern const StgClosure *(x)[] +#define ICP_(x) static const StgClosure *(x)[] /* ----------------------------------------------------------------------------- Stack Tagging. -- 1.7.10.4