9 #define is_view_num(v) \ 10 (isnum(v)|| isstring(v) || ((v)== T) || ((v) == NIL)) 15 if (isint(v))
return(
intval(v));
16 else if (isflt(v))
return(
fltval(v));
17 else if (isstring(v))
return((
int)(v->
c.
str.
chars));
18 else if (
T == v)
return(
TRUE);
19 else if (
NIL == v)
return(
NULL);
25 if (isint(v))
return((
float)
intval(v));
26 else if (isflt(v))
return(
fltval(v));
43 if ((v > 0) && (v > 0x1fffffff)) {
45 b -> c.ivec.iv[0] =
v;
47 else if ((w > 0) && (w > 0x1fffffff)) {
49 b -> c.ivec.iv[0] =
v;
63 register int main_iargv[];
77 else if (isfltvector(a)) {
78 size=vecsize(a);
argc+= size;
81 else if (isintvector(a)) {
82 size=vecsize(a);
argc+= size;
85 else if (isarray(a)) {
88 else if (isvector(a)) {
103 register float main_fargv[];
117 else if (isfltvector(a)) {
118 size=vecsize(a);
argc += size;
121 else if (isintvector(a)) {
122 size=vecsize(a);
argc+= size;
123 for (j=0; j<size; j++) *
fargv++ = (
float)a->
c.
ivec.
iv[j];
125 else if (isarray(a)) {
128 else if (isvector(a)) {
132 else if (islist(a)) {
144 register float *farrayargv;
145 register int dimension;
147 register float fargv[3*256];
148 register int i,j,size,rem;
155 for (j=0; j<dimension; j++) {
156 for (i=0; i<size; i++)
157 *farrayargv++ = fargv[i*dimension + j];
165 register long cargv[];
168 register int i,cargc=0;
largv2cargv(int n, argv, cargv, int from, int to)
trans_argv_iargv(int n, argv, main_iargv)
pointer makevector(pointer, int)
trans_argv_iargv_aux(pointer a)
trans_argv_fargv_aux(pointer a)
trans_argv_fargv(int n, argv, main_fargv)
trans_argv_farrayargv(int n, pointer *argv, int dimension, float *farrayargv)
pointer error(enum errorcode ec,...) pointer error(va_alist) va_dcl
float cknumtoflt(pointer v)