nasm/nasmlib
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
..
alloc.c errors: be more robust in handling unexpected fatal errors 2019-08-28 18:32:46 -07:00
alloc.h errors: be more robust in handling unexpected fatal errors 2019-08-28 18:32:46 -07:00
asprintf.c preproc: fix parsing of single-line macro arguments, cleanups 2019-08-09 02:34:21 -07:00
badenum.c Add generic perfect string hashes, use for directives 2017-04-03 00:27:07 -07:00
bsi.c Move <string.h> inclusion to compiler.h 2018-12-26 06:32:37 -08:00
crc32.c Fix warning on ; outside of function 2022-04-04 10:25:58 -05:00
crc64.c preprocessor: major cleanups; inline text into Token 2019-09-23 16:40:03 -07:00
errfile.c Remove #includes already provided by "compiler.h" 2018-12-27 12:45:44 -08:00
file.c disam: explicitly change stdin to binary mode 2020-04-22 00:09:58 +00:00
file.h nasmlib: fix stub when os_fstat() is not defined 2022-11-07 16:56:56 -08:00
filename.c Eliminate filename length restrictions, remote ofmt->filename() 2017-12-20 13:38:20 -08:00
hashtbl.c hashtbl.c: don't call nasm_free() for a null pointer 2020-06-08 19:01:05 -07:00
ilog2.c ilog2(): inline functions if practical 2017-09-27 13:34:42 -07:00
md5c.c Move <string.h> inclusion to compiler.h 2018-12-26 06:32:37 -08:00
mmap.c nasmlib/file: move memory-mapping functions out of file.c 2017-02-23 18:39:00 -08:00
nctype.c Restore the ability to have ? in identifiers, except ? itself 2018-12-14 00:57:05 -08:00
numstr.c preproc: add %map() function and radix specifiers 2023-10-15 22:43:28 -07:00
path.c path: nasm_catfile -- Fix incorrect return of filename only 2018-10-19 00:55:54 +03:00
perfhash.c phash: simplify the code generators 2020-07-10 19:26:52 -07:00
perfhash.pl phash: simplify the code generators 2020-07-10 19:26:52 -07:00
raa.c preproc: massive cleanup of smacro expansion 2019-04-25 18:00:32 -07:00
rbtree.c rbtree: add rb_search_exact() 2020-07-08 09:49:38 -07:00
readnum.c preproc: add %map() function and radix specifiers 2023-10-15 22:43:28 -07:00
realpath.c Fix some typos 2022-01-09 17:34:35 +01:00
rlimit.c BR 3392667: more reasonable limit for expression descent 2020-06-01 13:21:05 -07:00
saa.c SAA: allow seeking beyond the end of the array 2019-02-25 21:02:18 -08:00
string.c ctype: create our own ctype table 2018-11-28 14:55:58 -08:00
strlist.c BR 3392687: clang miscompiles offsetin() for uninitialized pointer 2020-06-30 09:54:01 -07:00
ver.c Add option to create reproducible output 2020-08-27 13:06:08 -07:00
zerobuf.c nasmlib: break up nasmlib.c into logical components 2016-05-25 05:43:49 -07:00