mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 06:07:34 +02:00
extflat: integrate cb_extflat_hiervisitresists_t for EFHierVisitResists()
Additionally the HierName's hierName1 and hierName2 arguments have been made 'const' to help convey the receiver can not modify the referenced data passed.
This commit is contained in:
@@ -1325,12 +1325,16 @@ spccapHierVisit(
|
||||
*
|
||||
* ----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*ARGUSED*/
|
||||
/* @typedef cb_extflat_hiervisitresists_t (UNUSED) */
|
||||
int
|
||||
spcresistHierVisit(
|
||||
HierContext *hc,
|
||||
HierName *hierName1,
|
||||
HierName *hierName2,
|
||||
float res)
|
||||
const HierName *hierName1,
|
||||
const HierName *hierName2,
|
||||
float res,
|
||||
ClientData cdata) // UNUSED
|
||||
{
|
||||
HashEntry *he;
|
||||
EFNodeName *nn;
|
||||
@@ -2213,7 +2217,7 @@ esHierVisit(
|
||||
EFHierVisitDevs(hcf, spcdevHierVisit, PTR2CD(NULL));
|
||||
|
||||
/* Output lumped parasitic resistors */
|
||||
EFHierVisitResists(hcf, spcresistHierVisit, (ClientData)NULL);
|
||||
EFHierVisitResists(hcf, spcresistHierVisit, PTR2CD(NULL));
|
||||
|
||||
/* Output coupling capacitances */
|
||||
EFHierVisitCaps(hcf, spccapHierVisit, (ClientData)NULL);
|
||||
|
||||
Reference in New Issue
Block a user