[niemeyer@conectiva.com: Re: [Python-Dev] Python's footprint]
Martin v. Loewis
martin@v.loewis.de
2002年1月12日 00:47:32 +0100
> #define __init __attribute__ ((__section__ (".text.init")))
[...]
> After surrounding doc strings with a macro, this will be easy to achieve.
Unfortunately, not with the doc string you propose. Apparently, your
macro is going to be used as
char foo__doc__[] = Py_DocString("this is foo");
However, with the attribute, the resulting code should read
char foo__doc__[] __attribute__((__section__("docstring")) =
"this is foo";
You cannot define the macro so that it comes out as expanding to
__attribute__, atleast not with that specific macro.
Regards,
Martin