summaryrefslogtreecommitdiffstats
path: root/scilab/modules/metanet
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/metanet
parent134611f0d9edb76fa1f8ada6dbe11aa35bc21f89 (diff)
downloadscilab-1ca049a75a2610c5617b78577cd1f3506509a594.zip
scilab-1ca049a75a2610c5617b78577cd1f3506509a594.tar.gz
remove hard coded values
Diffstat (limited to 'scilab/modules/metanet')
-rw-r--r--scilab/modules/metanet/sci_gateway/c/gw_metanet.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/scilab/modules/metanet/sci_gateway/c/gw_metanet.c b/scilab/modules/metanet/sci_gateway/c/gw_metanet.c
index 1d8fce6..8d181be 100644
--- a/scilab/modules/metanet/sci_gateway/c/gw_metanet.c
+++ b/scilab/modules/metanet/sci_gateway/c/gw_metanet.c
@@ -16,8 +16,7 @@
16#include "stack-c.h" 16#include "stack-c.h"
17#include "callFunctionFromGateway.h" 17#include "callFunctionFromGateway.h"
18/*--------------------------------------------------------------------------*/ 18/*--------------------------------------------------------------------------*/
19#define METANET_TAB_SIZE 50 19static gw_generic_table Tab[]=
20static gw_generic_table Tab[METANET_TAB_SIZE]=
21{ 20{
22{C2F(intsm6loadg),"m6loadg"}, 21{C2F(intsm6loadg),"m6loadg"},
23{C2F(intsm6saveg),"m6saveg"}, 22{C2F(intsm6saveg),"m6saveg"},
@@ -74,7 +73,7 @@ static gw_generic_table Tab[METANET_TAB_SIZE]=
74int gw_metanet(void) 73int gw_metanet(void)
75{ 74{
76 Rhs = Max(0, Rhs); 75 Rhs = Max(0, Rhs);
77 callFunctionFromGateway(Tab,METANET_TAB_SIZE); 76 callFunctionFromGateway(Tab, SIZE_CURRENT_GENERIC_TABLE(Tab));
78 return 0; 77 return 0;
79} 78}
80/*--------------------------------------------------------------------------*/ 79/*--------------------------------------------------------------------------*/