Guys --

I recently came across some symbols with strange pin syntax which made
gattrib segfault.  I have fixed gattrib to be robust against this
syntax, but I am now wondering if the syntax is valid or not. 

Pins can have attribs attached to them.  Here is an example pin with
attribs:

P 300 4200 0 4200 1 0 1
{
T 136 4250 5 8 1 1 0 0 1
pinnumber=1
T 136 4250 5 8 0 0 0 0 1
pinseq=1
}

On certain symbols I have found pins with simple text also attached.
For example, here is a snippet of analog/CS5396-1.sym:

P 300 4200 0 4200 1 0 1
{
T 136 4250 5 8 1 1 0 0 1
pinnumber=1
T 136 4250 5 8 0 0 0 0 1
pinseq=1
T 375 4150 3 8 1 0 0 0 1
Vref
}

It has text "Vref" attached to the pin.  Is this valid?

Many other symbols have this construct also.

More generally, is this syntax a good idea?  That is, doing this means
that pins can be complexes, or at least have "primitive objects"
besides attributes.  Does this serve a purpose?  I was under the
impression that "primitive objects" only made sense for complexes
(components).  

If it were me, I would say that pins may only have valid attribs
attached, and nothing else.  But I might be wrong.  Is there ever a
time that pins would need to have anything more than attributes
attached?

Stuart

Reply via email to