Whitespace cleanup
This commit is contained in:
parent
33da19d2ea
commit
344d10935e
1 changed files with 6 additions and 10 deletions
|
|
@ -46,12 +46,12 @@ extern "C" {
|
|||
#endif
|
||||
#include <config.c>
|
||||
|
||||
#undef _PyImport_Inittab
|
||||
#undef _PyImport_Inittab
|
||||
|
||||
/* Now define our own version of it.
|
||||
Hopefully someone does not have more than 1000 built-in modules */
|
||||
|
||||
struct _inittab SWIG_Import_Inittab[1000];
|
||||
struct _inittab SWIG_Import_Inittab[1000];
|
||||
|
||||
static int swig_num_modules = 0;
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ static void swig_add_module(char *name, void (*initfunc)()) {
|
|||
swig_num_modules++;
|
||||
SWIG_Import_Inittab[swig_num_modules].name = (char *) 0;
|
||||
SWIG_Import_Inittab[swig_num_modules].initfunc = 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Function to add all of Python's built-in modules to our interpreter */
|
||||
|
||||
|
|
@ -71,10 +71,10 @@ static void swig_add_builtin() {
|
|||
int i = 0;
|
||||
while (swig_inittab[i].name) {
|
||||
swig_add_module(swig_inittab[i].name, swig_inittab[i].initfunc);
|
||||
i++;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
#ifdef SWIGMODINIT
|
||||
SWIGMODINIT
|
||||
SWIGMODINIT
|
||||
#endif
|
||||
/* Add SWIG builtin function */
|
||||
swig_add_module(SWIG_name, SWIG_init);
|
||||
|
|
@ -104,7 +104,3 @@ main(int argc, char **argv) {
|
|||
}
|
||||
|
||||
%}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue