aboutsummaryrefslogtreecommitdiff
path: root/libphobos/src/std/outbuffer.d
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2025-01-05 14:56:59 +0100
committerIain Buclaw <ibuclaw@gdcproject.org>2025-01-10 22:09:00 +0100
commit89629b271827357f81f6f8c7cf28f59919519864 (patch)
treebc6ae2e8d764a128cd9501b30ad96ce7e6360e85 /libphobos/src/std/outbuffer.d
parentc9353e0fcd0ddc0d48ae8a2b0518f0f82670d708 (diff)
downloadgcc-89629b271827357f81f6f8c7cf28f59919519864.zip
gcc-89629b271827357f81f6f8c7cf28f59919519864.tar.gz
gcc-89629b271827357f81f6f8c7cf28f59919519864.tar.bz2
d: Merge dmd, druntime 34875cd6e1, phobos ebd24da8a
D front-end changes: - Import dmd v2.110.0-beta.1. - `ref' can now be applied to local, static, extern, and global variables. D runtime changes: - Import druntime v2.110.0-beta.1. Phobos changes: - Import phobos v2.110.0-beta.1. gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd 34875cd6e1. * dmd/VERSION: Bump version to v2.110.0-beta.1. * Make-lang.in (D_FRONTEND_OBJS): Add d/deps.o, d/timetrace.o. * decl.cc (class DeclVisitor): Update for new front-end interface. * expr.cc (class ExprVisitor): Likewise * typeinfo.cc (check_typeinfo_type): Likewise. libphobos/ChangeLog: * libdruntime/MERGE: Merge upstream druntime 34875cd6e1. * src/MERGE: Merge upstream phobos ebd24da8a.
Diffstat (limited to 'libphobos/src/std/outbuffer.d')
-rw-r--r--libphobos/src/std/outbuffer.d9
1 files changed, 5 insertions, 4 deletions
diff --git a/libphobos/src/std/outbuffer.d b/libphobos/src/std/outbuffer.d
index 92af9a9..f6d4ba8 100644
--- a/libphobos/src/std/outbuffer.d
+++ b/libphobos/src/std/outbuffer.d
@@ -22,9 +22,10 @@ import std.traits : isSomeString;
* OutBuffer's byte order is the format native to the computer.
* To control the byte order (endianness), use a class derived
* from OutBuffer.
+ *
* OutBuffer's internal buffer is allocated with the GC. Pointers
* stored into the buffer are scanned by the GC, but you have to
- * ensure proper alignment, e.g. by using alignSize((void*).sizeof).
+ * ensure proper alignment, e.g. by using `alignSize((void*).sizeof)`.
*/
class OutBuffer
@@ -297,7 +298,7 @@ class OutBuffer
* Append output of C's vprintf() to internal buffer.
*/
- void vprintf(scope string format, va_list args) @trusted nothrow
+ void vprintf(scope string format, va_list args) @system nothrow
{
import core.stdc.stdio : vsnprintf;
import core.stdc.stdlib : alloca;
@@ -342,7 +343,7 @@ class OutBuffer
* Append output of C's printf() to internal buffer.
*/
- void printf(scope string format, ...) @trusted
+ void printf(scope string format, ...) @system
{
va_list ap;
va_start(ap, format);
@@ -475,7 +476,7 @@ class OutBuffer
buf.write("hello");
buf.write(cast(byte) 0x20);
buf.write("world");
- buf.printf(" %d", 62665);
+ buf.writef(" %d", 62665);
assert(cmp(buf.toString(), "hello world 62665") == 0);
buf.clear();