quickjs 0.19.0 → 0.20.0.rc1

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.
@@ -40,9 +40,13 @@
40
40
  #define LRE_RET_MEMORY_ERROR (-1)
41
41
  #define LRE_RET_TIMEOUT (-2)
42
42
 
43
+ /* trailer length after the group name including the trailing '\0' */
44
+ #define LRE_GROUP_NAME_TRAILER_LEN 2
45
+
43
46
  uint8_t *lre_compile(int *plen, char *error_msg, int error_msg_size,
44
47
  const char *buf, size_t buf_len, int re_flags,
45
48
  void *opaque);
49
+ int lre_get_alloc_count(const uint8_t *bc_buf);
46
50
  int lre_get_capture_count(const uint8_t *bc_buf);
47
51
  int lre_get_flags(const uint8_t *bc_buf);
48
52
  const char *lre_get_groupnames(const uint8_t *bc_buf);