Skip to content

Commit e3bf989

Browse files
committed
fix: update build configurations and add missing include
Ref: #1906 Ref: 7b29fe4
1 parent f21edb3 commit e3bf989

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

lib/node_modules/@stdlib/blas/ext/base/dapxsumkbn/manifest.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
2-
"options": {},
2+
"options": {
3+
"task": "build"
4+
},
35
"fields": [
46
{
57
"field": "src",
@@ -24,6 +26,7 @@
2426
],
2527
"confs": [
2628
{
29+
"task": "build",
2730
"src": [
2831
"./src/dapxsumkbn.c"
2932
],
@@ -35,10 +38,11 @@
3538
],
3639
"libpath": [],
3740
"dependencies": [
38-
"stdlib/napi/export.h",
39-
"stdlib/napi/argv.h",
40-
"stdlib/napi/argv_int64.h",
41-
"stdlib/napi/argv_strided_float64array.h"
41+
"@stdlib/napi/export",
42+
"@stdlib/napi/argv",
43+
"@stdlib/napi/argv-int64",
44+
"@stdlib/napi/argv-double",
45+
"@stdlib/napi/argv-strided-float64array"
4246
]
4347
},
4448
{

lib/node_modules/@stdlib/blas/ext/base/dapxsumkbn/src/addon.c

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "stdlib/napi/export.h"
2121
#include "stdlib/napi/argv.h"
2222
#include "stdlib/napi/argv_int64.h"
23+
#include "stdlib/napi/argv_double.h"
2324
#include "stdlib/napi/argv_strided_float64array.h"
2425
#include <node_api.h>
2526
#include <assert.h>
@@ -33,17 +34,17 @@
3334
* @return Node-API value
3435
*/
3536
static napi_value addon( napi_env env, napi_callback_info info ) {
36-
STDLIB_NAPI_ARGV( env, info, argv, argc, 4 );
37-
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
38-
STDLIB_NAPI_ARGV_DOUBLE( env, alpha, argv, 1 );
39-
STDLIB_NAPI_ARGV_INT64( env, stride, argv, 3 );
40-
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, stride, argv, 2 );
37+
STDLIB_NAPI_ARGV( env, info, argv, argc, 4 );
38+
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
39+
STDLIB_NAPI_ARGV_DOUBLE( env, alpha, argv, 1 );
40+
STDLIB_NAPI_ARGV_INT64( env, stride, argv, 3 );
41+
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, stride, argv, 2 );
4142

42-
napi_value v;
43-
napi_status status = napi_create_double( env, stdlib_strided_dapxsumkbn(N, alpha, X, stride), &v );
44-
assert( status == napi_ok );
43+
napi_value v;
44+
napi_status status = napi_create_double( env, stdlib_strided_dapxsumkbn( N, alpha, X, stride ), &v );
45+
assert( status == napi_ok );
4546

46-
return v;
47+
return v;
4748
}
4849

49-
STDLIB_NAPI_MODULE_EXPORT_FCN(addon)
50+
STDLIB_NAPI_MODULE_EXPORT_FCN( addon )

0 commit comments

Comments
 (0)