Skip to content

Instantly share code, notes, and snippets.

@wsfulton
Created June 4, 2016 19:41
Show Gist options
  • Save wsfulton/9bdfb32485f95e6ecd20a1e141d88641 to your computer and use it in GitHub Desktop.
Save wsfulton/9bdfb32485f95e6ecd20a1e141d88641 to your computer and use it in GitHub Desktop.
swig patch 694 whitespace fixes
diff --git a/Examples/python/import_packages/Makefile b/Examples/python/import_packages/Makefile
index d46e1e0..f428d6f 100644
--- a/Examples/python/import_packages/Makefile
+++ b/Examples/python/import_packages/Makefile
@@ -12,13 +12,13 @@ import_packages_subdirs = \
relativeimport2 \
relativeimport3 \
split_modules \
- namespace_pkg
+ namespace_pkg
check: build
if test "x$(SRCDIR)" != x; then \
for file in `cd $(SRCDIR) && find . -type f -name "*.py"`; do \
- mkdir -p `dirname $$file`; \
+ mkdir -p `dirname $$file`; \
cp "${SRCDIR}$$file" "$$file" || exit 1; \
done; \
fi; \
diff --git a/Examples/python/import_packages/split_modules/README b/Examples/python/import_packages/split_modules/README
index af56802..6fb61d3 100644
--- a/Examples/python/import_packages/split_modules/README
+++ b/Examples/python/import_packages/split_modules/README
@@ -13,5 +13,3 @@ vanilla_split # python 1/2 in pkg1 C 1/2 in global namespace
builtin # both halves in pkg1 (-builtin passed to swig)
builtin # python 1/2 in pkg1 C 1/2 in global namespace (with -builtin)
- All of the _nopy3 tests are the same as the above except swig will not
-use -py3 for python3.
diff --git a/Examples/python/import_packages/split_modules/builtin/pkg1/foo.i b/Examples/python/import_packages/split_modules/builtin/pkg1/foo.i
index 00df2d0..60ce16e 100644
--- a/Examples/python/import_packages/split_modules/builtin/pkg1/foo.i
+++ b/Examples/python/import_packages/split_modules/builtin/pkg1/foo.i
@@ -1,9 +1,9 @@
%module(package="pkg1") foo
%{
static unsigned count(void)
- {
- return 3;
- }
+{
+ return 3;
+}
%}
unsigned count(void);
diff --git a/Examples/python/import_packages/split_modules/builtin_split/foo.i b/Examples/python/import_packages/split_modules/builtin_split/foo.i
index 00df2d0..60ce16e 100644
--- a/Examples/python/import_packages/split_modules/builtin_split/foo.i
+++ b/Examples/python/import_packages/split_modules/builtin_split/foo.i
@@ -1,9 +1,9 @@
%module(package="pkg1") foo
%{
static unsigned count(void)
- {
- return 3;
- }
+{
+ return 3;
+}
%}
unsigned count(void);
diff --git a/Examples/python/import_packages/split_modules/vanilla/pkg1/foo.i b/Examples/python/import_packages/split_modules/vanilla/pkg1/foo.i
index 00df2d0..60ce16e 100644
--- a/Examples/python/import_packages/split_modules/vanilla/pkg1/foo.i
+++ b/Examples/python/import_packages/split_modules/vanilla/pkg1/foo.i
@@ -1,9 +1,9 @@
%module(package="pkg1") foo
%{
static unsigned count(void)
- {
- return 3;
- }
+{
+ return 3;
+}
%}
unsigned count(void);
diff --git a/Examples/python/import_packages/split_modules/vanilla_split/foo.i b/Examples/python/import_packages/split_modules/vanilla_split/foo.i
index 00df2d0..60ce16e 100644
--- a/Examples/python/import_packages/split_modules/vanilla_split/foo.i
+++ b/Examples/python/import_packages/split_modules/vanilla_split/foo.i
@@ -1,9 +1,9 @@
%module(package="pkg1") foo
%{
static unsigned count(void)
- {
- return 3;
- }
+{
+ return 3;
+}
%}
unsigned count(void);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment