teptris 0.3.9.1-powerpc64le-linux → 0.3.11.1-powerpc64le-linux
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 +4 -4
- data/ext/teptris_ext/engine/README.md +1 -1
- data/ext/teptris_ext/engine/src/include/teptris/version.h +1 -1
- data/ext/teptris_ext/engine/src/teptris/emit/writer.c +19 -9
- data/lib/teptris/3.3/teptris_ext.so +0 -0
- data/lib/teptris/3.4/teptris_ext.so +0 -0
- data/lib/teptris/4.0/teptris_ext.so +0 -0
- data/lib/teptris/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 229c246a92fe476475b7152e6995572ee05cebc0eb58d4d0de3bb8f8be37e6af
|
|
4
|
+
data.tar.gz: a273009802a2fa45835157d4669637d1cfe2683c704b967cc759c1a886a33eb4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 33da44adf53735824feb79c801b37314f44e59211e1fd570631598f111048db2f32f5bcb736baf65814969cca667df63a823a684a7af77a901f209a9bed06aea
|
|
7
|
+
data.tar.gz: ba24de42c888e40799e222304a94a2d078dee3750119f86f75a85dfd862dae275d95aa60bbe47ebf2444f607c7c115800aa6ade3fd5deb5a4c58539480d9a11a
|
|
@@ -9,7 +9,11 @@
|
|
|
9
9
|
*
|
|
10
10
|
* Op grammar (little-endian, mirroring the flatten payload styles):
|
|
11
11
|
* 0x00 END-OF-CHUNK
|
|
12
|
-
* 0x01 KEY u8 klen <bytes> (klen 0
|
|
12
|
+
* 0x01 KEY u8 klen <bytes> (klen 0 = the EMPTY key '';
|
|
13
|
+
* array ELEMENTS carry no key op at all - the
|
|
14
|
+
* array-context prefix never consults the key,
|
|
15
|
+
* so a stale/stray key inside an array is a
|
|
16
|
+
* grammar violation, enforced ERR_ARG)
|
|
13
17
|
* 0x02 STRING u32 len <bytes>
|
|
14
18
|
* 0x03 INT i64
|
|
15
19
|
* 0x04 FLOAT f64
|
|
@@ -111,16 +115,28 @@ void teptris_writer_free(teptris_writer *w)
|
|
|
111
115
|
static void w_take_key(teptris_writer *w, const char *k, size_t klen)
|
|
112
116
|
{
|
|
113
117
|
free(w->key);
|
|
114
|
-
w->key = NULL;
|
|
115
|
-
w->key_len = 0;
|
|
116
118
|
if (klen > 0) {
|
|
117
119
|
w->key = malloc(klen);
|
|
118
120
|
if (w->key == NULL) {
|
|
121
|
+
w->key = NULL;
|
|
122
|
+
w->key_len = 0;
|
|
119
123
|
w->st = TEPTRIS_ERR_ALLOC;
|
|
120
124
|
return;
|
|
121
125
|
}
|
|
122
126
|
memcpy(w->key, k, klen);
|
|
123
127
|
w->key_len = klen;
|
|
128
|
+
} else {
|
|
129
|
+
/* an empty key stays PENDING: NULL means "no key", and the
|
|
130
|
+
* keyed-prefix checks treat NULL as absent. The parse side
|
|
131
|
+
* accepts '' = 1, so the writer must emit it ('' via emit_key) */
|
|
132
|
+
w->key = malloc(1);
|
|
133
|
+
if (w->key == NULL) {
|
|
134
|
+
w->key_len = 0;
|
|
135
|
+
w->st = TEPTRIS_ERR_ALLOC;
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
w->key[0] = '\0';
|
|
139
|
+
w->key_len = 0;
|
|
124
140
|
}
|
|
125
141
|
}
|
|
126
142
|
|
|
@@ -392,12 +408,6 @@ teptris_status teptris_writer_feed(teptris_writer *w, const uint8_t *ops,
|
|
|
392
408
|
emit_dt(&w->out, &dt, (teptris_kind)kb);
|
|
393
409
|
w_end_line(w);
|
|
394
410
|
break;
|
|
395
|
-
if (w->st != TEPTRIS_OK) {
|
|
396
|
-
break;
|
|
397
|
-
}
|
|
398
|
-
emit_dt(&w->out, &dt, (teptris_kind)kb);
|
|
399
|
-
w_end_line(w);
|
|
400
|
-
break;
|
|
401
411
|
}
|
|
402
412
|
case W_BEGIN_TABLE: {
|
|
403
413
|
wframe *t = w->top;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/teptris/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: teptris
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.11.1
|
|
5
5
|
platform: powerpc64le-linux
|
|
6
6
|
authors:
|
|
7
7
|
- teptris contributors
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: A native C extension over libteptris, a C99 TOML 1.1 parser/emitter.
|
|
14
14
|
API shape mirrors the tomlib gem.
|