fix some small thing
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11977 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
57c3d28aaf
commit
38f4edcdac
3 changed files with 11 additions and 6 deletions
|
|
@ -7,3 +7,4 @@ sumitems(myMatrix)
|
||||||
myOtherMatrix=getValues(1);
|
myOtherMatrix=getValues(1);
|
||||||
size(myOtherMatrix)
|
size(myOtherMatrix)
|
||||||
disp(myOtherMatrix);
|
disp(myOtherMatrix);
|
||||||
|
exit
|
||||||
|
|
|
||||||
|
|
@ -969,7 +969,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
sciErr = getVarType(pvApiCtx, piAddrVar, &iType);
|
sciErr = getVarType(pvApiCtx, piAddrVar, &iType);
|
||||||
if (sciErr.iErr || iType != sci_pointer {
|
if (sciErr.iErr || iType != sci_pointer) {
|
||||||
Scierror(999, _("%s: Wrong type for input argument #%d: Pointer expected.\n"), fname, $argnum);
|
Scierror(999, _("%s: Wrong type for input argument #%d: Pointer expected.\n"), fname, $argnum);
|
||||||
printError(&sciErr, 0);
|
printError(&sciErr, 0);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -1847,7 +1847,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
%typemap(varin,noblock=1) enum SWIGTYPE {
|
%typemap(varin,noblock=1) enum SWIGTYPE {
|
||||||
int iType;
|
int iPrec;
|
||||||
int *_piData;
|
int *_piData;
|
||||||
sciErr = getVarAddressFromPosition(pvApiCtx, $argnum, &piAddrVar);
|
sciErr = getVarAddressFromPosition(pvApiCtx, $argnum, &piAddrVar);
|
||||||
if (sciErr.iErr) {
|
if (sciErr.iErr) {
|
||||||
|
|
@ -2330,7 +2330,7 @@
|
||||||
|
|
||||||
/* Enums */
|
/* Enums */
|
||||||
%typemap(varout,noblock=1) enum SWIGTYPE {
|
%typemap(varout,noblock=1) enum SWIGTYPE {
|
||||||
sciErr = createMatrixOfInteger32(pvApiCtx, iVarOut, iRowsOut, iColsOut, (int *)&temp);
|
sciErr = createMatrixOfInteger32(pvApiCtx, iVarOut, iRowsOut, iColsOut, (int *)&$result);
|
||||||
if (sciErr.iErr) {
|
if (sciErr.iErr) {
|
||||||
printError(&sciErr, 0);
|
printError(&sciErr, 0);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -254,8 +254,10 @@ public:
|
||||||
Replaceall(tm, "$result", "result");
|
Replaceall(tm, "$result", "result");
|
||||||
|
|
||||||
/* There are more than one output */
|
/* There are more than one output */
|
||||||
if (out_required > 0)
|
if (out_required > 0) {
|
||||||
|
Printf(f->code, "LhsVar(iOutNum) = iVarOut;\n");
|
||||||
Printf(f->code, "iOutNum ++;\niVarOut ++;\n");
|
Printf(f->code, "iOutNum ++;\niVarOut ++;\n");
|
||||||
|
}
|
||||||
Printf(f->code, "%s\n", tm);
|
Printf(f->code, "%s\n", tm);
|
||||||
if (strlen(Char(tm)) != 0)
|
if (strlen(Char(tm)) != 0)
|
||||||
out_required ++;
|
out_required ++;
|
||||||
|
|
@ -268,8 +270,10 @@ public:
|
||||||
String *outarg = NewString("");
|
String *outarg = NewString("");
|
||||||
for (p = l; p;) {
|
for (p = l; p;) {
|
||||||
if ((tm = Getattr(p, "tmap:argout"))) {
|
if ((tm = Getattr(p, "tmap:argout"))) {
|
||||||
if (out_required > 0)
|
if (out_required > 0) {
|
||||||
Printf(f->code,"iOutNum ++;\niVarOut ++;\n");
|
Printf(f->code, "LhsVar(iOutNum) = iVarOut;\n");
|
||||||
|
Printf(f->code,"iOutNum ++;\niVarOut ++;\n");
|
||||||
|
}
|
||||||
Printv(outarg, tm, "\n", NIL);
|
Printv(outarg, tm, "\n", NIL);
|
||||||
p = Getattr(p, "tmap:argout:next");
|
p = Getattr(p, "tmap:argout:next");
|
||||||
out_required ++;
|
out_required ++;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue