[Python-Dev] What do PyAPI_FUNC & PyAPI_DATA mean?

Benjamin Peterson benjamin at python.org
Mon Apr 23 14:58:50 CEST 2012


2012/4/23 Mark Shannon <mark at hotpy.org>:
> Many (most?) of the function declarations in the CPython header files
> are annotated with the PyAPI_FUNC declaration.
> Similarly for data declarations and PyAPI_DATA
>
> What do they mean, exactly? From the name I would expect that they are a way
> of declaring a function or datum to be part of the API, but their usage
> seems to be more to do with linkage.

They define linkage on Windows. I actually don't know if they should
be applied to internal functions.



-- 
Regards,
Benjamin


More information about the Python-Dev mailing list