* decl style question
@ 2004-05-15 16:01 Thien-Thi Nguyen
0 siblings, 0 replies; only message in thread
From: Thien-Thi Nguyen @ 2004-05-15 16:01 UTC (permalink / raw)
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,};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-05-15 16:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-15 16:01 decl style question Thien-Thi Nguyen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).