Skip to content

Commit db90892

Browse files
committed
refactor: support building with API suffix
1 parent 5c514c7 commit db90892

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

lib/node_modules/@stdlib/blas/base/ccopy/include/stdlib/blas/base/ccopy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extern "C" {
3434
/**
3535
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
3636
*/
37-
void c_ccopy( const CBLAS_INT N, const void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY );
37+
void API_SUFFIX(c_ccopy)( const CBLAS_INT N, const void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY );
3838

3939
#ifdef __cplusplus
4040
}

lib/node_modules/@stdlib/blas/base/ccopy/include/stdlib/blas/base/ccopy_cblas.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extern "C" {
3434
/**
3535
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
3636
*/
37-
void cblas_ccopy( const CBLAS_INT N, const void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY );
37+
void API_SUFFIX(cblas_ccopy)( const CBLAS_INT N, const void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY );
3838

3939
#ifdef __cplusplus
4040
}

lib/node_modules/@stdlib/blas/base/ccopy/src/addon.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
#include "stdlib/blas/base/ccopy.h"
20+
#include "stdlib/blas/base/shared.h"
2021
#include "stdlib/napi/export.h"
2122
#include "stdlib/napi/argv.h"
2223
#include "stdlib/napi/argv_int64.h"
@@ -38,7 +39,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
3839
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
3940
STDLIB_NAPI_ARGV_STRIDED_COMPLEX64ARRAY( env, X, N, strideX, argv, 1 );
4041
STDLIB_NAPI_ARGV_STRIDED_COMPLEX64ARRAY( env, Y, N, strideY, argv, 3 );
41-
c_ccopy( N, (void *)X, strideX, (void *)Y, strideY );
42+
API_SUFFIX(c_ccopy)( N, (void *)X, strideX, (void *)Y, strideY );
4243
return NULL;
4344
}
4445

lib/node_modules/@stdlib/blas/base/ccopy/src/ccopy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* @param Y output array
2929
* @param strideY Y stride length
3030
*/
31-
void c_ccopy( const CBLAS_INT N, const void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY ) {
31+
void API_SUFFIX(c_ccopy)( const CBLAS_INT N, const void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY ) {
3232
float *x = (float *)X;
3333
float *y = (float *)Y;
3434
CBLAS_INT ix;

lib/node_modules/@stdlib/blas/base/ccopy/src/ccopy_cblas.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
* @param Y output array
3030
* @param strideY Y stride length
3131
*/
32-
void c_ccopy( const CBLAS_INT N, const void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY ) {
33-
cblas_ccopy( N, X, strideX, Y, strideY );
32+
void API_SUFFIX(c_ccopy)( const CBLAS_INT N, const void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY ) {
33+
API_SUFFIX(cblas_ccopy)( N, X, strideX, Y, strideY );
3434
}

lib/node_modules/@stdlib/blas/base/ccopy/src/ccopy_f.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
* @param Y output array
3030
* @param strideY Y stride length
3131
*/
32-
void c_ccopy( const CBLAS_INT N, const void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY ) {
32+
void API_SUFFIX(c_ccopy)( const CBLAS_INT N, const void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY ) {
3333
ccopy( &N, X, &strideX, Y, &strideY );
3434
}

0 commit comments

Comments
 (0)