On 5 December 2016 at 14:29, Jim Craig <jimcraig5...@windstream.net> wrote:
> However looking over some of
> the components. number= and names= are not always present and other
> loadrt variables determine the quantity and names of subcomponents. What
> do you all think is the best method?

I don't really know the answer to the problem, though I feel I perhaps
ought to apologise for being probably the worst offender at creating
such components.

You can often (but not always) determine the sub-component count by
looking at the number of commas or spaces in the config string. (this
is moderately safe as the RTAPI_MP_ARRAY macros always break on commas
or spaces.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

------------------------------------------------------------------------------
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to