This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: no_define


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]