cosmetic code formatting changes

This commit is contained in:
William S Fulton 2016-02-09 07:39:46 +00:00
commit 993214872f
3 changed files with 47 additions and 46 deletions

View file

@ -1581,6 +1581,7 @@ public:
} }
return Language::pragmaDirective(n); return Language::pragmaDirective(n);
} }
String *getQualifiedInterfaceName(Node *n) { String *getQualifiedInterfaceName(Node *n) {
String *ret = Getattr(n, "interface:qname"); String *ret = Getattr(n, "interface:qname");
if (!ret) { if (!ret) {
@ -1598,6 +1599,7 @@ public:
} }
return ret; return ret;
} }
void addInterfaceNameAndUpcasts(String *interface_list, String *interface_upcasts, Hash *base_list, String *c_classname) { void addInterfaceNameAndUpcasts(String *interface_list, String *interface_upcasts, Hash *base_list, String *c_classname) {
List *keys = Keys(base_list); List *keys = Keys(base_list);
for (Iterator it = First(keys); it.item; it = Next(it)) { for (Iterator it = First(keys); it.item; it = Next(it)) {
@ -1635,6 +1637,7 @@ public:
} }
Delete(keys); Delete(keys);
} }
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* emitProxyClassDefAndCPPCasts() * emitProxyClassDefAndCPPCasts()
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
@ -1904,8 +1907,7 @@ public:
Delete(baseclass); Delete(baseclass);
} }
void emitInterfaceDeclaration(Node* n, String* iname, File* f_interface) void emitInterfaceDeclaration(Node *n, String *iname, File *f_interface) {
{
Printv(f_interface, typemapLookup(n, "csimports", Getattr(n, "classtypeobj"), WARN_NONE), "\n", NIL); Printv(f_interface, typemapLookup(n, "csimports", Getattr(n, "classtypeobj"), WARN_NONE), "\n", NIL);
Printf(f_interface, "public interface %s", iname); Printf(f_interface, "public interface %s", iname);
if (List *baselist = Getattr(n, "bases")) { if (List *baselist = Getattr(n, "bases")) {

View file

@ -1724,6 +1724,7 @@ public:
} }
return ret; return ret;
} }
void addInterfaceNameAndUpcasts(String *interface_list, String *interface_upcasts, Hash *base_list, String *c_classname) { void addInterfaceNameAndUpcasts(String *interface_list, String *interface_upcasts, Hash *base_list, String *c_classname) {
List *keys = Keys(base_list); List *keys = Keys(base_list);
for (Iterator it = First(keys); it.item; it = Next(it)) { for (Iterator it = First(keys); it.item; it = Next(it)) {
@ -1974,8 +1975,7 @@ public:
Delete(baseclass); Delete(baseclass);
} }
void emitInterfaceDeclaration(Node* n, String* iname, File* f_interface, String *nspace) void emitInterfaceDeclaration(Node *n, String *iname, File *f_interface, String *nspace) {
{
if (package || nspace) { if (package || nspace) {
Printf(f_interface, "package "); Printf(f_interface, "package ");
if (package) if (package)

View file

@ -3654,8 +3654,7 @@ static void Swig_collect_interface_bases(Node* n) {
} }
// Append all the interface methods not implemented in the current class, so that it would not be abstract // Append all the interface methods not implemented in the current class, so that it would not be abstract
void Swig_propagate_interface_methods(Node *n) void Swig_propagate_interface_methods(Node *n) {
{
Swig_collect_interface_bases(n); Swig_collect_interface_bases(n);
List *methods = NewList(); List *methods = NewList();
collect_interface_methods(n, methods); collect_interface_methods(n, methods);