nasm/include
H. Peter Anvin (Intel) ff7a315acb nasmlib: move filename_set_extension() into path.c
Move filename_set_extension() into path.c, so it has access to the
filesystem-specific character constants. This prevents something like:

	nasm-code.d/foobar

... from getting truncated to ...

	nasm-code.bin

... instead of producing ...

	nasm-code.d/foobar.bin

Make the extension character (normally '.') configurable; this MIGHT
be usable on RISCOS at some point, although it is not entirely clear
that trying to make sense of RISCOS paths actually is meaningful,
because RISCOS compiler chains seem to do all kinds of path
translation magic trying to behave like other operating systems... it
might simply be more trouble than it is worth, especially for a
non-x86 platform.

As a side bonus, this removes the only use of strrchrnul(), so that
function can be dropped.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-12-15 09:58:42 -08:00
..
bytesex.h bytesex.h: fix typo in le32toh function name 2025-10-04 15:54:49 -07:00
compiler.h nasmlib: move filename_set_extension() into path.c 2025-12-15 09:58:42 -08:00
dbginfo.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
disp8.h fix a displacement offset calculation error for movddup 2025-10-07 14:35:45 +08:00
error.h error: factor out error functions into separate files 2025-11-07 14:42:33 -08:00
hashtbl.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
iflag.h WIP: more matching and template work 2024-08-20 12:59:07 -07:00
ilog2.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
insns.h ndisasm: make the assembler (hopefully) work again 2025-08-30 16:16:43 -07:00
labels.h labels: make the prefix/suffix options and pragmas consistent 2025-10-07 18:46:39 -07:00
macros.h portability: "const macros_t" is redundant 2025-10-01 13:55:38 -07:00
md5.h Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
nasm.h error: factor out error functions into separate files 2025-11-07 14:42:33 -08:00
nasmint.h nasmint.h: change header guards to NASM_NASMINT_H 2016-10-04 18:11:57 -07:00
nasmlib.h nasmlib.h: protect list_last() macro against misuse 2025-10-06 14:27:30 -07:00
nctype.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
opflags.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
perfhash.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
raa.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
rbtree.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
rdoff.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
saa.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
strlist.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
tables.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
ver.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00