diff options
author | Sylvestre Ledru <sylvestre.ledru@scilab.org> | 2010-04-23 14:08:48 +0200 |
---|---|---|
committer | Sylvestre Ledru <sylvestre.ledru@scilab.org> | 2010-04-23 15:47:05 +0200 |
commit | b97ad45f71efcc0413726ff4b2aee5457890915b (patch) | |
tree | c2dd74db8bf7ee09d16e0a9ca40b980093ea31ee /scilab/modules/data_structures | |
parent | e4274899925b5b8f28e07758cd09d08af6ad8c1d (diff) | |
download | scilab-b97ad45f71efcc0413726ff4b2aee5457890915b.zip scilab-b97ad45f71efcc0413726ff4b2aee5457890915b.tar.gz |
* Error(x) is now deprecated and will be removed in Scilab 5.4.
Please consider SciError(x).
Change-Id: Ie1abfa877d1f9995d70b3e03ef9a4852fee133d1
Diffstat (limited to 'scilab/modules/data_structures')
3 files changed, 3 insertions, 5 deletions
diff --git a/scilab/modules/data_structures/sci_gateway/c/gw_data_structures1.c b/scilab/modules/data_structures/sci_gateway/c/gw_data_structures1.c index 96391e7..0f460fc 100644 --- a/scilab/modules/data_structures/sci_gateway/c/gw_data_structures1.c +++ b/scilab/modules/data_structures/sci_gateway/c/gw_data_structures1.c | |||
@@ -35,8 +35,7 @@ int gw_data_structures1(void) | |||
35 | Rhs=Max(Rhs,0); | 35 | Rhs=Max(Rhs,0); |
36 | if (Top - Rhs + Lhs + 1 >= Bot) | 36 | if (Top - Rhs + Lhs + 1 >= Bot) |
37 | { | 37 | { |
38 | static int codeerror = 18; | 38 | SciError(18); |
39 | Error(codeerror); | ||
40 | return 0; | 39 | return 0; |
41 | } | 40 | } |
42 | 41 | ||
diff --git a/scilab/modules/data_structures/sci_gateway/c/gw_data_structures2.c b/scilab/modules/data_structures/sci_gateway/c/gw_data_structures2.c index 37544c7..7eb4338 100644 --- a/scilab/modules/data_structures/sci_gateway/c/gw_data_structures2.c +++ b/scilab/modules/data_structures/sci_gateway/c/gw_data_structures2.c | |||
@@ -29,7 +29,7 @@ int gw_data_structures2(void) | |||
29 | if (Top - Rhs + Lhs + 1 >= Bot) | 29 | if (Top - Rhs + Lhs + 1 >= Bot) |
30 | { | 30 | { |
31 | static int codeerror = 18; | 31 | static int codeerror = 18; |
32 | Error(codeerror); | 32 | SciError(codeerror); |
33 | return 0; | 33 | return 0; |
34 | } | 34 | } |
35 | 35 | ||
diff --git a/scilab/modules/data_structures/src/c/stcreate.c b/scilab/modules/data_structures/src/c/stcreate.c index 055e8de..04fbbe6 100644 --- a/scilab/modules/data_structures/src/c/stcreate.c +++ b/scilab/modules/data_structures/src/c/stcreate.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #define memused(it,mn) ((((mn)*( it % 10))/sizeof(int))+1) | 20 | #define memused(it,mn) ((((mn)*( it % 10))/sizeof(int))+1) |
21 | 21 | ||
22 | /* Table of constant values */ | 22 | /* Table of constant values */ |
23 | static int c17 = 17; | ||
24 | static int c1 = 1; | 23 | static int c1 = 1; |
25 | static int c4 = 4; | 24 | static int c4 = 4; |
26 | 25 | ||
@@ -51,7 +50,7 @@ int C2F(stcreate)(int *lw, int *nz, int *sz, int *nf, char *fnames[], int *retva | |||
51 | Err = sadr(il+6) + n1 - *Lstk(Bot); | 50 | Err = sadr(il+6) + n1 - *Lstk(Bot); |
52 | if (Err > 0) | 51 | if (Err > 0) |
53 | { | 52 | { |
54 | Error(c17); | 53 | SciError(17); |
55 | return 1; | 54 | return 1; |
56 | } | 55 | } |
57 | *istk(il) = 17; | 56 | *istk(il) = 17; |