On Fri, May 16, 2025 at 08:16:24AM -0500, Eric Blake wrote:
> Since you continue to patch things as fast as I report them (now
> testing with commit a4cc0f3c):
Now testing with b686ed, you have a problem with redefining a macro as
empty if it has been undefined in the meantime:
$ echo 'changequote([,])define(a)undefine([a])define(a)' | m4p
Traceback (most recent call last):
File "/home/eblake/m4p/.venv/bin/m4p", line 8, in <module>
sys.exit(main())
~~~~^^
...
File "/home/eblake/m4p/m4p/parser.py", line 279, in add_define
self.macros[ident][-1] = defn
~~~~~~~~~~~~~~~~~~^^^^
IndexError: list assignment index out of range
--
Eric Blake, Principal Software Engineer
Red Hat, Inc.
Virtualization: qemu.org | libguestfs.org