diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-05-16 11:50:48 +0200 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-06-07 05:46:51 +0200 |
commit | cbc3dd997eb90d629d1b9912b7a5a40eb82343df (patch) | |
tree | 822b55186ac52c127a686d2d828c15518be20186 /src/node_api_types.h | |
parent | 75e91659887012f743aa4487d6d4ce3d765c028a (diff) | |
download | android-node-v8-cbc3dd997eb90d629d1b9912b7a5a40eb82343df.tar.gz android-node-v8-cbc3dd997eb90d629d1b9912b7a5a40eb82343df.tar.bz2 android-node-v8-cbc3dd997eb90d629d1b9912b7a5a40eb82343df.zip |
src, tools: add check for left leaning pointers
This commit adds a rule to cpplint to check that pointers in the code
base lean to the left and not right, and also fixes the violations
reported.
PR-URL: https://github.com/nodejs/node/pull/21010
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_api_types.h')
-rw-r--r-- | src/node_api_types.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/node_api_types.h b/src/node_api_types.h index 76f38802e8..f7f3ee6275 100644 --- a/src/node_api_types.h +++ b/src/node_api_types.h @@ -10,16 +10,16 @@ // JSVM API types are all opaque pointers for ABI stability // typedef undefined structs instead of void* for compile time type safety -typedef struct napi_env__ *napi_env; -typedef struct napi_value__ *napi_value; -typedef struct napi_ref__ *napi_ref; -typedef struct napi_handle_scope__ *napi_handle_scope; -typedef struct napi_escapable_handle_scope__ *napi_escapable_handle_scope; -typedef struct napi_callback_scope__ *napi_callback_scope; -typedef struct napi_callback_info__ *napi_callback_info; -typedef struct napi_async_context__ *napi_async_context; -typedef struct napi_async_work__ *napi_async_work; -typedef struct napi_deferred__ *napi_deferred; +typedef struct napi_env__* napi_env; +typedef struct napi_value__* napi_value; +typedef struct napi_ref__* napi_ref; +typedef struct napi_handle_scope__* napi_handle_scope; +typedef struct napi_escapable_handle_scope__* napi_escapable_handle_scope; +typedef struct napi_callback_scope__* napi_callback_scope; +typedef struct napi_callback_info__* napi_callback_info; +typedef struct napi_async_context__* napi_async_context; +typedef struct napi_async_work__* napi_async_work; +typedef struct napi_deferred__* napi_deferred; typedef enum { napi_default = 0, |