teptris 0.2.35 → 0.2.37

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 854e2ab357a3bc174ec49c51586710ee33c5c2643c4d73f785f5b32cf3c0b302
4
- data.tar.gz: 803c7751c9353e5282b493445a576f8dfbf5149982ae322a4af2169cf854292c
3
+ metadata.gz: 450227eac7f8694d924e1ab89b8c3e6b4ad1dd8992dcb555befccd4e4d19217a
4
+ data.tar.gz: 52f5b1420d40383379a73ca985e91d77c1cf853582324352f1c49e51c9e0fba2
5
5
  SHA512:
6
- metadata.gz: 91fad52c3247a051f3de07f452efe9c2730da533e118a3c8c404e12e312e8d85c5b296ce9497eb3e55563e3cc5f2f3e879b5c4641d2f1601f1962699a887ed6b
7
- data.tar.gz: a7fdfb8aae2c2308aeab633a21aeb028cc9e78d5ed0ee8829d0b6ef931f2a5bf60b84b4e9f062f2a33c7054c30f755df18575cf407e272218d6dcac0f5acd170
6
+ metadata.gz: f98c7bb62427ffe28d15069c5fe616010a980965a20ebbf95f28c6bb6018b905a83edb1104e69f74fa704b3c1c2fea94470dac39439b2ec0559a40770fc89d5d
7
+ data.tar.gz: 811af19a15dee49eb0b6b36c4ab5210b8035d1d69c164641f54b575a24a9bf545871d664aa91ef36c22c10498e32d407e7fa2f598291a5a3555feb4d96867f8e
@@ -3,7 +3,7 @@
3
3
 
4
4
  #define TEPTRIS_VERSION_MAJOR 0
5
5
  #define TEPTRIS_VERSION_MINOR 1
6
- #define TEPTRIS_VERSION_PATCH 23
7
- #define TEPTRIS_VERSION_STRING "0.1.23"
6
+ #define TEPTRIS_VERSION_PATCH 24
7
+ #define TEPTRIS_VERSION_STRING "0.1.24"
8
8
 
9
9
  #endif /* TEPTRIS_VERSION_H */
@@ -42,12 +42,14 @@ struct teptris_node {
42
42
  } as;
43
43
  };
44
44
 
45
- /* _Static_assert is C11; g++ (unlike clang++) has no such extension */
45
+ /* C99/MSVC-C-mode/nd C++ portable static assert (negative array
46
+ * size on violation); _Static_assert would pin us to C11+ */
46
47
  #if defined(__cplusplus)
47
- static_assert(sizeof(teptris_node) <= 64, "teptris_node must stay compact");
48
+ #define TEP_SA(cond, name) static_assert(cond, #name)
48
49
  #else
49
- _Static_assert(sizeof(teptris_node) <= 64, "teptris_node must stay compact");
50
+ #define TEP_SA(cond, name) typedef char tep_sa_##name[(cond) ? 1 : -1]
50
51
  #endif
52
+ TEP_SA(sizeof(teptris_node) <= 64, node_fits_64);
51
53
 
52
54
  struct teptris_document {
53
55
  teptris_arena arena;
@@ -1,3 +1,3 @@
1
1
  module Teptris
2
- VERSION = "0.2.35"
2
+ VERSION = "0.2.37"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teptris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.35
4
+ version: 0.2.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - teptris contributors
@@ -10,7 +10,7 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2026-09-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: A native C extension over libteptris, a C11 TOML 1.1 parser/emitter.
13
+ description: A native C extension over libteptris, a C99 TOML 1.1 parser/emitter.
14
14
  API shape mirrors the tomlib gem.
15
15
  email:
16
16
  executables: []