diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-07 08:20:09 +0200 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-07 08:20:09 +0200 |
commit | bfab72e50fe8b94bd3a7dbcf63114002008575ea (patch) | |
tree | c3bcb603a500f4f42e694514f7fba86570024390 /hhvm/streams.cpp | |
parent | 6d05c17a8d00075f1578094163237c43128e1df9 (diff) |
very simple non-working implementation of streambufs for hhvm
Diffstat (limited to 'hhvm/streams.cpp')
-rw-r--r-- | hhvm/streams.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/hhvm/streams.cpp b/hhvm/streams.cpp new file mode 100644 index 0000000..de327e2 --- /dev/null +++ b/hhvm/streams.cpp @@ -0,0 +1,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 + */ +} + |