nasmlib: add path name comparison function

Add nasm_compare_paths(). At this point, the only effect is wide
character/case insensitivity canonicalization on Windows, but in the
future it might be doing things like comparing st_dev:st_inode pairs
on Unix or compare nasm_realpath().

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel) 2026-07-06 16:57:38 -07:00
parent 86c6b34bd3
commit 1c3d3dc554
2 changed files with 40 additions and 0 deletions

View file

@ -527,6 +527,9 @@ void nasm_set_binary_mode(FILE *f);
/* Probe for existence of a file */
bool nasm_file_exists(const char *filename);
/* Compare two pathnames */
int nasm_compare_paths(const char *a, const char *b);
/* Missing fseeko/ftello */
#ifndef HAVE_FSEEKO
# undef off_t /* Just in case it is a macro */