-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Sep 08, 2006 at 03:42:46PM +0100, Peter Clifton wrote:
> Ok... the smt.inc macro: PKG_SMT_2PAD_MM100
> 
> has the following lines:
> 
> define(`R1',    `eval(($9  * 10000)/254)')
> define(`R2',    `eval(($10 * 10000)/254)')
> 
> (and others)... presumably this means that the term R2 and R1 are
> becoming expandable macros, hence confusing the heck out of any later
> macro which uses that name.
> 
> I guess it might be a string escaping problem in the ACY macros, or
> something wrong with PKG_SMT_2PAD_MM100, in that it should keep its
> define's local.
> 
> Does anyone who actually knows M4 want to step in and help here... I'm
> learning it as I go!

Admitting to know too much of M4 is a bit of a dubious afair...

Your hypothesis makes sense, that R1 and R2 remain defined.  Perhaps you
could replace "define" with "pushdef", and then after the last use of R1
and R2, you can do "popdef(`R1')" and "popdef(`R2')".

HTH

- -- 
"IBM has more patent litigation lawyers than SCO has employees." - unknown
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: Please fetch my new key 804177F8 from hkp://wwwkeys.eu.pgp.net/

iD8DBQFFAZWFwyMv24BBd/gRAlA/AKCJ1JonU2Ef/RTPaZx7SV3sxt45SwCeN9Vs
6L1LK91Jnt6A3ot4HzaoDDg=
=D7y7
-----END PGP SIGNATURE-----


_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to