diff options
author | Anna Henningsen <anna@addaleax.net> | 2017-04-12 19:17:24 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-04-14 22:47:29 +0200 |
commit | 9d522225e7907b6cf631975b34f586984f698e33 (patch) | |
tree | 544e58031bc52a4b2658c02ba1a247f443378928 /src/node_zlib.cc | |
parent | f98db78f7756b29bd0e92c469a7fb7425f1267af (diff) | |
download | node-new-9d522225e7907b6cf631975b34f586984f698e33.tar.gz |
src: reduce number of exported symbols
Use `static` definitions and anonymous namespaces to reduce the
number of symbols that are exported from the `node` binary.
PR-URL: https://github.com/nodejs/node/pull/12366
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_zlib.cc')
-rw-r--r-- | src/node_zlib.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node_zlib.cc b/src/node_zlib.cc index 2214f1cd1e..bad7e7e82b 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -50,6 +50,8 @@ using v8::Number; using v8::Object; using v8::Value; +namespace { + enum node_zlib_mode { NONE, DEFLATE, @@ -693,6 +695,7 @@ void InitZlib(Local<Object> target, FIXED_ONE_BYTE_STRING(env->isolate(), ZLIB_VERSION)); } +} // anonymous namespace } // namespace node NODE_MODULE_CONTEXT_AWARE_BUILTIN(zlib, node::InitZlib) |