summaryrefslogtreecommitdiff
path: root/hhvm/streams.cpp
blob: de327e20a0770fd6151c3786dc7f840c688ed294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
 *  Streams.cpp
 *
 *  Implementation of the streams
 *
 *  @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
 *  @copyright 2014 Copernica BV
 */
#include "includes.h"

/**
 *  Set up namespace
 */
namespace Php {

/**
 *  Some static buffers for writing data
 *  @var StreamBuf
 */
// @todo find the right constants
static StreamBuf bufOut         (0);
static StreamBuf bufError       (0); //E_ERROR);
static StreamBuf bufWarning     (0); //E_WARNING);
static StreamBuf bufNotice      (0); //E_NOTICE);
static StreamBuf bufDeprecated  (0); //E_DEPRECATED);

/**
 *  Create the actual steams
 *  @var std::ostream
 */
std::ostream out        (&bufOut);
std::ostream error      (&bufError);
std::ostream warning    (&bufWarning);
std::ostream notice     (&bufNotice);
std::ostream deprecated (&bufDeprecated);

/**
 *  End namespace
 */
}