From: Ralf J. <jue...@cs...> - 2005-02-16 19:21:50
|
On Fri, 2005-02-11 at 10:37, Ralf Juengling wrote: > Yes. > The api (3) has become rather convoluted over the years. > It is defined from several sources: > > - The "light data structures" > idx and srg, defined in header.h > Vclass_object and Cclass_object defined in dh.h > > - The macros in idxmac.h/idxops.h/idxsquops.h/check_func.h. > I could not even tell you which macros > are currently obsolete... Speaking of obsolete functions/macros: There are a few definitions in header.h that look obsolete, too: LUSHAPI char *not_a_nrvector(at*); LUSHAPI char *not_a_nrmatrix(at*); LUSHAPI flt *make_nrvector(at*,intg,intg*); LUSHAPI flt **make_nrmatrix(at*,intg,intg,intg*,intg*); and the corresponding members of struct index: flt **nr0; /* The Numerical Recipes pointers (base 0) */ flt **nr1; /* The Numerical Recipes pointers (base 1) */ A 'grep -r make_matrix .' in the lush source tree revealed that make_matrix is not used anywhere. There also is no counterpart in the Lisp API, and the seemingly related functions 'nrmatrixp' and 'nrvectorp' are declared obsolete. So I assume all this is obsolete and can go away without causing any harm? Ralf |