stream_base: remove static JSMethod declarations
authorFedor Indutny <fedor@indutny.com>
Wed, 25 Feb 2015 17:43:14 +0000 (20:43 +0300)
committerRod Vagg <rod@vagg.org>
Wed, 25 Feb 2015 20:21:34 +0000 (14:21 -0600)
commit89e133a1d8a3bfd655d5ae4f6b7071a1bbbcdc71
tree52c64eb74a516c135b5b608c5020c8b1e03b28e3
parenta558cd0a619a74dd69e212c79a909b8654942db2
stream_base: remove static JSMethod declarations

Move JS methods to the stream_base-inl.h and thus define them on each
use of `StreamBase::AddMethods`. Inline `AddMethods` itself, so that
there won't be any need in a static declaration in stream_base.cc.

NOTE: This basically allows using this API in user-land, though, some
polishing is required before releasing it.

PR-URL: https://github.com/iojs/io.js/pull/957
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
node.gyp
src/js_stream.cc
src/stream_base-inl.h [new file with mode: 0644]
src/stream_base.cc
src/stream_base.h
src/stream_wrap.cc
src/tls_wrap.cc