mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
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:
parent
86c6b34bd3
commit
1c3d3dc554
2 changed files with 40 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue