Skip to content

Commit 28e1c84

Browse files
committed
docs: resolve C lint errors
1 parent 90c94f9 commit 28e1c84

File tree

700 files changed

+802
-814
lines changed

Some content is hidden

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

700 files changed

+802
-814
lines changed

lib/node_modules/@stdlib/_tools/scaffold/math-strided-real-typed-mskunary/data/README__md.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -258,21 +258,21 @@ void stdlib_strided_{{ALIAS_SNAKECASE}}( const int64_t N, const {{C_TYPE}} *X, c
258258

259259
int main( void ) {
260260
// Create an input strided array:
261-
{{C_TYPE}} X[] = { {{C_X_VALUES_LEN_8}} };
261+
const {{C_TYPE}} X[] = { {{C_X_VALUES_LEN_8}} };
262262

263263
// Create a mask strided array:
264-
uint8_t M[] = { {{C_MASK_VALUES_LEN_8}} };
264+
const uint8_t M[] = { {{C_MASK_VALUES_LEN_8}} };
265265

266266
// Create an output strided array:
267267
{{C_TYPE}} Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
268268

269269
// Specify the number of elements:
270-
int64_t N = 4;
270+
const int64_t N = 4;
271271

272272
// Specify the stride lengths:
273-
int64_t strideX = 2;
274-
int64_t strideM = 2;
275-
int64_t strideY = 2;
273+
const int64_t strideX = 2;
274+
const int64_t strideM = 2;
275+
const int64_t strideY = 2;
276276

277277
// Compute the results:
278278
stdlib_strided_{{ALIAS_SNAKECASE}}( N, X, strideX, M, strideM, Y, strideY );

lib/node_modules/@stdlib/_tools/scaffold/math-strided-real-typed-unary/data/README__md.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -235,17 +235,17 @@ void stdlib_strided_{{ALIAS_SNAKECASE}}( const int64_t N, const {{C_TYPE}} *X, c
235235

236236
int main( void ) {
237237
// Create an input strided array:
238-
{{C_TYPE}} X[] = { {{C_X_VALUES_LEN_8}} };
238+
const {{C_TYPE}} X[] = { {{C_X_VALUES_LEN_8}} };
239239

240240
// Create an output strided array:
241241
{{C_TYPE}} Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
242242

243243
// Specify the number of elements:
244-
int64_t N = 4;
244+
const int64_t N = 4;
245245

246246
// Specify the stride lengths:
247-
int64_t strideX = 2;
248-
int64_t strideY = 2;
247+
const int64_t strideX = 2;
248+
const int64_t strideY = 2;
249249

250250
// Compute the results:
251251
stdlib_strided_{{ALIAS_SNAKECASE}}( N, X, strideX, Y, strideY );

lib/node_modules/@stdlib/blas/base/ccopy/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/ccopy.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create strided arrays:
2424
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2525
float y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

lib/node_modules/@stdlib/blas/base/cswap/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/cswap.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create strided arrays:
2424
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2525
float y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

lib/node_modules/@stdlib/blas/base/dasum/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/dasum.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create a strided array:
2424
double x[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
2525

lib/node_modules/@stdlib/blas/base/daxpy/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/daxpy.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create strided arrays:
2424
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2525
double y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

lib/node_modules/@stdlib/blas/base/dcopy/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/dcopy.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create strided arrays:
2424
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2525
double y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

lib/node_modules/@stdlib/blas/base/ddot/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/ddot.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create strided arrays:
2424
double x[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
2525
double y[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };

lib/node_modules/@stdlib/blas/base/dnrm2/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/dnrm2.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create a strided array:
2424
double x[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
2525

lib/node_modules/@stdlib/blas/base/dscal/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/dscal.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create a strided array:
2424
double x[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
2525

lib/node_modules/@stdlib/blas/base/dsdot/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/dsdot.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create strided arrays:
2424
float x[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
2525
float y[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };

lib/node_modules/@stdlib/blas/base/dswap/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/dswap.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create strided arrays:
2424
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2525
double y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

lib/node_modules/@stdlib/blas/base/sasum/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/sasum.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create a strided array:
2424
float x[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
2525

lib/node_modules/@stdlib/blas/base/saxpy/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/saxpy.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create strided arrays:
2424
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2525
float y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

lib/node_modules/@stdlib/blas/base/scopy/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/scopy.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create strided arrays:
2424
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2525
float y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

lib/node_modules/@stdlib/blas/base/sdot/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/sdot.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create strided arrays:
2424
float x[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
2525
float y[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };

lib/node_modules/@stdlib/blas/base/sdsdot/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/sdsdot.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create strided arrays:
2424
float x[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
2525
float y[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };

lib/node_modules/@stdlib/blas/base/snrm2/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/snrm2.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create a strided array:
2424
float x[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
2525

lib/node_modules/@stdlib/blas/base/sscal/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/sscal.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create a strided array:
2424
float x[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
2525

lib/node_modules/@stdlib/blas/base/sswap/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/base/sswap.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create strided arrays:
2424
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2525
float y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

lib/node_modules/@stdlib/blas/ext/base/dapx/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/ext/base/dapx.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create a strided array:
2424
double x[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
2525

lib/node_modules/@stdlib/blas/ext/base/dapxsum/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <stdint.h>
2121
#include <stdio.h>
2222

23-
int main() {
23+
int main( void ) {
2424
// Create a strided array:
2525
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2626

lib/node_modules/@stdlib/blas/ext/base/dapxsumkbn/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <stdint.h>
2121
#include <stdio.h>
2222

23-
int main() {
23+
int main( void ) {
2424
// Create a strided array:
2525
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2626

lib/node_modules/@stdlib/blas/ext/base/dapxsumkbn2/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <stdint.h>
2121
#include <stdio.h>
2222

23-
int main() {
23+
int main( void ) {
2424
// Create a strided array:
2525
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2626

lib/node_modules/@stdlib/blas/ext/base/dapxsumors/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <stdint.h>
2121
#include <stdio.h>
2222

23-
int main() {
23+
int main( void ) {
2424
// Create a strided array:
2525
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2626

lib/node_modules/@stdlib/blas/ext/base/dapxsumpw/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <stdint.h>
2121
#include <stdio.h>
2222

23-
int main() {
23+
int main( void ) {
2424
// Create a strided array:
2525
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2626

lib/node_modules/@stdlib/blas/ext/base/dasumpw/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <stdint.h>
2121
#include <stdio.h>
2222

23-
int main() {
23+
int main( void ) {
2424
// Create a strided array:
2525
double x[] = { -1.0, 2.0, -3.0, 4.0, -5.0, 6.0, -7.0, 8.0 };
2626

lib/node_modules/@stdlib/blas/ext/base/dcusum/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <stdio.h>
2222
#include <inttypes.h>
2323

24-
int main() {
24+
int main( void ) {
2525
// Create strided arrays:
2626
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2727
double y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

lib/node_modules/@stdlib/blas/ext/base/dcusumkbn/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <stdio.h>
2222
#include <inttypes.h>
2323

24-
int main() {
24+
int main( void ) {
2525
// Create strided arrays:
2626
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2727
double y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

lib/node_modules/@stdlib/blas/ext/base/dcusumkbn2/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <stdio.h>
2222
#include <inttypes.h>
2323

24-
int main() {
24+
int main( void ) {
2525
// Create strided arrays:
2626
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2727
double y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

lib/node_modules/@stdlib/blas/ext/base/dcusumors/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <stdio.h>
2222
#include <inttypes.h>
2323

24-
int main() {
24+
int main( void ) {
2525
// Create strided arrays:
2626
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2727
double y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

lib/node_modules/@stdlib/blas/ext/base/dcusumpw/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <stdio.h>
2222
#include <inttypes.h>
2323

24-
int main() {
24+
int main( void ) {
2525
// Create strided arrays:
2626
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2727
double y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

lib/node_modules/@stdlib/blas/ext/base/dfill/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "stdlib/blas/ext/base/dfill.h"
2020
#include <stdio.h>
2121

22-
int main() {
22+
int main( void ) {
2323
// Create a strided array:
2424
double x[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
2525

lib/node_modules/@stdlib/blas/ext/base/dnanasum/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <stdint.h>
2121
#include <stdio.h>
2222

23-
int main() {
23+
int main( void ) {
2424
// Create a strided array:
2525
double x[] = { 1.0, 2.0, -3.0, -4.0, 5.0, -6.0, -7.0, 8.0, 0.0/0.0, 0.0/0.0 };
2626

lib/node_modules/@stdlib/blas/ext/base/dnanasumors/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <stdint.h>
2121
#include <stdio.h>
2222

23-
int main() {
23+
int main( void ) {
2424
// Create a strided array:
2525
double x[] = { 1.0, 2.0, -3.0, -4.0, 5.0, -6.0, -7.0, 8.0, 0.0/0.0, 0.0/0.0 };
2626

lib/node_modules/@stdlib/blas/ext/base/dnannsum/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <stdio.h>
2222
#include <inttypes.h>
2323

24-
int main() {
24+
int main( void ) {
2525
// Create a strided array:
2626
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };
2727

lib/node_modules/@stdlib/blas/ext/base/dnannsumkbn/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <stdio.h>
2222
#include <inttypes.h>
2323

24-
int main() {
24+
int main( void ) {
2525
// Create a strided array:
2626
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };
2727

lib/node_modules/@stdlib/blas/ext/base/dnannsumkbn2/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <stdio.h>
2222
#include <inttypes.h>
2323

24-
int main() {
24+
int main( void ) {
2525
// Create a strided array:
2626
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };
2727

lib/node_modules/@stdlib/blas/ext/base/dnannsumors/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <stdio.h>
2222
#include <inttypes.h>
2323

24-
int main() {
24+
int main( void ) {
2525
// Create a strided array:
2626
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };
2727

lib/node_modules/@stdlib/blas/ext/base/dnannsumpw/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <stdio.h>
2222
#include <inttypes.h>
2323

24-
int main() {
24+
int main( void ) {
2525
// Create a strided array:
2626
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };
2727

0 commit comments

Comments
 (0)