summaryrefslogtreecommitdiff
path: root/macros/GeneralFunctions
diff options
context:
space:
mode:
authorSunil Shetye2019-05-16 12:36:11 +0530
committerSunil Shetye2019-05-29 11:08:03 +0530
commit5808c44e344c3f80504ec93d2bb588e83d0170b8 (patch)
tree6dad3b3663903bad863721a28a39b6d79f942d4c /macros/GeneralFunctions
parent26b77d7593b5ee0792b6b556f5569ea4227c2b02 (diff)
downloadscilab2c-5808c44e344c3f80504ec93d2bb588e83d0170b8.tar.gz
scilab2c-5808c44e344c3f80504ec93d2bb588e83d0170b8.tar.bz2
scilab2c-5808c44e344c3f80504ec93d2bb588e83d0170b8.zip
replace SCI2Cerror
Diffstat (limited to 'macros/GeneralFunctions')
-rw-r--r--macros/GeneralFunctions/SCI2COpenFileRead.sci2
-rw-r--r--macros/GeneralFunctions/SCI2Ccopyfile.sci2
-rw-r--r--macros/GeneralFunctions/SCI2Cfileexist.sci2
3 files changed, 3 insertions, 3 deletions
diff --git a/macros/GeneralFunctions/SCI2COpenFileRead.sci b/macros/GeneralFunctions/SCI2COpenFileRead.sci
index 1132a507..fec1090b 100644
--- a/macros/GeneralFunctions/SCI2COpenFileRead.sci
+++ b/macros/GeneralFunctions/SCI2COpenFileRead.sci
@@ -24,7 +24,7 @@ SCI2CNInArgCheck(argn(2),1,1);
// --- Open the .sci file (read only). ---
[fidnumber,fiderror] = mopen(filename,'r');
if (fiderror < 0)
- SCI2Cerror(['Cannot open (in read mode): '+filename]);
+ error(9999, 'Cannot open (in read mode): '+filename);
end
endfunction
diff --git a/macros/GeneralFunctions/SCI2Ccopyfile.sci b/macros/GeneralFunctions/SCI2Ccopyfile.sci
index 40d43f40..7c459b56 100644
--- a/macros/GeneralFunctions/SCI2Ccopyfile.sci
+++ b/macros/GeneralFunctions/SCI2Ccopyfile.sci
@@ -43,7 +43,7 @@ elseif (CopyMode == 'overwrite')
PrintStringInfo(' ', OutFileName, 'file', 'y'); // Cannot use scilab copyfile when the directory is empty!.
copyfile(InFileName,OutFileName);
else
- SCI2Cerror('Unknown CopyMode: ""'+CopyMode+'""');
+ error(9999, 'Unknown CopyMode: ""'+CopyMode+'""');
end
endfunction
diff --git a/macros/GeneralFunctions/SCI2Cfileexist.sci b/macros/GeneralFunctions/SCI2Cfileexist.sci
index d01a283d..d3122054 100644
--- a/macros/GeneralFunctions/SCI2Cfileexist.sci
+++ b/macros/GeneralFunctions/SCI2Cfileexist.sci
@@ -32,7 +32,7 @@ if (size(allfiles,1) == 0)
elseif (size(allfiles,1) == 1)
ExistTest = %T;
else
- SCI2Cerror('Very Strange! Found more than one file with the same name.');
+ error(9999, 'Very Strange! Found more than one file with the same name.');
end
endfunction