Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
stream_wrap: fix compilation errors
  • Loading branch information
bnoordhuis committed May 9, 2012
1 parent b673d06 commit 7d2e68f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 1 addition & 6 deletions src/stream_wrap.cc
Expand Up @@ -29,6 +29,7 @@
#include "req_wrap.h"

#include <stdlib.h> // abort()
#include <limits.h> // INT_MAX

#define SLAB_SIZE (1024 * 1024)

Expand Down Expand Up @@ -293,12 +294,6 @@ Handle<Value> StreamWrap::WriteBuffer(const Arguments& args) {
}


enum WriteEncoding {
kAscii,
kUtf8,
kUcs2
};

template <WriteEncoding encoding>
Handle<Value> StreamWrap::WriteStringImpl(const Arguments& args) {
HandleScope scope;
Expand Down
8 changes: 8 additions & 0 deletions src/stream_wrap.h
Expand Up @@ -28,6 +28,14 @@

namespace node {


enum WriteEncoding {
kAscii,
kUtf8,
kUcs2
};


class StreamWrap : public HandleWrap {
public:
uv_stream_t* GetStream() { return stream_; }
Expand Down

0 comments on commit 7d2e68f

Please sign in to comment.