Octave patches for 3.4.0 compatibility, etc. (sf 3387394, thanks for Karl Wette)

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12774 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Xavier Delacour 2011-08-08 21:41:34 +00:00
commit dae9457962
20 changed files with 49 additions and 16 deletions

View file

@ -10,13 +10,13 @@
/* An output method that turns a complex into a short string */
%extend ComplexVal {
char *__str() {
char *__str__() {
static char temp[512];
sprintf(temp,"(%g,%g)", $self->re(), $self->im());
return temp;
}
ComplexVal __paren(int j) {
ComplexVal __paren__(int j) {
return ComplexVal($self->re()*j,$self->im()*j);
}
};