summary refs log tree commit diff stats
path: root/tests/accept
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2024-10-03 20:35:21 +0300
committerGitHub <noreply@github.com>2024-10-03 19:35:21 +0200
commit89978b48baeed0c745d45d666a9786c8d9457581 (patch)
treeb5cf3cf90d1913bbf492b09afa3157898555e57b /tests/accept
parentd6a71a10671b66ee4f5be09f99234b3d834e7fce (diff)
downloadNim-89978b48baeed0c745d45d666a9786c8d9457581.tar.gz
use cbuilder for seq type generation (#24202)
`addSimpleStruct` is just so the compiler doesn't use so much extra
computation on analyzing the `typ` parameter for `addStruct`, which
doesn't change anything for `seq` types. We could probably still get
away with using `addStruct` instead, or making `addStruct` accept `nil`
as the `typ` argument but this would be even more computation.

There were a lot of hidden issues with `addStruct` being a template &
template argument substitution, so most of the behavior is moved into
`startStruct`/`finishStruct` procs.

This is turning out to be a lot of code for just a couple of changed
lines, we might have to split `cbuilder` into multiple modules.
Diffstat (limited to 'tests/accept')
0 files changed, 0 insertions, 0 deletions
0.7.4' href='/ahoang/Nim/commit/tests/thallo.nim?h=devel&id=439aa2d04d5528b5aed288f70895515d1da2dc3d'>439aa2d04 ^
405b86068



07d5a8085 ^

439aa2d04 ^


07d5a8085 ^



405b86068
439aa2d04 ^















405b86068





439aa2d04 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79