@based/db 0.0.34 → 0.0.35

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.
@@ -287,7 +287,6 @@ int selva_fields_set_text(
287
287
  */
288
288
  SELVA_EXPORT
289
289
  int selva_fields_get_text(
290
- struct SelvaDb *db,
291
290
  struct SelvaNode * restrict node,
292
291
  const struct SelvaFieldSchema *fs,
293
292
  enum selva_lang_code lang,
@@ -75,9 +75,11 @@ struct selva_string {
75
75
  };
76
76
  static_assert(sizeof(struct selva_string) == SELVA_STRING_STRUCT_SIZE);
77
77
 
78
+ /* RFE is + 1 extra? */
78
79
  #define SELVA_STRING_STATIC_BUF_SIZE(len) \
79
80
  (((len + 1) < sizeof(char *)) ? 0 : len + 1 - sizeof(char *))
80
81
 
82
+ /* RFE is + 1 extra? */
81
83
  #define SELVA_STRING_STATIC_BUF_SIZE_WCRC(len) \
82
84
  (((len + 1 + sizeof(uint32_t)) < sizeof(char *)) ? 0 : len + 1 - sizeof(char *) + sizeof(uint32_t))
83
85
 
@@ -287,7 +287,6 @@ int selva_fields_set_text(
287
287
  */
288
288
  SELVA_EXPORT
289
289
  int selva_fields_get_text(
290
- struct SelvaDb *db,
291
290
  struct SelvaNode * restrict node,
292
291
  const struct SelvaFieldSchema *fs,
293
292
  enum selva_lang_code lang,
@@ -75,9 +75,11 @@ struct selva_string {
75
75
  };
76
76
  static_assert(sizeof(struct selva_string) == SELVA_STRING_STRUCT_SIZE);
77
77
 
78
+ /* RFE is + 1 extra? */
78
79
  #define SELVA_STRING_STATIC_BUF_SIZE(len) \
79
80
  (((len + 1) < sizeof(char *)) ? 0 : len + 1 - sizeof(char *))
80
81
 
82
+ /* RFE is + 1 extra? */
81
83
  #define SELVA_STRING_STATIC_BUF_SIZE_WCRC(len) \
82
84
  (((len + 1 + sizeof(uint32_t)) < sizeof(char *)) ? 0 : len + 1 - sizeof(char *) + sizeof(uint32_t))
83
85
 
Binary file
@@ -287,7 +287,6 @@ int selva_fields_set_text(
287
287
  */
288
288
  SELVA_EXPORT
289
289
  int selva_fields_get_text(
290
- struct SelvaDb *db,
291
290
  struct SelvaNode * restrict node,
292
291
  const struct SelvaFieldSchema *fs,
293
292
  enum selva_lang_code lang,
@@ -75,9 +75,11 @@ struct selva_string {
75
75
  };
76
76
  static_assert(sizeof(struct selva_string) == SELVA_STRING_STRUCT_SIZE);
77
77
 
78
+ /* RFE is + 1 extra? */
78
79
  #define SELVA_STRING_STATIC_BUF_SIZE(len) \
79
80
  (((len + 1) < sizeof(char *)) ? 0 : len + 1 - sizeof(char *))
80
81
 
82
+ /* RFE is + 1 extra? */
81
83
  #define SELVA_STRING_STATIC_BUF_SIZE_WCRC(len) \
82
84
  (((len + 1 + sizeof(uint32_t)) < sizeof(char *)) ? 0 : len + 1 - sizeof(char *) + sizeof(uint32_t))
83
85
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@based/db",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/src/index.js",