mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
Remove package several global imports from std.outbuffer
This commit is contained in:
parent
71bbe18a2e
commit
bc969d22db
1 changed files with 6 additions and 9 deletions
|
@ -10,15 +10,7 @@ Serialize data to $(D ubyte) arrays.
|
||||||
*/
|
*/
|
||||||
module std.outbuffer;
|
module std.outbuffer;
|
||||||
|
|
||||||
private
|
import core.stdc.stdarg; // : va_list;
|
||||||
{
|
|
||||||
import core.memory;
|
|
||||||
import core.stdc.stdarg;
|
|
||||||
import core.stdc.stdio;
|
|
||||||
import core.stdc.stdlib;
|
|
||||||
import std.algorithm;
|
|
||||||
import std.string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*********************************************
|
/*********************************************
|
||||||
* OutBuffer provides a way to build up an array of bytes out
|
* OutBuffer provides a way to build up an array of bytes out
|
||||||
|
@ -257,6 +249,10 @@ class OutBuffer
|
||||||
|
|
||||||
void vprintf(string format, va_list args) @trusted nothrow
|
void vprintf(string format, va_list args) @trusted nothrow
|
||||||
{
|
{
|
||||||
|
import std.string : toStringz;
|
||||||
|
import core.stdc.stdio : vsnprintf;
|
||||||
|
import core.stdc.stdlib : alloca;
|
||||||
|
|
||||||
version (unittest)
|
version (unittest)
|
||||||
char[3] buffer = void; // trigger reallocation
|
char[3] buffer = void; // trigger reallocation
|
||||||
else
|
else
|
||||||
|
@ -415,6 +411,7 @@ class OutBuffer
|
||||||
|
|
||||||
@safe unittest
|
@safe unittest
|
||||||
{
|
{
|
||||||
|
import std.string : cmp;
|
||||||
//printf("Starting OutBuffer test\n");
|
//printf("Starting OutBuffer test\n");
|
||||||
|
|
||||||
OutBuffer buf = new OutBuffer();
|
OutBuffer buf = new OutBuffer();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue