[Pyrex] `pass' as name for structure field

Zajcev Evgeny zevlg at yandex.ru
Mon Oct 16 09:42:06 UTC 2006


Hello pyrex hackers, and thank you for great software!

I'm having next problem with pyrex 0.9.4.1:

    ----- mm.h -----
    struct mm {
       char *login;
       char *pass;
    };
    
    int mm_test(struct mm *m);
    ----- mm.h ends here -----
    
    ----- mm.pyx -----
    cdef extern from "mm.h":
      struct mm:
        char *login
        char *pass
    
      int mm_test(mm *m)
    ----- mm.pyx ends here -----
    
    $ pyrexc mm.pyx
    mm.pyx:4:10: Syntax error in C variable declaration


if i can't make changes to mm.h, how could i describe and reference
the `pass' field of mm structure from pyrex?

Thanks!

-- 
lg



More information about the Pyrex mailing list