emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

decl style question


From: Thien-Thi Nguyen
Subject: decl style question
Date: Sat, 15 May 2004 18:01:27 +0200

below is a frag from alloc.c not yet checked into the trunk that
effectively declares the global array `pure'.  this does the job but
seems ugly to me -- suggestions?

thi

____________________________________
/* Force it into data space! */

#define PURE_BEF_ATTRS /* empty */
#define PURE_AFT_ATTRS /* empty */

#ifdef VMS
#ifdef __GNUC__
#undef PURE_AFT_ATTRS
#define PURE_AFT_ATTRS asm("_$PsectAttributes_NOOVR$$EMACSPURE")
#else /* not __GNUC__ */
#undef PURE_BEF_ATTRS
#define PURE_BEF_ATTRS globaldef {"EMACSPURE"}
#endif /* not __GNUC__ */
#endif /* VMS */

PURE_BEF_ATTRS
EMACS_INT pure[PURESIZE / sizeof (EMACS_INT)] PURE_AFT_ATTRS = {0,};




reply via email to

[Prev in Thread] Current Thread [Next in Thread]