mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +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;
|
||||
|
||||
private
|
||||
{
|
||||
import core.memory;
|
||||
import core.stdc.stdarg;
|
||||
import core.stdc.stdio;
|
||||
import core.stdc.stdlib;
|
||||
import std.algorithm;
|
||||
import std.string;
|
||||
}
|
||||
import core.stdc.stdarg; // : va_list;
|
||||
|
||||
/*********************************************
|
||||
* 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
|
||||
{
|
||||
import std.string : toStringz;
|
||||
import core.stdc.stdio : vsnprintf;
|
||||
import core.stdc.stdlib : alloca;
|
||||
|
||||
version (unittest)
|
||||
char[3] buffer = void; // trigger reallocation
|
||||
else
|
||||
|
@ -415,6 +411,7 @@ class OutBuffer
|
|||
|
||||
@safe unittest
|
||||
{
|
||||
import std.string : cmp;
|
||||
//printf("Starting OutBuffer test\n");
|
||||
|
||||
OutBuffer buf = new OutBuffer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue