]> git.eshelyaron.com Git - emacs.git/commit
Port varargs macros better to C99
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 28 Jun 2025 06:53:32 +0000 (23:53 -0700)
committerEshel Yaron <me@eshelyaron.com>
Wed, 23 Jul 2025 20:06:53 +0000 (22:06 +0200)
commit4ee91372479c8f9af4137dd31d99f9ff18a69c1a
treeabb001d9cb95258333ac2d6dd4d1a55c47718e57
parent67c24c9ae933c1ea19a90162eddeb4f22dd1621e
Port varargs macros better to C99

C99 prohibits passing zero args to macro’s ‘...’.
* lib-src/seccomp-filter.c (RULE0): New macro, which is like RULE
except with zero args.  All zero-arg uses of RULE changed to RULE0.
* src/comp.c (compile_function, Fcomp__init_ctxt, syms_of_comp):
Change ‘CALLN (Fmake_hash_table)’ to ‘Fmake_hash_table (0, NULL)’,
since CALLN requires at least two args in C99.

(cherry picked from commit dd1efa5309d82139c6637e21ebd9eeb55e1814c1)
lib-src/seccomp-filter.c
src/comp.c