]> granicus.if.org Git - strace/commit
defs.h: introduce {opt,dispatch}_{word,klong}size
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 15 Jul 2019 23:56:46 +0000 (01:56 +0200)
committerEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 8 Sep 2019 23:12:26 +0000 (00:12 +0100)
commitc892269efb92e8aed4f16f8d162e4d6b3ad2a1f9
treec009e9ac07b313211838cc9da48d785befdb9cb5
parentd969e54109dae38e49fceaf576587007011cfecd
defs.h: introduce {opt,dispatch}_{word,klong}size

* defs.h (set_personality, current_personality, current_wordsize,
current_klongsize, max_addr, max_kaddr): Move upwards.
(opt_wordsize): New macro, calls the first or the second argument
depending on the word size.
(dispatch_wordsize): New macro, calls the first or the second function
with the rest of macro parameters as arguments depending on the word
size.
(opt_klongsize): New macro, calls the first or the second argument
depending on the kernel long size.
(dispatch_klongsize): New macro, calls the first or the second function
with the rest of macro parameters as arguments depending on the kernel
long size.
defs.h