sqlmath 0.0.4 → 2022.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/sqlmath_custom.c DELETED
@@ -1,78 +0,0 @@
1
- // copyright nobody
2
- // LINT_C_FILE
3
-
4
-
5
- // *INDENT-OFF*
6
- #if defined(__cplusplus)
7
- extern "C" {
8
- #endif
9
- // *INDENT-ON*
10
-
11
-
12
- // header
13
- #include "sqlmath_base.c"
14
-
15
-
16
- /*
17
- file sqlmath_c - start
18
- */
19
- #ifndef SQLMATH_NAPI
20
-
21
-
22
- /*
23
- file sqlmath_c_custom_init
24
- */
25
- int sqlite3_sqlmath_custom_init(
26
- sqlite3 * db,
27
- char **pzErrMsg,
28
- const sqlite3_api_routines * pApi
29
- ) {
30
- sqlite3_sqlmath_init(db, pzErrMsg, pApi);
31
- return 0;
32
- }
33
-
34
- /*
35
- file sqlmath_c - end
36
- */
37
-
38
-
39
- /*
40
- file sqlmath_napi - start
41
- */
42
- #else // SQLMATH_NAPI
43
-
44
-
45
- /*
46
- file sqlmath_napi_custom_init
47
- */
48
- napi_value napi_module_custom_init(
49
- napi_env env,
50
- napi_value exports
51
- ) {
52
- // typedef struct {
53
- // // One of utf8name or name should be NULL.
54
- // const char* utf8name;
55
- // napi_value name;
56
- //
57
- // napi_callback method;
58
- // napi_callback getter;
59
- // napi_callback setter;
60
- // napi_value value;
61
- //
62
- // napi_property_attributes attributes;
63
- // void* data;
64
- // } napi_property_descriptor;
65
- napi_module_init(env, exports);
66
- return exports;
67
- }
68
-
69
- NAPI_MODULE(NODE_GYP_MODULE_NAME, napi_module_custom_init)
70
- #endif // SQLMATH_NAPI
71
- /*
72
- file sqlmath_napi - end
73
- */
74
- // *INDENT-OFF*
75
- #if defined(__cplusplus)
76
- }
77
- #endif
78
- // *INDENT-ON*
File without changes
@@ -1,4 +0,0 @@
1
- /*jslint node, beta*/
2
- import sqlmath from "./sqlmath.mjs";
3
- let exportDict = {};
4
- export default Object.freeze(Object.assign({}, sqlmath, exportDict));