Kuba (Brecka) Mracek
bc1647a6dc
Use vsnprintf instead of vsprintf in Portability.h ( #39366 )
2021-09-19 14:47:40 -07:00
Kuba (Brecka) Mracek
1142f613f8
(v)asprintf is supposed to set the returned pointer to NULL if printing fails, let's fix that in swift_vasprintf ( #39338 )
2021-09-16 19:18:55 -07:00
Kuba (Brecka) Mracek
de015c6464
Unify asprintf/vasprintf implementations and make them truly portable by using vsnprintf ( #39314 )
2021-09-15 21:09:03 -07:00
Mike Ash
c673c13548
[Runtime] #ifdef __clang__ on printf __attribute__ in Portability.h
2021-01-22 19:36:28 -05:00
Mike Ash
216e555ad6
[Runtime] Mark swift_asprintf with __attribute__((__format__))
...
This gives us build-time warnings about format string mistakes, like we would get if we called the built-in asprintf directly.
Make TypeLookupError's format string constructor a macro instead so that its callers can get these build-time warnings.
This reveals various mistakes in format strings and arguments in the runtime, which are now fixed.
rdar://73417805
2021-01-22 10:54:45 -05:00
Mike Ash
fd6922f92d
Add error reporting when looking up types by demangled name.
2020-08-28 14:43:51 -04:00
Pavel Yaskevich
ab2ac2551c
[Runtime] NFC: Switch Portability to use C++ stddef header
2018-06-11 17:21:15 -07:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
practicalswift
0927538208
[gardening] Fix file header formatting.
2016-04-14 22:26:44 +02:00
Anna Zaks
eac72f078c
[runtime] Add implementation of _swift_strlcpy
...
This safer function is missing on Linux.
2016-04-14 11:01:57 -07:00