mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 14:19:18 +02:00
s/strcmp/strncmp for abi compatibility checks
This commit is contained in:
parent
3ee50bd0d7
commit
90ba17a21a
1 changed files with 1 additions and 1 deletions
|
@ -760,4 +760,4 @@ typedef char sexp_abi_identifier_t[8];
|
||||||
SEXP_ABI_MODULES SEXP_ABI_NUMBERS SEXP_ABI_STRINGS SEXP_ABI_SYMS)
|
SEXP_ABI_MODULES SEXP_ABI_NUMBERS SEXP_ABI_STRINGS SEXP_ABI_SYMS)
|
||||||
|
|
||||||
#define sexp_version_compatible(ctx, subver, genver) (strcmp((subver), (genver)) == 0)
|
#define sexp_version_compatible(ctx, subver, genver) (strcmp((subver), (genver)) == 0)
|
||||||
#define sexp_abi_compatible(ctx, subabi, genabi) (strcmp((subabi), (genabi)) == 0)
|
#define sexp_abi_compatible(ctx, subabi, genabi) (strncmp((subabi), (genabi), sizeof(sexp_abi_identifier_t)) == 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue