Merge branch 'cc65:master' into master

This commit is contained in:
Rutger van Bergen
2022-12-26 13:57:10 +01:00
committed by GitHub
335 changed files with 7282 additions and 3585 deletions

View File

@@ -44,14 +44,20 @@
#if defined(__GNUC__)
# define attribute(a) __attribute__(a)
#ifdef __clang__
# define attribute(a) __attribute__(a)
# define ATTR_UNUSED(x) __attribute__((__unused__)) x
# define ATTR_NORETURN __attribute__((analyzer_noreturn))
#elif defined(__GNUC__)
# define attribute(a) __attribute__(a)
# define ATTR_UNUSED(x) __attribute__((__unused__)) x
# define ATTR_NORETURN __attribute__((noreturn))
#else
# define attribute(a)
# define ATTR_UNUSED(x) x
# define ATTR_NORETURN
#endif
/* End of attrib.h */
#endif

View File

@@ -486,6 +486,18 @@ int xvsnprintf (char* Buf, size_t Size, const char* Format, va_list ap)
}
break;
/* support the MSVC specific I64 for long long */
case 'I':
F = *Format++;
if (F == '6') {
F = *Format++;
if (F == '4') {
F = *Format++;
P.LengthMod = lmLongLong;
}
}
break;
case 'l':
F = *Format++;
if (F == 'l') {