Message27390
Logged In: YES
user_id=1440178
I see 3 sollutions.
1) (bad)
leave as is but document it. (user may free pointer to name
AFTER PyFinalize() only)
2) (ok)
let AppendInittab() malloc a buffer to store the name for
later use there. (dont know about pythons mem alloc policy
though)
3) (good)
make it: int PyImport_AppendInittab(const char *name, void
(*initfunc)(void)) AND realize 2) (malloc buffer).
i would prefer to have the interface cleaned in a way that
pointers to const* are declared as const. using const is
good codingstyle and might even help the compiler on
optimization.
|
|
Date |
User |
Action |
Args |
2007-08-23 14:37:33 | admin | link | issue1419652 messages |
2007-08-23 14:37:33 | admin | create | |
|