/* --------------------------------------------------------------------------- * draw a pin object */ void DrawPin (PinType *Pin) { AddPart (Pin); if ((!TEST_FLAG (HOLEFLAG, Pin) && TEST_FLAG (DISPLAYNAMEFLAG, Pin)) || doing_pinout) DrawPinName (Pin); }
void *ChangePinName( ElementTypePtr Element, PinTypePtr Pin ) { char *old; old[0] = Pin->Name; ErasePinName( Pin ); Pin->Name = NewName; DrawPinName( Pin, 0 ); return (void*)old; }
void *ChangeViaName( PinTypePtr Via ) { char *old; old[0] = Via->Name; ErasePinName( Via ); Via->Name = NewName; DrawPinName( Via, 0 ); return (void*)old; }