> Kuba,
>
>> psubstitute(objinstptr thisinst) looks as follows:
>> {
>> objinstptr pinst;
>> objectptr thisobj;
>> pinst = (thisinst == areawin->topinstance) ? areawin->topinstance :
>> thisinst;
>> if (pinst == NULL) return -1; /* there is no instance */
>> thisobj = pinst->thisobject;
>> return opsubstitute(thisobj, pinst);
>> }
>> I presume this is silly and reduces to the following, or am I missing
>> something
>> obvious?
>> if (thisinst == NULL) return -1; // no instance
>> return opsubstitute(thisinst->thisobject, thisinst);
>
> I think you can safely use your judgement on these things. Code that
> gets worked over many, many times often ends up like that when one is
> not paying attention.
I understand, I just want to be sure that I'm not overlooking something,
or seeing a bug.
Cheers, Kuba
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev