David, can you tell me which API I can use, please? Olga
On Mon, Aug 20, 2012 at 2:55 AM, ольга крыжановская <olga.kryzhanov...@gmail.com> wrote: > David, how can I test if a array is entirely made out of compound > variables or type variables, i.e. is one of: > compound -a array > compound -A array > typeset -T a_t=(...) ; a_t -a array > typeset -T a_t=(...) ; a_t -A array > > I tried this code: > > ... > array_np = nv_open("array", shp->var_tree, > NV_VARNAME|NV_NOFAIL|NV_NOADD); > ... > if (!nv_isattr(array_np, NV_COMVAR)) > { > puts("nv_isattr(array_np, NV_COMVAR) failed."); > } > if (!nv_isvtree(array_np)) > { > puts("nv_isvtree(array_np) failed."); > } > ... > > The code will print this in all 4 cases: > > nv_isattr(array_np, NV_COMVAR) failed. > nv_isvtree(array_np) failed. > > Which leaves me confused, how I can test if the array is entirely made > out of compound variables or type variables. > > Olga > -- > , _ _ , > { \/`o;====- Olga Kryzhanovska -====;o`\/ } > .----'-/`-/ olga.kryzhanov...@gmail.com \-`\-'----. > `'-..-| / http://twitter.com/fleyta \ |-..-'` > /\/\ Solaris/BSD//C/C++ programmer /\/\ > `--` `--` -- , _ _ , { \/`o;====- Olga Kryzhanovska -====;o`\/ } .----'-/`-/ olga.kryzhanov...@gmail.com \-`\-'----. `'-..-| / http://twitter.com/fleyta \ |-..-'` /\/\ Solaris/BSD//C/C++ programmer /\/\ `--` `--` _______________________________________________ ast-developers mailing list ast-developers@research.att.com https://mailman.research.att.com/mailman/listinfo/ast-developers