[Cython] Location where extern declarations are parsed

Robert Bradshaw robertwb at gmail.com
Sat Nov 15 17:48:44 CET 2014


On Fri, Nov 14, 2014 at 4:46 AM, Favian Contreras <fnc4 at cornell.edu> wrote:
> Hello all,
>
> Does anyone know where the (c++) external declarations are parsed? I am
> specifically looking for where external function pointers are parsed by the
> compiler. I noticed that all functions are parsed in some way in Symtab.py,
> but this includes all of the inherited methods from python and the c files
> within Cython, and I'm thinking there is a more specific place where
> external function pointers parsed.

Look in Cython/Compiler/Parsing.py.
https://github.com/cython/cython/blob/04e462aa939e0d4639dd4feac5b7e6aeff8399ad/Cython/Compiler/Parsing.py#L2825

During the analyse_declarations phase they're placed in the module's
scope in Symtab.


More information about the cython-devel mailing list