This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: no_define
- To: Motoya Kurotsu <kurotsu at allied-telesis dot co dot jp>
- Subject: Re: [ECOS] no_define
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Thu, 21 Jun 2001 09:10:37 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <20010621114140.A1136@white.office1>
Motoya Kurotsu wrote:
>
> Hi,
>
> I'm looking at test programs of io/wallclock in the latest cvs.
> In wallclock2.cxx, there is such lines like below:
>
> #elif !defined(CYGINT_LIBC_STARTUP_CONTEXT)
> # define NA_MSG "Requires main to be invoked"
> #endif
>
> On the other hand, CYGINT_LIBC_STARTUP_CONTEXT in set as "no_define" in
> language/c/libc/startup/current/cdl/startup.cdl.
> I have a question.
>
> 1) In this case, can I delete no_define property in the startup.cdl?
Yes.
> I have general questions as well.
>
> 2) Is there any general rule whether CDL entity should be set as no_define
> or not?
Whether any code wishes to use that #define.
> 3) Can we delete the no_define property without much consideration generally?
Yes. I don't know any instances where it would be a problem. It could only
be if the CDL name overlapped with an explicit #define in some real header.
But that would be bad practice.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/