From ab8f05204f17b7a395a9226d7fa270e6736f02c6 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 29 Aug 2015 13:08:18 +0100 Subject: [PATCH] Cosmetic changes in Octave runtime Fix bracket matching! --- Lib/octave/octrun.swg | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Lib/octave/octrun.swg b/Lib/octave/octrun.swg index ddfd48939..b6e4b6ccf 100644 --- a/Lib/octave/octrun.swg +++ b/Lib/octave/octrun.swg @@ -982,10 +982,11 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own); } #if SWIG_OCTAVE_PREREQ(4,0,0) - void print(std::ostream &os, bool pr_as_read_syntax = false) { + void print(std::ostream &os, bool pr_as_read_syntax = false) #else - void print(std::ostream &os, bool pr_as_read_syntax = false) const { + void print(std::ostream &os, bool pr_as_read_syntax = false) const #endif + { if (is_string()) { os << string_value(); return; @@ -1178,10 +1179,11 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own); } #if SWIG_OCTAVE_PREREQ(4,0,0) - void print(std::ostream &os, bool pr_as_read_syntax = false) { + void print(std::ostream &os, bool pr_as_read_syntax = false) #else - void print(std::ostream &os, bool pr_as_read_syntax = false) const { + void print(std::ostream &os, bool pr_as_read_syntax = false) const #endif + { indent(os); os << "swig packed type: name = " << (type ? type->name : std::string()) << ", len = " << buf.size(); newline(os); }