nasm/include
H. Peter Anvin 34eefd3803 preproc: add %map() function and radix specifiers
Add the %map() function which can apply arguments to a macro from a
list.

Allow the user to specify the desired radix for an evaluated
parameter. It doesn't make any direct difference, but can be nice for
debugging or turning into strings.

As part of this, split expand_one_smacro() into two parts: parameter
parsing and macro expansion. This is a very straightforward splitting
of two mostly unrelated pieces of functionality.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2023-10-15 22:43:28 -07:00
..
bytesex.h bytesex.h: more simplifications and add const 2017-11-29 17:19:27 -08:00
compiler.h compiler.h: add missing new #include "autoconf/attributes.h" 2023-10-11 12:06:18 -07:00
dbginfo.h debug: collect macro information for the debug backend 2020-07-08 09:28:44 -07:00
disp8.h Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
error.h error: macro to bypass disabled warning generation 2023-10-11 13:35:58 -07:00
hashtbl.h output/coff: Support for COMDAT sections 2021-12-17 23:45:25 +03:00
iflag.h insns: handle late-introduced VEX encoded instructions 2022-12-06 13:38:33 -08:00
ilog2.h Remove #includes already provided by "compiler.h" 2018-12-27 12:45:44 -08:00
insns.h Merge tag 'nasm-2.13.03' 2018-02-07 13:51:54 -08:00
labels.h Change LBL_NONE to LBL_none 2019-09-12 20:26:23 -04:00
md5.h Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
nasm.h BR 3392906: error out on bad syntax "db 1 2" 2023-10-11 12:06:58 -07:00
nasmint.h nasmint.h: change header guards to NASM_NASMINT_H 2016-10-04 18:11:57 -07:00
nasmlib.h preproc: add %map() function and radix specifiers 2023-10-15 22:43:28 -07:00
nctype.h Restore the ability to have ? in identifiers, except ? itself 2018-12-14 00:57:05 -08:00
opflags.h Fix some typos 2022-01-09 17:34:35 +01:00
perfhash.h Add generic perfect string hashes, use for directives 2017-04-03 00:27:07 -07:00
raa.h RAA: make pointer vs integer RAAs type safe 2018-06-18 17:11:54 -07:00
rbtree.h rbtree: add rb_search_exact() 2020-07-08 09:51:30 -07:00
rdoff.h rdoff: use nasm-provided safe memory allocation and I/O 2017-04-17 13:56:50 -07:00
saa.h saa, raa: saa_init() and raa_init() will never return NULL 2017-04-23 23:37:11 -07:00
strlist.h Add [v]printf_func() attributes where appropriate 2020-07-30 17:30:20 -07:00
tables.h macros: can't use the __USE_*__ macro string anymore; fix comment stripping 2019-08-15 11:53:19 -07:00
ver.h Add option to create reproducible output 2020-08-27 13:06:08 -07:00