[med-svn] [libundead] 01/05: New upstream version 1.0.9
Andreas Tille
tille at debian.org
Thu Dec 14 07:22:29 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository libundead.
commit 0de0f2b777e7fa1a14e38f49d9ff46108def6fc3
Author: Andreas Tille <tille at debian.org>
Date: Thu Dec 14 08:11:39 2017 +0100
New upstream version 1.0.9
---
.travis.yml | 3 +++
src/undead/doformat.d | 6 ------
src/undead/stream.d | 5 +++--
src/undead/utf.d | 21 +++++++++++++++++++++
4 files changed, 27 insertions(+), 8 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index afb0f50..6c1973b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,6 +6,9 @@ os:
d:
- dmd
+ - dmd-beta
+ - dmd-nightly
- ldc
+ - ldc-beta
sudo: false
diff --git a/src/undead/doformat.d b/src/undead/doformat.d
index 5e10369..7705982 100644
--- a/src/undead/doformat.d
+++ b/src/undead/doformat.d
@@ -930,12 +930,6 @@ void doFormat()(scope void delegate(dchar) putc, TypeInfo[] arguments, va_list a
}
assert(0);
- case Mangle.Ttypedef:
- ti = (cast(TypeInfo_Typedef)ti).base;
- m = cast(Mangle)typeid(ti).name[9];
- formatArg(fc);
- return;
-
case Mangle.Tenum:
ti = (cast(TypeInfo_Enum)ti).base;
m = cast(Mangle)typeid(ti).name[9];
diff --git a/src/undead/stream.d b/src/undead/stream.d
index efce2a7..782f74d 100644
--- a/src/undead/stream.d
+++ b/src/undead/stream.d
@@ -81,6 +81,7 @@ private {
//import std.format;
import std.system; // for Endian enumeration
import std.utf;
+ import undead.utf;
import core.bitop; // for bswap
import core.vararg;
static import std.file;
@@ -393,7 +394,7 @@ class Stream : InputStream, OutputStream {
// stream abilities
bool readable = false; /// Indicates whether this stream can be read from.
bool writeable = false; /// Indicates whether this stream can be written to.
- bool seekable = false; /// Indicates whether this stream can be seeked within.
+ bool seekable = false; /// Indicates whether this stream can be sought within.
protected bool isopen = true; /// Indicates whether this stream is open.
protected bool readEOF = false; /** Indicates whether this stream is at eof
@@ -1213,7 +1214,7 @@ class Stream : InputStream, OutputStream {
private void doFormatCallback(dchar c) {
char[4] buf;
- auto b = std.utf.toUTF8(buf, c);
+ auto b = undead.utf.toUTF8(buf, c);
writeString(b);
}
diff --git a/src/undead/utf.d b/src/undead/utf.d
new file mode 100644
index 0000000..c407101
--- /dev/null
+++ b/src/undead/utf.d
@@ -0,0 +1,21 @@
+/**
+ * Contains the obsolete functions from Phobos' `std.utf`.
+ */
+module undead.utf;
+
+import std.utf;
+import std.typecons;
+
+//deprecated("Removed October 2017. Please use std.utf.encode instead.")
+char[] toUTF8(return out char[4] buf, dchar c) nothrow @nogc @safe pure
+{
+ const sz = encode!(Yes.useReplacementDchar)(buf, c);
+ return buf[0 .. sz];
+}
+
+//deprecated("Removed October 2017. Please use std.utf.encode instead.")
+wchar[] toUTF16(return ref wchar[2] buf, dchar c) nothrow @nogc @safe pure
+{
+ const sz = encode!(Yes.useReplacementDchar)(buf, c);
+ return buf[0 .. sz];
+}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libundead.git
More information about the debian-med-commit
mailing list