Skip to content

Commit 1c4a2e3

Browse files
committed
chore: fixed C lint errors
1 parent 24d52b5 commit 1c4a2e3

File tree

1 file changed

+39
-39
lines changed
  • lib/node_modules/@stdlib/ndarray/base/nullary/src

1 file changed

+39
-39
lines changed

lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ int8_t stdlib_ndarray_f_as_t_0d( struct ndarray *arrays[], void *fcn ) {
193193
int8_t stdlib_ndarray_f_as_t_1d( struct ndarray *arrays[], void *fcn ) {
194194
typedef uint16_t func_type( void );
195195
func_type *f = (const func_type *)fcn;
196-
STDLIB_NDARRAY_NULLARY_1D_LOOP_CLBK( float )
196+
STDLIB_NDARRAY_NULLARY_1D_LOOP_CLBK(const float )
197197
return 0;
198198
}
199199

@@ -275,8 +275,8 @@ int8_t stdlib_ndarray_f_as_t_1d( struct ndarray *arrays[], void *fcn ) {
275275
*/
276276
int8_t stdlib_ndarray_f_as_t_2d( struct ndarray *arrays[], void *fcn ) {
277277
typedef uint16_t func_type( void );
278-
func_type *f = (func_type *)fcn;
279-
STDLIB_NDARRAY_NULLARY_2D_LOOP_CLBK( float )
278+
func_type *f = (const func_type *)fcn;
279+
STDLIB_NDARRAY_NULLARY_2D_LOOP_CLBK(const float )
280280
return 0;
281281
}
282282

@@ -358,8 +358,8 @@ int8_t stdlib_ndarray_f_as_t_2d( struct ndarray *arrays[], void *fcn ) {
358358
*/
359359
int8_t stdlib_ndarray_f_as_t_2d_blocked( struct ndarray *arrays[], void *fcn ) {
360360
typedef uint16_t func_type( void );
361-
func_type *f = (func_type *)fcn;
362-
STDLIB_NDARRAY_NULLARY_2D_BLOCKED_LOOP_CLBK( float )
361+
func_type *f = (const func_type *)fcn;
362+
STDLIB_NDARRAY_NULLARY_2D_BLOCKED_LOOP_CLBK(const float )
363363
return 0;
364364
}
365365

@@ -440,9 +440,9 @@ int8_t stdlib_ndarray_f_as_t_2d_blocked( struct ndarray *arrays[], void *fcn ) {
440440
* stdlib_ndarray_free( x );
441441
*/
442442
int8_t stdlib_ndarray_f_as_t_3d( struct ndarray *arrays[], void *fcn ) {
443-
typedef uint16_t func_type( void );
443+
typedef uint16_t func_type(const void );
444444
func_type *f = (func_type *)fcn;
445-
STDLIB_NDARRAY_NULLARY_3D_LOOP_CLBK( float )
445+
STDLIB_NDARRAY_NULLARY_3D_LOOP_CLBK(const float )
446446
return 0;
447447
}
448448

@@ -523,9 +523,9 @@ int8_t stdlib_ndarray_f_as_t_3d( struct ndarray *arrays[], void *fcn ) {
523523
* stdlib_ndarray_free( x );
524524
*/
525525
int8_t stdlib_ndarray_f_as_t_3d_blocked( struct ndarray *arrays[], void *fcn ) {
526-
typedef uint16_t func_type( void );
526+
typedef uint16_t func_type(const void );
527527
func_type *f = (func_type *)fcn;
528-
STDLIB_NDARRAY_NULLARY_3D_BLOCKED_LOOP_CLBK( float )
528+
STDLIB_NDARRAY_NULLARY_3D_BLOCKED_LOOP_CLBK(const float )
529529
return 0;
530530
}
531531

@@ -606,9 +606,9 @@ int8_t stdlib_ndarray_f_as_t_3d_blocked( struct ndarray *arrays[], void *fcn ) {
606606
* stdlib_ndarray_free( x );
607607
*/
608608
int8_t stdlib_ndarray_f_as_t_4d( struct ndarray *arrays[], void *fcn ) {
609-
typedef uint16_t func_type( void );
609+
typedef uint16_t func_type(const void );
610610
func_type *f = (func_type *)fcn;
611-
STDLIB_NDARRAY_NULLARY_4D_LOOP_CLBK( float )
611+
STDLIB_NDARRAY_NULLARY_4D_LOOP_CLBK(const float )
612612
return 0;
613613
}
614614

@@ -689,9 +689,9 @@ int8_t stdlib_ndarray_f_as_t_4d( struct ndarray *arrays[], void *fcn ) {
689689
* stdlib_ndarray_free( x );
690690
*/
691691
int8_t stdlib_ndarray_f_as_t_4d_blocked( struct ndarray *arrays[], void *fcn ) {
692-
typedef uint16_t func_type( void );
692+
typedef uint16_t func_type(const void );
693693
func_type *f = (func_type *)fcn;
694-
STDLIB_NDARRAY_NULLARY_4D_BLOCKED_LOOP_CLBK( float )
694+
STDLIB_NDARRAY_NULLARY_4D_BLOCKED_LOOP_CLBK(const float )
695695
return 0;
696696
}
697697

@@ -772,9 +772,9 @@ int8_t stdlib_ndarray_f_as_t_4d_blocked( struct ndarray *arrays[], void *fcn ) {
772772
* stdlib_ndarray_free( x );
773773
*/
774774
int8_t stdlib_ndarray_f_as_t_5d( struct ndarray *arrays[], void *fcn ) {
775-
typedef uint16_t func_type( void );
775+
typedef uint16_t func_type(const void );
776776
func_type *f = (func_type *)fcn;
777-
STDLIB_NDARRAY_NULLARY_5D_LOOP_CLBK( float )
777+
STDLIB_NDARRAY_NULLARY_5D_LOOP_CLBK(const float )
778778
return 0;
779779
}
780780

@@ -855,9 +855,9 @@ int8_t stdlib_ndarray_f_as_t_5d( struct ndarray *arrays[], void *fcn ) {
855855
* stdlib_ndarray_free( x );
856856
*/
857857
int8_t stdlib_ndarray_f_as_t_5d_blocked( struct ndarray *arrays[], void *fcn ) {
858-
typedef uint16_t func_type( void );
858+
typedef uint16_t func_type(const void );
859859
func_type *f = (func_type *)fcn;
860-
STDLIB_NDARRAY_NULLARY_5D_BLOCKED_LOOP_CLBK( float )
860+
STDLIB_NDARRAY_NULLARY_5D_BLOCKED_LOOP_CLBK(const float )
861861
return 0;
862862
}
863863

@@ -938,9 +938,9 @@ int8_t stdlib_ndarray_f_as_t_5d_blocked( struct ndarray *arrays[], void *fcn ) {
938938
* stdlib_ndarray_free( x );
939939
*/
940940
int8_t stdlib_ndarray_f_as_t_6d( struct ndarray *arrays[], void *fcn ) {
941-
typedef uint16_t func_type( void );
941+
typedef uint16_t func_type(const void );
942942
func_type *f = (func_type *)fcn;
943-
STDLIB_NDARRAY_NULLARY_6D_LOOP_CLBK( float )
943+
STDLIB_NDARRAY_NULLARY_6D_LOOP_CLBK(const float )
944944
return 0;
945945
}
946946

@@ -1021,9 +1021,9 @@ int8_t stdlib_ndarray_f_as_t_6d( struct ndarray *arrays[], void *fcn ) {
10211021
* stdlib_ndarray_free( x );
10221022
*/
10231023
int8_t stdlib_ndarray_f_as_t_6d_blocked( struct ndarray *arrays[], void *fcn ) {
1024-
typedef uint16_t func_type( void );
1024+
typedef uint16_t func_type(const void );
10251025
func_type *f = (func_type *)fcn;
1026-
STDLIB_NDARRAY_NULLARY_6D_BLOCKED_LOOP_CLBK( float )
1026+
STDLIB_NDARRAY_NULLARY_6D_BLOCKED_LOOP_CLBK(const float )
10271027
return 0;
10281028
}
10291029

@@ -1104,9 +1104,9 @@ int8_t stdlib_ndarray_f_as_t_6d_blocked( struct ndarray *arrays[], void *fcn ) {
11041104
* stdlib_ndarray_free( x );
11051105
*/
11061106
int8_t stdlib_ndarray_f_as_t_7d( struct ndarray *arrays[], void *fcn ) {
1107-
typedef uint16_t func_type( void );
1107+
typedef uint16_t func_type(const void );
11081108
func_type *f = (func_type *)fcn;
1109-
STDLIB_NDARRAY_NULLARY_7D_LOOP_CLBK( float )
1109+
STDLIB_NDARRAY_NULLARY_7D_LOOP_CLBK(const float )
11101110
return 0;
11111111
}
11121112

@@ -1187,9 +1187,9 @@ int8_t stdlib_ndarray_f_as_t_7d( struct ndarray *arrays[], void *fcn ) {
11871187
* stdlib_ndarray_free( x );
11881188
*/
11891189
int8_t stdlib_ndarray_f_as_t_7d_blocked( struct ndarray *arrays[], void *fcn ) {
1190-
typedef uint16_t func_type( void );
1190+
typedef uint16_t func_type(const void );
11911191
func_type *f = (func_type *)fcn;
1192-
STDLIB_NDARRAY_NULLARY_7D_BLOCKED_LOOP_CLBK( float )
1192+
STDLIB_NDARRAY_NULLARY_7D_BLOCKED_LOOP_CLBK(const float )
11931193
return 0;
11941194
}
11951195

@@ -1270,9 +1270,9 @@ int8_t stdlib_ndarray_f_as_t_7d_blocked( struct ndarray *arrays[], void *fcn ) {
12701270
* stdlib_ndarray_free( x );
12711271
*/
12721272
int8_t stdlib_ndarray_f_as_t_8d( struct ndarray *arrays[], void *fcn ) {
1273-
typedef uint16_t func_type( void );
1273+
typedef uint16_t func_type(const void );
12741274
func_type *f = (func_type *)fcn;
1275-
STDLIB_NDARRAY_NULLARY_8D_LOOP_CLBK( float )
1275+
STDLIB_NDARRAY_NULLARY_8D_LOOP_CLBK(const float )
12761276
return 0;
12771277
}
12781278

@@ -1353,9 +1353,9 @@ int8_t stdlib_ndarray_f_as_t_8d( struct ndarray *arrays[], void *fcn ) {
13531353
* stdlib_ndarray_free( x );
13541354
*/
13551355
int8_t stdlib_ndarray_f_as_t_8d_blocked( struct ndarray *arrays[], void *fcn ) {
1356-
typedef uint16_t func_type( void );
1356+
typedef uint16_t func_type(const void );
13571357
func_type *f = (func_type *)fcn;
1358-
STDLIB_NDARRAY_NULLARY_8D_BLOCKED_LOOP_CLBK( float )
1358+
STDLIB_NDARRAY_NULLARY_8D_BLOCKED_LOOP_CLBK(const float )
13591359
return 0;
13601360
}
13611361

@@ -1436,9 +1436,9 @@ int8_t stdlib_ndarray_f_as_t_8d_blocked( struct ndarray *arrays[], void *fcn ) {
14361436
* stdlib_ndarray_free( x );
14371437
*/
14381438
int8_t stdlib_ndarray_f_as_t_9d( struct ndarray *arrays[], void *fcn ) {
1439-
typedef uint16_t func_type( void );
1439+
typedef uint16_t func_type(const void );
14401440
func_type *f = (func_type *)fcn;
1441-
STDLIB_NDARRAY_NULLARY_9D_LOOP_CLBK( float )
1441+
STDLIB_NDARRAY_NULLARY_9D_LOOP_CLBK(const float )
14421442
return 0;
14431443
}
14441444

@@ -1519,9 +1519,9 @@ int8_t stdlib_ndarray_f_as_t_9d( struct ndarray *arrays[], void *fcn ) {
15191519
* stdlib_ndarray_free( x );
15201520
*/
15211521
int8_t stdlib_ndarray_f_as_t_9d_blocked( struct ndarray *arrays[], void *fcn ) {
1522-
typedef uint16_t func_type( void );
1522+
typedef uint16_t func_type(const void );
15231523
func_type *f = (func_type *)fcn;
1524-
STDLIB_NDARRAY_NULLARY_9D_BLOCKED_LOOP_CLBK( float )
1524+
STDLIB_NDARRAY_NULLARY_9D_BLOCKED_LOOP_CLBK(const float )
15251525
return 0;
15261526
}
15271527

@@ -1602,9 +1602,9 @@ int8_t stdlib_ndarray_f_as_t_9d_blocked( struct ndarray *arrays[], void *fcn ) {
16021602
* stdlib_ndarray_free( x );
16031603
*/
16041604
int8_t stdlib_ndarray_f_as_t_10d( struct ndarray *arrays[], void *fcn ) {
1605-
typedef uint16_t func_type( void );
1605+
typedef uint16_t func_type(const void );
16061606
func_type *f = (func_type *)fcn;
1607-
STDLIB_NDARRAY_NULLARY_10D_LOOP_CLBK( float )
1607+
STDLIB_NDARRAY_NULLARY_10D_LOOP_CLBK(const float )
16081608
return 0;
16091609
}
16101610

@@ -1685,9 +1685,9 @@ int8_t stdlib_ndarray_f_as_t_10d( struct ndarray *arrays[], void *fcn ) {
16851685
* stdlib_ndarray_free( x );
16861686
*/
16871687
int8_t stdlib_ndarray_f_as_t_10d_blocked( struct ndarray *arrays[], void *fcn ) {
1688-
typedef uint16_t func_type( void );
1688+
typedef uint16_t func_type(const void );
16891689
func_type *f = (func_type *)fcn;
1690-
STDLIB_NDARRAY_NULLARY_10D_BLOCKED_LOOP_CLBK( float )
1690+
STDLIB_NDARRAY_NULLARY_10D_BLOCKED_LOOP_CLBK(const float )
16911691
return 0;
16921692
}
16931693

@@ -1768,9 +1768,9 @@ int8_t stdlib_ndarray_f_as_t_10d_blocked( struct ndarray *arrays[], void *fcn )
17681768
* stdlib_ndarray_free( x );
17691769
*/
17701770
int8_t stdlib_ndarray_f_as_t_nd( struct ndarray *arrays[], void *fcn ) {
1771-
typedef uint16_t func_type( void );
1771+
typedef uint16_t func_type(const void );
17721772
func_type *f = (func_type *)fcn;
1773-
STDLIB_NDARRAY_NULLARY_ND_LOOP_CLBK( float )
1773+
STDLIB_NDARRAY_NULLARY_ND_LOOP_CLBK(const float )
17741774
return 0;
17751775
}
17761776

0 commit comments

Comments
 (0)