significant max variable names in SciCos (and SciLab 3.0)

significant max variable names in SciCos (and SciLab 3.0)

Post by patrick.te » Sat, 04 Sep 2004 18:14:11


Hi,

In SciLab versions previous to 3.0, significant max variable names
length used to be 24.
Does this limit still exist in SciCos? In SciLab 3.0?
If so, (when) is it planned to evolve (e.g. up 32, or more?)?

Thank you in advance.
 
 
 

significant max variable names in SciCos (and SciLab 3.0)

Post by Franis Vog » Sun, 05 Sep 2004 04:45:14

Hi,

If I look at routines/stack.c, I can quote the following part of the source
code:

<quote>
c Copyright INRIA

c*------------------------------------------------------------------
c vsiz size of internal scilab stack
c
c bsiz size of internal chain buf
c
c isizt maximum number of scilab variables global and local
c isiz maximum number of scilab local variables
c psiz defines recursion size
c lsiz dim. of vector containing the command line
c nlgh length of variable names
c csiz used for character coding
c intersiz used in interfaces
c*-------------------------------------------------------------------
C The next lines are used by visual Fortran
C when building dll's which share common data with Scilab.dll
c DEC$ IF DEFINED (FORDLL)
c DEC$ ATTRIBUTES DLLIMPORT:: /stack/, /vstk/, /recu/, /iop/
c DEC$ ATTRIBUTES DLLIMPORT:: /errgst/, /com/, /adre/
c DEC$ ATTRIBUTES DLLIMPORT:: /intersci/ ,/cha1/
c DEC$ ENDIF
C ---------------------------------------------------------------
integer csiz,bsiz,isizt,psiz,nsiz,lsiz
parameter (csiz=63,bsiz=4096,isizt=10000,psiz=4096,nsiz=6)
parameter (lsiz=65536)
integer nlgh,vsiz
parameter (nlgh=nsiz*4,vsiz=2)
<endquote>

Seems therefore that the limitation is still nlgh being nsiz*4, i.e. 6*4=24.

In principle it should be quite easy to increase this limit by modifying all
the *stack*.h files.
In practice I believe it would require a large amount of testing to ensure
consistency with the rest of the code... I know there are files where this
figure 24 is more or less hardcoded (e.g. routines/system/msgstore.c).

HTH.
Francois


"Pat DAN" < XXXX@XXXXX.COM > a rit dans le message de