Restored the Python module. Lots of minor fixes and cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@664 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9a82fd7b0c
commit
cbe8508865
11 changed files with 430 additions and 829 deletions
|
|
@ -23,13 +23,6 @@ extern "C" {
|
|||
|
||||
extern int add_symbol(char *name);
|
||||
|
||||
/* -----------------------------------------------------------------
|
||||
* Language::set_init()
|
||||
* ----------------------------------------------------------------- */
|
||||
void Language::set_init(char *iname) {
|
||||
set_module(iname,0);
|
||||
}
|
||||
|
||||
/* -----------------------------------------------------------------
|
||||
* Language::create_command()
|
||||
* ----------------------------------------------------------------- */
|
||||
|
|
|
|||
|
|
@ -961,15 +961,7 @@ statement : INCLUDE STRING LBRACE {
|
|||
/* Init directive--to avoid errors in other modules */
|
||||
|
||||
| INIT ID initlist {
|
||||
if (!module_init) {
|
||||
lang->set_init($2);
|
||||
module_init = 1;
|
||||
init_language();
|
||||
}
|
||||
if ($3.count > 0) {
|
||||
Printf(stderr,"%s : Line %d. Warning. Init list no longer supported.\n",
|
||||
input_file,line_number);
|
||||
}
|
||||
Printf(stderr,"%s : Line %d. Warning. %init directive is deprecated (ignored).\n", input_file,line_number);
|
||||
for (i = 0; i < $3.count; i++)
|
||||
if ($3.names[i]) free($3.names[i]);
|
||||
free($3.names);
|
||||
|
|
|
|||
|
|
@ -134,8 +134,6 @@ struct Pragma {
|
|||
* set_module(char *modname)
|
||||
* Sets the name of the module (%module directive)
|
||||
*
|
||||
* set_init(char *initname)
|
||||
* Sets name of initialization function (an alternative to set_module)
|
||||
* add_native(char *name, char *funcname);
|
||||
* Adds a native wrapper function to the initialize process
|
||||
*
|
||||
|
|
@ -176,10 +174,8 @@ public:
|
|||
virtual void link_variable(char *, char *, SwigType *) = 0;
|
||||
virtual void declare_const(char *, char *, SwigType *, char *) = 0;
|
||||
virtual void initialize(void) = 0;
|
||||
virtual void headers(void) = 0;
|
||||
virtual void close(void) = 0;
|
||||
virtual void set_module(char *mod_name,char **mod_list) = 0;
|
||||
virtual void set_init(char *init_name);
|
||||
virtual void add_native(char *name, char *iname, SwigType *t, ParmList *l);
|
||||
virtual void add_typedef(SwigType *t, char *name);
|
||||
virtual void create_command(char *cname, char *iname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue