Skip to content

Commit 2e76ba8

Browse files
author
Alan W. Irwin
committed
Correct syntax error (missing trailing ";") in SWIG_fail_arg calls in
C code wrapped by typemap. For some reason these syntax errors did not cause issues with our build and run testing, but they did cause major problems (empty output file) for styling of plplotluac.i with uncrustify. svn path=/trunk/; revision=11697
1 parent 7a176a4 commit 2e76ba8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bindings/lua/plplotluac.i

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ void mylabel(PLINT axis, PLFLT value, char* label, PLINT length, PLPointer data)
785785
strncpy(mapform_funcstr, lua_tostring(L, $input), 255);
786786
myL = L;
787787
} else
788-
SWIG_fail_arg("$symname", $argnum, "$1_type")
788+
SWIG_fail_arg("$symname", $argnum, "$1_type");
789789
}
790790
%typemap(freearg) mapform_func mapform {
791791
mapform_funcstr[0]='\0';
@@ -807,7 +807,7 @@ void mylabel(PLINT axis, PLFLT value, char* label, PLINT length, PLPointer data)
807807
strncpy(label_funcstr, lua_tostring(L, $input), 255);
808808
myL = L;
809809
} else
810-
SWIG_fail_arg("$symname", $argnum, "$1_type")
810+
SWIG_fail_arg("$symname", $argnum, "$1_type");
811811
}
812812
%typemap(freearg) label_func lf {
813813
}
@@ -830,7 +830,7 @@ void mylabel(PLINT axis, PLFLT value, char* label, PLINT length, PLPointer data)
830830
myL = L;
831831
}
832832
} else
833-
SWIG_fail_arg("$symname", $argnum, "$1_type")
833+
SWIG_fail_arg("$symname", $argnum, "$1_type");
834834
}
835835
%typemap(freearg) pltr_func pltr {
836836
mypltr_funcstr[0]='\0';
@@ -851,7 +851,7 @@ void mylabel(PLINT axis, PLFLT value, char* label, PLINT length, PLPointer data)
851851
strncpy(myct_funcstr, funcstr, 255);
852852
myL = L;
853853
} else
854-
SWIG_fail_arg("$symname", $argnum, "$1_type")
854+
SWIG_fail_arg("$symname", $argnum, "$1_type");
855855
}
856856
/* you can omit the ct func */
857857
%typemap(default) ct_func ctf {

0 commit comments

Comments
 (0)