more options clean-up

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8208 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-04 07:44:12 +00:00
commit b79d86f02e
2 changed files with 18 additions and 19 deletions

View file

@ -223,7 +223,7 @@ Version 1.3.28 (unreleased).
12/29/2005: mmatus 12/29/2005: mmatus
- Add the copyctor feature/directive to enable the automatic - Add the copyctor feature/directive/option to enable the automatic
generation of copy constructors. Use as in: generation of copy constructors. Use as in:
%copyctor A; %copyctor A;
@ -244,7 +244,7 @@ Version 1.3.28 (unreleased).
that will enable the automatic generation for all the that will enable the automatic generation for all the
classes. That is also equivalent to classes. That is also equivalent to
swig -features copyctor -c++ ... swig -copyctor -c++ ...
Notes: Notes:

View file

@ -83,9 +83,10 @@ static const char *usage2 = (const char*)"\
-makedefault - Create default constructors/destructors (the default)\n\ -makedefault - Create default constructors/destructors (the default)\n\
-module <name> - Set module name to <name>\n\ -module <name> - Set module name to <name>\n\
-nocontract - Turn off contract checking\n\ -nocontract - Turn off contract checking\n\
-nodefault - Do not generate constructors, destructor or copy constructors (dangerous, don't use it)\n\ -nodefault - Do not generate default constructors nor default destructors\n\
-nodefaultctor - Do not generate implicit default constructors\n\ -nodefaultctor - Do not generate implicit default constructors\n\
-nodefaultdtor - Do not generate implicit default destructors (dangerous, use %nodefaultdtor instead)\n\ -nodefaultdtor - Do not generate implicit default destructors\n\
-copctor - Generate copy constructor automatically when is possible\n\
-nodirprot - Do not wrap director protected members\n\ -nodirprot - Do not wrap director protected members\n\
-noexcept - Do not wrap exception specifiers\n\ -noexcept - Do not wrap exception specifiers\n\
-addextern - Add extra extern declarations\n\ -addextern - Add extra extern declarations\n\
@ -478,11 +479,9 @@ void SWIG_getoptions(int argc, char *argv[])
} else if ((strcmp(argv[i],"-nodefaultdtor") == 0)) { } else if ((strcmp(argv[i],"-nodefaultdtor") == 0)) {
SWIG_setfeature("feature:nodefaultdtor","1"); SWIG_setfeature("feature:nodefaultdtor","1");
Swig_mark_arg(i); Swig_mark_arg(i);
#if 0 } else if ((strcmp(argv[i],"-copyctor") == 0)) {
} else if ((strcmp(argv[i],"-nocopyctor") == 0)) { SWIG_setfeature("feature:copyctor","1");
SWIG_setfeature("feature:nocopyctor","1");
Swig_mark_arg(i); Swig_mark_arg(i);
#endif
} else if (strcmp(argv[i],"-noexcept") == 0) { } else if (strcmp(argv[i],"-noexcept") == 0) {
NoExcept = 1; NoExcept = 1;
Swig_mark_arg(i); Swig_mark_arg(i);