On Jan 24, 2001, Akim Demaille <[EMAIL PROTECTED]> wrote:

>>>>>> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes:

Alexandre> In which case, we might attempt to match pro/epi in the
Alexandre> defn and insert the hooks before/after the actual DEFUN,
Alexandre> i.e., between pro and epi.

> Oh, just that?  ;)

I have no idea whether it's hard to do.

Worst case, we can break AC_DEFUNed macros into two macros, one with
the actual name, that contains the prologue and the epilogue and,
between them, an invocation of another macro, containing the actual
code.  Then, hooking something before or after a pro/epi macro would
be just a matter of pre/appending the code to this other macro.

> I understand the goal was noble and user oriented.  But I find it
> extremely dangerous.

Point taken.  We have to be careful not to break it.  So far, it's
worked moderately well.  The good thing is that, when they break,
people notice it immediately.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Reply via email to