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

Commit

Permalink
Export some functions from node.h
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Oct 28, 2011
1 parent 0937e20 commit 65f4ac6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/node.h
Expand Up @@ -121,7 +121,7 @@ do { \
enum encoding {ASCII, UTF8, BASE64, UCS2, BINARY, HEX};
enum encoding ParseEncoding(v8::Handle<v8::Value> encoding_v,
enum encoding _default = BINARY);
void FatalException(v8::TryCatch &try_catch);
NODE_EXTERN void FatalException(v8::TryCatch &try_catch);
void DisplayExceptionLine(v8::TryCatch &try_catch); // hack

v8::Local<v8::Value> Encode(const void *buf, size_t len,
Expand Down Expand Up @@ -183,10 +183,10 @@ static inline void cb_destroy(v8::Persistent<v8::Function> * cb) {
delete cb;
}

v8::Local<v8::Value> ErrnoException(int errorno,
const char *syscall = NULL,
const char *msg = "",
const char *path = NULL);
NODE_EXTERN v8::Local<v8::Value> ErrnoException(int errorno,
const char *syscall = NULL,
const char *msg = "",
const char *path = NULL);

const char *signo_string(int errorno);

Expand Down Expand Up @@ -232,11 +232,11 @@ node_module_struct* get_builtin_module(const char *name);
#define NODE_MODULE_DECL(modname) \
extern "C" node::node_module_struct modname ## _module;

void SetErrno(uv_err_t err);
void MakeCallback(v8::Handle<v8::Object> object,
const char* method,
int argc,
v8::Handle<v8::Value> argv[]);
NODE_EXTERN void SetErrno(uv_err_t err);
NODE_EXTERN void MakeCallback(v8::Handle<v8::Object> object,
const char* method,
int argc,
v8::Handle<v8::Value> argv[]);

} // namespace node
#endif // SRC_NODE_H_

0 comments on commit 65f4ac6

Please sign in to comment.