enforce consistency in wrap:action wrt line spacing

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10411 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-05-01 21:47:23 +00:00
commit 46a0db50fe
8 changed files with 21 additions and 20 deletions

View file

@ -1759,9 +1759,9 @@ public:
Wrapper_add_local(f, "classname", classname);
}
if (action) {
Append(action, "DATA_PTR(self) = result;\n");
Append(action, "\nDATA_PTR(self) = result;");
if (GetFlag(pn, "feature:trackobjects")) {
Append(action, "SWIG_RubyAddTracking(result, self);\n");
Append(action, "\nSWIG_RubyAddTracking(result, self);");
}
}
}
@ -2654,11 +2654,11 @@ public:
Printv(f_wrappers, wrap, NIL);
}
/* Printv(freebody, Swig_name_destroy(name), "(", pname0, ")", NIL); */
Printv(freebody, Getattr(n, "wrap:action"), NIL);
Printv(freebody, Getattr(n, "wrap:action"), "\n", NIL);
} else {
String *action = Getattr(n, "wrap:action");
if (action) {
Printv(freebody, action, NIL);
Printv(freebody, action, "\n", NIL);
} else {
/* In the case swig emits no destroy function. */
if (CPlusPlus)