A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-January/019419.html below:

[niemeyer@conectiva.com: Re: [Python-Dev] Python's footprint]

[niemeyer@conectiva.com: Re: [Python-Dev] Python's footprint] [niemeyer@conectiva.com: Re: [Python-Dev] Python's footprint]Martin v. Loewis martin@v.loewis.de
Sat, 12 Jan 2002 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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4