Code style fixes.
Output after running 'make beautify-file' on scilab file
This commit is contained in:
parent
ef02bc434e
commit
d4df5fb07b
2 changed files with 105 additions and 109 deletions
|
|
@ -67,8 +67,7 @@ public:
|
||||||
if (argv[argIndex + 1] != NULL) {
|
if (argv[argIndex + 1] != NULL) {
|
||||||
Swig_mark_arg(argIndex);
|
Swig_mark_arg(argIndex);
|
||||||
char *sourceFile = strtok(argv[argIndex + 1], " ");
|
char *sourceFile = strtok(argv[argIndex + 1], " ");
|
||||||
while (sourceFile != NULL)
|
while (sourceFile != NULL) {
|
||||||
{
|
|
||||||
DohInsertitem(sourceFileList, Len(sourceFileList), sourceFile);
|
DohInsertitem(sourceFileList, Len(sourceFileList), sourceFile);
|
||||||
sourceFile = strtok(NULL, " ");
|
sourceFile = strtok(NULL, " ");
|
||||||
}
|
}
|
||||||
|
|
@ -170,15 +169,11 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
DohInsertitem(sourceFileList, 0, outputFilename);
|
DohInsertitem(sourceFileList, 0, outputFilename);
|
||||||
for (int i=0; i<Len(sourceFileList); i++)
|
for (int i = 0; i < Len(sourceFileList); i++) {
|
||||||
{
|
|
||||||
String *sourceFile = Getitem(sourceFileList, i);
|
String *sourceFile = Getitem(sourceFileList, i);
|
||||||
if (i==0)
|
if (i == 0) {
|
||||||
{
|
|
||||||
Printf(builderCode, "files = \"%s\";\n", sourceFile);
|
Printf(builderCode, "files = \"%s\";\n", sourceFile);
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
Printf(builderCode, "files($ + 1) = \"%s\";\n", sourceFile);
|
Printf(builderCode, "files($ + 1) = \"%s\";\n", sourceFile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -364,7 +359,8 @@ public:
|
||||||
Delete(functionReturnTypemap);
|
Delete(functionReturnTypemap);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Swig_warning(WARN_TYPEMAP_OUT_UNDEF, input_file, line_number, "Unable to use return type %s in function %s.\n", SwigType_str(functionReturnType, 0), functionName);
|
Swig_warning(WARN_TYPEMAP_OUT_UNDEF, input_file, line_number, "Unable to use return type %s in function %s.\n", SwigType_str(functionReturnType, 0),
|
||||||
|
functionName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Write typemaps(out) */
|
/* Write typemaps(out) */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue