summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-08-25 01:41:02 +0200
committerAnna Henningsen <anna@addaleax.net>2018-09-02 17:37:54 +0200
commitf911e09ab435f5ab8a8e50a6d59aa9a01923058d (patch)
tree209bc8006873c1733f4229f63f4a831d70993348 /src
parent37cd10a1165537d25cd73454ffa81a4e964a56f7 (diff)
downloadandroid-node-v8-f911e09ab435f5ab8a8e50a6d59aa9a01923058d.tar.gz
android-node-v8-f911e09ab435f5ab8a8e50a6d59aa9a01923058d.tar.bz2
android-node-v8-f911e09ab435f5ab8a8e50a6d59aa9a01923058d.zip
src: deprecate option variables in public API
These variables should never have been exposed as part of the public API, and certainly not as variables. Using CLI options parser is the right thing to do here, at least until we expose some part of the options parser API publicly (which should be possible to do now). PR-URL: https://github.com/nodejs/node/pull/22515 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src')
-rw-r--r--src/node.h15
-rw-r--r--src/node_buffer.h5
2 files changed, 12 insertions, 8 deletions
diff --git a/src/node.h b/src/node.h
index 74403a6e48..3616bbf437 100644
--- a/src/node.h
+++ b/src/node.h
@@ -199,14 +199,17 @@ typedef intptr_t ssize_t;
namespace node {
-// TODO(addaleax): Deprecate and remove all of these ASAP. They have been
-// made effectively non-functional anyway.
-NODE_EXTERN extern bool no_deprecation;
+// TODO(addaleax): Remove all of these.
+NODE_DEPRECATED("use command-line flags",
+ NODE_EXTERN extern bool no_deprecation);
#if HAVE_OPENSSL
-NODE_EXTERN extern bool ssl_openssl_cert_store;
+NODE_DEPRECATED("use command-line flags",
+ NODE_EXTERN extern bool ssl_openssl_cert_store);
# if NODE_FIPS_MODE
-NODE_EXTERN extern bool enable_fips_crypto;
-NODE_EXTERN extern bool force_fips_crypto;
+NODE_DEPRECATED("use command-line flags",
+ NODE_EXTERN extern bool enable_fips_crypto);
+NODE_DEPRECATED("user command-line flags",
+ NODE_EXTERN extern bool force_fips_crypto);
# endif
#endif
diff --git a/src/node_buffer.h b/src/node_buffer.h
index e8d306e7dd..c1e3b85948 100644
--- a/src/node_buffer.h
+++ b/src/node_buffer.h
@@ -27,8 +27,9 @@
namespace node {
-// TODO(addaleax): Deprecate and remove this ASAP.
-extern bool zero_fill_all_buffers;
+// TODO(addaleax): Remove this.
+NODE_DEPRECATED("use command-line flags",
+ extern bool zero_fill_all_buffers);
namespace Buffer {