omdev-cext 0.0.73__tar.gz → 0.0.74__tar.gz

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.
Files changed (35) hide show
  1. {omdev_cext-0.0.73/omdev_cext.egg-info → omdev_cext-0.0.74}/PKG-INFO +2 -2
  2. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/quickjs.c +19 -8
  3. {omdev_cext-0.0.73 → omdev_cext-0.0.74/omdev_cext.egg-info}/PKG-INFO +2 -2
  4. omdev_cext-0.0.74/omdev_cext.egg-info/requires.txt +1 -0
  5. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/pyproject.toml +2 -2
  6. omdev_cext-0.0.73/omdev_cext.egg-info/requires.txt +0 -1
  7. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/LICENSE +0 -0
  8. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/MANIFEST.in +0 -0
  9. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/README.md +0 -0
  10. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/cexts/_boilerplate.cc +0 -0
  11. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_pyqjsng.c +0 -0
  12. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/builtin-array-fromasync.h +0 -0
  13. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/builtin-iterator-zip-keyed.h +0 -0
  14. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/builtin-iterator-zip.h +0 -0
  15. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/cutils.h +0 -0
  16. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/dtoa.c +0 -0
  17. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/dtoa.h +0 -0
  18. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/libregexp-opcode.h +0 -0
  19. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/libregexp.c +0 -0
  20. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/libregexp.h +0 -0
  21. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/libunicode-table.h +0 -0
  22. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/libunicode.c +0 -0
  23. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/libunicode.h +0 -0
  24. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/list.h +0 -0
  25. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/quickjs-atom.h +0 -0
  26. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/quickjs-c-atomics.h +0 -0
  27. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/quickjs-libc.c +0 -0
  28. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/quickjs-libc.h +0 -0
  29. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/quickjs-opcode.h +0 -0
  30. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev/js/quickjs/_quickjs/quickjs.h +0 -0
  31. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev_cext.egg-info/SOURCES.txt +0 -0
  32. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev_cext.egg-info/dependency_links.txt +0 -0
  33. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/omdev_cext.egg-info/top_level.txt +0 -0
  34. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/setup.cfg +0 -0
  35. {omdev_cext-0.0.73 → omdev_cext-0.0.74}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omdev-cext
3
- Version: 0.0.73
3
+ Version: 0.0.74
4
4
  Summary: omdev
5
5
  Author: wrmsr
6
6
  License-Expression: BSD-3-Clause
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.15
14
14
  Requires-Python: >=3.14
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
- Requires-Dist: omdev==0.0.73
17
+ Requires-Dist: omdev==0.0.74
18
18
  Dynamic: license-file
19
19
 
20
20
  # Overview
@@ -5491,7 +5491,9 @@ static JSValue JS_ConcatString2(JSContext *ctx, JSValue op1, JSValue op2)
5491
5491
  if (p2->len == 0) {
5492
5492
  goto ret_op1;
5493
5493
  }
