summaryrefslogtreecommitdiffstats
path: root/scilab/modules/symbolic/sci_gateway
diff options
context:
space:
mode:
authorAllan CORNET <allan.cornet@scilab.org>2009-09-10 14:55:22 +0200
committerAllan CORNET <allan.cornet@scilab.org>2009-09-10 14:55:22 +0200
commit1ca049a75a2610c5617b78577cd1f3506509a594 (patch)
tree78002cbaa81a444da9bece6c258799d0e790c21b /scilab/modules/symbolic/sci_gateway
parent134611f0d9edb76fa1f8ada6dbe11aa35bc21f89 (diff)
downloadscilab-1ca049a75a2610c5617b78577cd1f3506509a594.zip
scilab-1ca049a75a2610c5617b78577cd1f3506509a594.tar.gz
remove hard coded values
Diffstat (limited to 'scilab/modules/symbolic/sci_gateway')
-rw-r--r--scilab/modules/symbolic/sci_gateway/c/gw_symbolic.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/scilab/modules/symbolic/sci_gateway/c/gw_symbolic.c b/scilab/modules/symbolic/sci_gateway/c/gw_symbolic.c
index d13156d..c7181d7 100644
--- a/scilab/modules/symbolic/sci_gateway/c/gw_symbolic.c
+++ b/scilab/modules/symbolic/sci_gateway/c/gw_symbolic.c
@@ -16,8 +16,7 @@
16#include "Scierror.h" 16#include "Scierror.h"
17#include "localization.h" 17#include "localization.h"
18/*--------------------------------------------------------------------------*/ 18/*--------------------------------------------------------------------------*/
19#define SYMBOLIC_TAB_SIZE 5 19static gw_generic_table Tab[] =
20static gw_generic_table Tab[SYMBOLIC_TAB_SIZE]=
21{ 20{
22{sci_addf,"addf"}, 21{sci_addf,"addf"},
23{sci_subf,"subf"}, 22{sci_subf,"subf"},
@@ -33,7 +32,7 @@ int gw_symbolic(void)
33 Scierror(39,_("%s: Wrong number of input arguments: %d expected.\n"),Tab[Fin-1].name, 2); 32 Scierror(39,_("%s: Wrong number of input arguments: %d expected.\n"),Tab[Fin-1].name, 2);
34 return 0; 33 return 0;
35 } 34 }
36 callFunctionFromGateway(Tab,SYMBOLIC_TAB_SIZE); 35 callFunctionFromGateway(Tab, SIZE_CURRENT_GENERIC_TABLE(Tab));
37 return 0; 36 return 0;
38} 37}
39/*--------------------------------------------------------------------------*/ 38/*--------------------------------------------------------------------------*/