Skip to content

Commit a5bfde3

Browse files
committed
chore: remove errant trailing semicolons after NAPI module macros
Remove trailing semicolons from NAPI module registration macro invocations in addon.c files and fix the corresponding @example blocks in header files to match the established codebase convention. The macros (e.g., STDLIB_MATH_BASE_NAPI_MODULE_D_D) expand to complete function definitions ending with NAPI_MODULE(), so a trailing semicolon is unnecessary. While functionally harmless, 11 addon.c files had semicolons inconsistent with the other ~783 files. The root cause was that the header @example documentation itself showed the semicolons, so this commit also fixes 68 header files to prevent recurrence.
1 parent 8427c6a commit a5bfde3

File tree

79 files changed

+79
-79
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+79
-79
lines changed

lib/node_modules/@stdlib/math/base/napi/binary/include/stdlib/math/base/napi/binary/bb_b.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* // ...
3939
*
4040
* // Register a Node-API module:
41-
* STDLIB_MATH_BASE_NAPI_MODULE_BB_B( add );
41+
* STDLIB_MATH_BASE_NAPI_MODULE_BB_B( add )
4242
*/
4343
#define STDLIB_MATH_BASE_NAPI_MODULE_BB_B( fcn ) \
4444
static napi_value stdlib_math_base_napi_bb_b_wrapper( \

lib/node_modules/@stdlib/math/base/napi/binary/include/stdlib/math/base/napi/binary/cc_c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
* // ...
5353
*
5454
* // Register a Node-API module:
55-
* STDLIB_MATH_BASE_NAPI_MODULE_CC_C( add );
55+
* STDLIB_MATH_BASE_NAPI_MODULE_CC_C( add )
5656
*/
5757
#define STDLIB_MATH_BASE_NAPI_MODULE_CC_C( fcn ) \
5858
static napi_value stdlib_math_base_napi_cc_c_wrapper( \

lib/node_modules/@stdlib/math/base/napi/binary/include/stdlib/math/base/napi/binary/cf_c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* // ...
4444
*
4545
* // Register a Node-API module:
46-
* STDLIB_MATH_BASE_NAPI_MODULE_CF_C( mul );
46+
* STDLIB_MATH_BASE_NAPI_MODULE_CF_C( mul )
4747
*/
4848
#define STDLIB_MATH_BASE_NAPI_MODULE_CF_C( fcn ) \
4949
static napi_value stdlib_math_base_napi_cf_c_wrapper( \

lib/node_modules/@stdlib/math/base/napi/binary/include/stdlib/math/base/napi/binary/ci_c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* // ...
4646
*
4747
* // Register a Node-API module:
48-
* STDLIB_MATH_BASE_NAPI_MODULE_CI_C( mul );
48+
* STDLIB_MATH_BASE_NAPI_MODULE_CI_C( mul )
4949
*/
5050
#define STDLIB_MATH_BASE_NAPI_MODULE_CI_C( fcn ) \
5151
static napi_value stdlib_math_base_napi_ci_c_wrapper( \

lib/node_modules/@stdlib/math/base/napi/binary/include/stdlib/math/base/napi/binary/dd_d.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* // ...
3636
*
3737
* // Register a Node-API module:
38-
* STDLIB_MATH_BASE_NAPI_MODULE_DD_D( add );
38+
* STDLIB_MATH_BASE_NAPI_MODULE_DD_D( add )
3939
*/
4040
#define STDLIB_MATH_BASE_NAPI_MODULE_DD_D( fcn ) \
4141
static napi_value stdlib_math_base_napi_dd_d_wrapper( \

lib/node_modules/@stdlib/math/base/napi/binary/include/stdlib/math/base/napi/binary/di_d.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* // ...
3939
*
4040
* // Register a Node-API module:
41-
* STDLIB_MATH_BASE_NAPI_MODULE_DI_D( mul );
41+
* STDLIB_MATH_BASE_NAPI_MODULE_DI_D( mul )
4242
*/
4343
#define STDLIB_MATH_BASE_NAPI_MODULE_DI_D( fcn ) \
4444
static napi_value stdlib_math_base_napi_di_d_wrapper( \

lib/node_modules/@stdlib/math/base/napi/binary/include/stdlib/math/base/napi/binary/dz_z.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* // ...
4444
*
4545
* // Register a Node-API module:
46-
* STDLIB_MATH_BASE_NAPI_MODULE_DZ_Z( mul );
46+
* STDLIB_MATH_BASE_NAPI_MODULE_DZ_Z( mul )
4747
*/
4848
#define STDLIB_MATH_BASE_NAPI_MODULE_DZ_Z( fcn ) \
4949
static napi_value stdlib_math_base_napi_dz_z_wrapper( \

lib/node_modules/@stdlib/math/base/napi/binary/include/stdlib/math/base/napi/binary/fc_c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* // ...
4444
*
4545
* // Register a Node-API module:
46-
* STDLIB_MATH_BASE_NAPI_MODULE_FC_C( mul );
46+
* STDLIB_MATH_BASE_NAPI_MODULE_FC_C( mul )
4747
*/
4848
#define STDLIB_MATH_BASE_NAPI_MODULE_FC_C( fcn ) \
4949
static napi_value stdlib_math_base_napi_fc_c_wrapper( \

lib/node_modules/@stdlib/math/base/napi/binary/include/stdlib/math/base/napi/binary/ff_f.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* // ...
3636
*
3737
* // Register a Node-API module:
38-
* STDLIB_MATH_BASE_NAPI_MODULE_FF_F( addf );
38+
* STDLIB_MATH_BASE_NAPI_MODULE_FF_F( addf )
3939
*/
4040
#define STDLIB_MATH_BASE_NAPI_MODULE_FF_F( fcn ) \
4141
static napi_value stdlib_math_base_napi_ff_f_wrapper( \

lib/node_modules/@stdlib/math/base/napi/binary/include/stdlib/math/base/napi/binary/fi_f.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* // ...
3939
*
4040
* // Register a Node-API module:
41-
* STDLIB_MATH_BASE_NAPI_MODULE_FI_F( mulf );
41+
* STDLIB_MATH_BASE_NAPI_MODULE_FI_F( mulf )
4242
*/
4343
#define STDLIB_MATH_BASE_NAPI_MODULE_FI_F( fcn ) \
4444
static napi_value stdlib_math_base_napi_fi_f_wrapper( \

0 commit comments

Comments
 (0)