bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in GAWK 3.1.0 -> --dump doesn't work with extension()


From: Kenny McCormack
Subject: Bug in GAWK 3.1.0 -> --dump doesn't work with extension()
Date: Mon, 09 Sep 2002 16:59:20 GMT

You get an assert failure (j == func_count -> in awkgram.y).

Basically, I think the problem is that when you add a function via
extension(), the variable func_count (which is static in awkgram.c) doesn't
get incremented.  The fix should be easy; either of:
        1) Make func_count non-static and increment it in make_builtin().
        2) Provide a "increment_func_count()" function and call that from
           make_builtin().

Either is fine, of course - it just depends on how "object oriented" you
want to be.  Anyway, I leave it to people more familiar with the GAWK code
to implement this - I am not familiar enough with it to know what
side-effects this may have.

P.S.  In regards to the recent thread on c.l.a. about bugs in GAWK and
whether it is OK to discuss them here:  I think it is sufficient to, as I
have done, cross-post to gnu.utils.bug, as that NG is gated to the mailing
list (address@hidden - or whatever).  So that should suffice to get it to
Arnold.  This is based on correspondence from Arnold in an earlier
go-around on this topic.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]