Browse Source

stream_wrap: fix compilation errors

v0.9.1-release
Ben Noordhuis 13 years ago
parent
commit
7d2e68fdbd
  1. 7
      src/stream_wrap.cc
  2. 8
      src/stream_wrap.h

7
src/stream_wrap.cc

@ -29,6 +29,7 @@
#include "req_wrap.h" #include "req_wrap.h"
#include <stdlib.h> // abort() #include <stdlib.h> // abort()
#include <limits.h> // INT_MAX
#define SLAB_SIZE (1024 * 1024) #define SLAB_SIZE (1024 * 1024)
@ -293,12 +294,6 @@ Handle<Value> StreamWrap::WriteBuffer(const Arguments& args) {
} }
enum WriteEncoding {
kAscii,
kUtf8,
kUcs2
};
template <WriteEncoding encoding> template <WriteEncoding encoding>
Handle<Value> StreamWrap::WriteStringImpl(const Arguments& args) { Handle<Value> StreamWrap::WriteStringImpl(const Arguments& args) {
HandleScope scope; HandleScope scope;

8
src/stream_wrap.h

@ -28,6 +28,14 @@
namespace node { namespace node {
enum WriteEncoding {
kAscii,
kUtf8,
kUcs2
};
class StreamWrap : public HandleWrap { class StreamWrap : public HandleWrap {
public: public:
uv_stream_t* GetStream() { return stream_; } uv_stream_t* GetStream() { return stream_; }

Loading…
Cancel
Save