5494
- if (JS_REF_COUNT(p1) == 1 && p1->is_wide_char == p2->is_wide_char
5494
+ // not if p1 is an atom: the atom table finds it by its characters
5495
+ if (JS_REF_COUNT(p1) == 1 && p1->atom_type == 0
5496
+ && p1->is_wide_char == p2->is_wide_char
5495
5497
  && js_malloc_usable_size(ctx, p1) >= sizeof(*p1) + ((p1->len + p2->len) << p2->is_wide_char) + 1 - p1->is_wide_char) {
5496
5498
  /* Concatenate in place in available space at the end of p1 */
5497
5499
  if (p1->is_wide_char) {
@@ -17072,9 +17074,12 @@ static JSValue JS_IteratorNext2(JSContext *ctx, JSValueConst enum_obj,
17072
17074
  return JS_EXCEPTION;
17073
17075
  }
17074
17076
 
17075
- static JSValue JS_IteratorNext(JSContext *ctx, JSValueConst enum_obj,
17076
- JSValueConst method,
17077
- int argc, JSValueConst *argv, int *pdone)
17077
+ enum { JS_ITERATOR_NEXT_DROP_VALUE = 1 };
17078
+
17079
+ static JSValue JS_IteratorNext1(JSContext *ctx, JSValueConst enum_obj,
17080
+ JSValueConst method,
17081
+ int argc, JSValueConst *argv,
17082
+ int *pdone, int flags)
17078
17083
  {
17079
17084
  JSValue obj, value, done_val;
17080
17085
  int done;
@@ -17095,7 +17100,7 @@ static JSValue JS_IteratorNext(JSContext *ctx, JSValueConst enum_obj,
17095
17100
  goto fail;
17096
17101
  *pdone = JS_ToBoolFree(ctx, done_val);
17097
17102
  value = JS_UNDEFINED;
17098
- if (!*pdone) {
17103
+ if (!*pdone && !(flags & JS_ITERATOR_NEXT_DROP_VALUE)) {
17099
17104
  value = JS_GetProperty(ctx, obj, JS_ATOM_value);
17100
17105
  }
17101
17106
  JS_FreeValue(ctx, obj);
@@ -17107,6 +17112,13 @@ static JSValue JS_IteratorNext(JSContext *ctx, JSValueConst enum_obj,
17107
17112
  return JS_EXCEPTION;
17108
17113
  }
17109
17114
 
17115
+ static JSValue JS_IteratorNext(JSContext *ctx, JSValueConst enum_obj,
17116
+ JSValueConst method,
17117
+ int argc, JSValueConst *argv, int *pdone)
17118
+ {
17119
+ return JS_IteratorNext1(ctx, enum_obj, method, argc, argv, pdone, 0);
17120
+ }
17121
+
17110
17122
  /* return < 0 in case of exception */
17111
17123
  static int JS_IteratorClose(JSContext *ctx, JSValueConst enum_obj,
17112
17124
  bool is_exception_pending)
@@ -46443,16 +46455,15 @@ static JSValue js_iterator_helper_next(JSContext *ctx, JSValueConst this_val,
46443
46455
  goto close;
46444
46456
  while (it->count > 0) {
46445
46457
  it->count--;
46446
- item = JS_IteratorNext(ctx, it->obj, it->next, 0, NULL, pdone);
46458
+ item = JS_IteratorNext1(ctx, it->obj, it->next, 0, NULL, pdone,
46459
+ JS_ITERATOR_NEXT_DROP_VALUE);
46447
46460
  if (JS_IsException(item))
46448
46461
  goto step_fail;
46449
- JS_FreeValue(ctx, item);
46450
46462
  if (*pdone) {
46451
46463
  ret = JS_UNDEFINED;
46452
46464
  goto done;
46453
46465
  }
46454
46466
  }
46455
-
46456
46467
  item = JS_IteratorNext(ctx, it->obj, it->next, 0, NULL, pdone);
46457
46468
  if (JS_IsException(item))
46458
46469
  goto step_fail;
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omdev-cext
3
- Version: 0.0.73
3
+ Version: 0.0.74
4
4
  Summary: omdev
5
5
  Author: wrmsr
6
6
  License-Expression: BSD-3-Clause
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.15
14
14
  Requires-Python: >=3.14
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
- Requires-Dist: omdev==0.0.73
17
+ Requires-Dist: omdev==0.0.74
18
18
  Dynamic: license-file
19
19
 
20
20
  # Overview
@@ -0,0 +1 @@
1
+ omdev==0.0.74
@@ -13,7 +13,7 @@ urls = {source = 'https://github.com/wrmsr/om'}
13
13
  license = 'BSD-3-Clause'
14
14
  readme = 'README.md'
15
15
  requires-python = '>=3.14'
16
- version = '0.0.73'
16
+ version = '0.0.74'
17
17
  classifiers = [
18
18
  'Intended Audience :: Developers',
19
19
  'Operating System :: OS Independent',
@@ -24,7 +24,7 @@ classifiers = [
24
24
  ]
25
25
  description = 'omdev'
26
26
  dependencies = [
27
- 'omdev == 0.0.73',
27
+ 'omdev == 0.0.74',
28
28
  ]
29
29
 
30
30
  [tool.setuptools]
@@ -1 +0,0 @@
1
- omdev==0.0.73
File without changes
File without changes
File without changes
File without changes
File without changes