Skip to content

Commit 5363054

Browse files
committed
docs: resolve C lint errors
1 parent 07cc80b commit 5363054

File tree

42 files changed

+42
-44
lines changed

Some content is hidden

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

42 files changed

+42
-44
lines changed

lib/node_modules/@stdlib/math/base/special/abs/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
23+
const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/abs2/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
23+
const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/abs2f/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
23+
const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/absf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
23+
const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/cbrt/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.14, 9.0, 0.0, 0.0/0.0 };
23+
const double x[] = { 3.14, 9.0, 0.0, 0.0/0.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/cbrtf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.14f, 9.0f, 0.0f, 0.0f/0.0f };
23+
const float x[] = { 3.14f, 9.0f, 0.0f, 0.0f/0.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/ceil/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
23+
const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/ceilf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
23+
const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/clamp/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
23+
const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/clampf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
23+
const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/copysign/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
23+
const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/copysignf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.0f, -3.0f, 0.0f, 0.0f/0.0f };
23+
const float x[] = { 3.0f, -3.0f, 0.0f, 0.0f/0.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/deg2rad/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 45.0, 90.0, 0.0, 0.0/0.0 };
23+
const double x[] = { 45.0, 90.0, 0.0, 0.0/0.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/deg2radf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 45.0f, 90.0f, 0.0f, 0.0f/0.0f };
23+
const float x[] = { 45.0f, 90.0f, 0.0f, 0.0f/0.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/flipsign/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.0, -3.0, 0.0, 0.0/0.0 };
23+
const double x[] = { 3.0, -3.0, 0.0, 0.0/0.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/flipsignf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.0f, -3.0f, 0.0f, 0.0f/0.0f };
23+
const float x[] = { 3.0f, -3.0f, 0.0f, 0.0f/0.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/floor/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
23+
const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/floorf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
23+
const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/hypot/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.0, 4.0, 5.0, 12.0 };
23+
const double x[] = { 3.0, 4.0, 5.0, 12.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/hypotf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.0f, 4.0f, 5.0f, 12.0f };
23+
const float x[] = { 3.0f, 4.0f, 5.0f, 12.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/identity/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
23+
const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/identityf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
23+
const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/inv/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.0, 4.0, 5.0, 12.0 };
23+
const double x[] = { 3.0, 4.0, 5.0, 12.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/invf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.0f, 4.0f, 5.0f, 12.0f };
23+
const float x[] = { 3.0f, 4.0f, 5.0f, 12.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/kernel-cos/examples/c/example.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818

1919

2020
#include "stdlib/math/base/special/kernel_cos.h"
21-
#include <stdlib.h>
2221
#include <stdio.h>
2322

2423
int main( void ) {
25-
double x[] = { -0.7853981633974483, -0.6108652381980153, -0.4363323129985824, -0.26179938779914946, -0.08726646259971649, 0.08726646259971649, 0.26179938779914935, 0.43633231299858233, 0.6108652381980153, 0.7853981633974483 };
24+
const double x[] = { -0.7853981633974483, -0.6108652381980153, -0.4363323129985824, -0.26179938779914946, -0.08726646259971649, 0.08726646259971649, 0.26179938779914935, 0.43633231299858233, 0.6108652381980153, 0.7853981633974483 };
2625

2726
double out;
2827
int i;

lib/node_modules/@stdlib/math/base/special/kernel-tan/examples/c/example.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818

1919

2020
#include "stdlib/math/base/special/kernel_tan.h"
21-
#include <stdlib.h>
2221
#include <stdio.h>
2322

2423
int main( void ) {
25-
double x[] = { -0.7853981633974483, -0.6108652381980153, -0.4363323129985824, -0.26179938779914946, -0.08726646259971649, 0.08726646259971649, 0.26179938779914935, 0.43633231299858233, 0.6108652381980153, 0.7853981633974483 };
24+
const double x[] = { -0.7853981633974483, -0.6108652381980153, -0.4363323129985824, -0.26179938779914946, -0.08726646259971649, 0.08726646259971649, 0.26179938779914935, 0.43633231299858233, 0.6108652381980153, 0.7853981633974483 };
2625

2726
double out;
2827
int i;

lib/node_modules/@stdlib/math/base/special/kronecker-delta/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.0, 4.0, 5.0, 5.0 };
23+
const double x[] = { 3.0, 4.0, 5.0, 5.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/kronecker-deltaf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.0f, 4.0f, 5.0f, 5.0f };
23+
const float x[] = { 3.0f, 4.0f, 5.0f, 5.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/labs/examples/c/example.c

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

2323
int main( void ) {
24-
int32_t x[] = { 3, -3, 0, -10 };
24+
const int32_t x[] = { 3, -3, 0, -10 };
2525

2626
int32_t y;
2727
int i;

lib/node_modules/@stdlib/math/base/special/pdiff/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.0, 4.0, 6.0, 5.0 };
23+
const double x[] = { 3.0, 4.0, 6.0, 5.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/pdifff/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.0f, 4.0f, 6.0f, 5.0f };
23+
const float x[] = { 3.0f, 4.0f, 6.0f, 5.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/ramp/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
23+
const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/rampf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
23+
const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/rcbrt/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.14, 9.0, 0.0, 0.0/0.0 };
23+
const double x[] = { 3.14, 9.0, 0.0, 0.0/0.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/rsqrt/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.14, 9.0, 0.0, 0.0/0.0 };
23+
const double x[] = { 3.14, 9.0, 0.0, 0.0/0.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/rsqrtf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.14f, 9.0f, 0.0f, 0.0f/0.0f };
23+
const float x[] = { 3.14f, 9.0f, 0.0f, 0.0f/0.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/signum/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
23+
const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/signumf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
23+
const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/sqrt/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.14, 9.0, 0.0, 0.0/0.0 };
23+
const double x[] = { 3.14, 9.0, 0.0, 0.0/0.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/sqrtf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.14f, 9.0f, 0.0f, 0.0f/0.0f };
23+
const float x[] = { 3.14f, 9.0f, 0.0f, 0.0f/0.0f };
2424

2525
float y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/trunc/examples/c/example.c

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

2222
int main( void ) {
23-
double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
23+
const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
2424

2525
double y;
2626
int i;

lib/node_modules/@stdlib/math/base/special/truncf/examples/c/example.c

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

2222
int main( void ) {
23-
float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
23+
const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
2424

2525
float y;
2626
int i;

0 commit comments

Comments
 (0)