[Pyrex] Pyrex error using C malloc
    Greg Ewing 
    greg.ewing at canterbury.ac.nz
       
    Wed May 16 00:09:41 UTC 2007
    
    
  
Georg Grabler wrote:
> config.pyx:15:64: 'pyalpm_list' is not a constant, variable or
> function identifier
It seems to have trouble with qualified names in typecasts
and sizeof() expressions. I'll look into that, since it
shouldn't be that way.
In the meantime, the following seems to work:
   from t_config cimport pyalpm_list
and then
   ptr.next = <pyalpm_list *> malloc(sizeof(pyalpm_list))
etc.
--
Greg
    
    
More information about the Pyrex
mailing list