This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ARI] Add "bzero"


> For this specific case, and some others like it, perhaps using #pragma
> poison would be better.  That would result in a compile time error,
> rather than a report on a web page.

I really liked the idea and gave it a quick try, but I don't know
how to make it work. I thought I would put the pragma at the end of
defs.h, since defs.h is always included.  But defs.h is also always
the first file to be included, and so any #include that follows it
which references any of the poisoned identifier will cause an error.

Do you see another way?

Thanks,
-- 
Joel


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