Commit 09d7005
committed
Refactored variable length array code to use alloca()
While VLAs are supported in C99 and C11, they do pose some portability issues so best to avoid their use.
alloca() allocates on the stack frame and is free'd on exit from the function so essentially equivalent.
Ticket: ENT-14208
Changelog: none
(cherry picked from commit 6e95201)1 parent e84b45e commit 09d7005
5 files changed
Lines changed: 9 additions & 9 deletions
File tree
- cf-serverd
- libpromises
- tests/acceptance
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
| 229 | + | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7396 | 7396 | | |
7397 | 7397 | | |
7398 | 7398 | | |
7399 | | - | |
7400 | | - | |
7401 | | - | |
| 7399 | + | |
| 7400 | + | |
7402 | 7401 | | |
7403 | 7402 | | |
7404 | 7403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
115 | | - | |
116 | | - | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments