Commit a5bfde3
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- lib/node_modules/@stdlib
- math/base
- napi
- binary/include/stdlib/math/base/napi/binary
- quaternary/include/stdlib/math/base/napi/quaternary
- quinary/include/stdlib/math/base/napi/quinary
- ternary/include/stdlib/math/base/napi/ternary
- unary/include/stdlib/math/base/napi/unary
- special/erfcx/src
- ndarray/base/napi/unary/include/stdlib/ndarray/base/napi
- stats/base/dists
- arcsine/median/src
- binomial
- kurtosis/src
- mean/src
- median/src
- mgf/src
- mode/src
- skewness/src
- stdev/src
- variance/src
- planck/mean/src
- strided/napi
- binary/include/stdlib/strided/napi
- dmap2/include/stdlib/strided/napi
- dmskmap2/include/stdlib/strided/napi
- dmskmap/include/stdlib/strided/napi
- mskunary/include/stdlib/strided/napi
- nullary/include/stdlib/strided/napi
- smap2/include/stdlib/strided/napi
- smskmap2/include/stdlib/strided/napi
- smskmap/include/stdlib/strided/napi
- unary/include/stdlib/strided/napi
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 changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments