Commit 0a5edb2
committed
Merge branch 'framework/strtok_portability_fix' into hotfix-v8.2.2 (PR #1229)
This merge fixes a portability issue in the parse_macros function used by the
MPAS registry.
The parse_macros function that is used by the MPAS registry parse tool
previously made use of the state/saveptr/lasts argument to strtok_r when parsing
command-line macro definitions. This was not portable and resulted in
incorrectly generated output on some systems.
This merge reworks the parse_macros function so that it no longer uses the
state/saveptr/lasts argument to strtok_r and instead relies only on the return
value of strtok_r to provide portability across systems with different strtok_r
implementations.
* framework/strtok_portability_fix:
Fix portability issue in parse_macros function used by the MPAS registry1 file changed
Lines changed: 14 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
313 | | - | |
314 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
315 | 316 | | |
316 | 317 | | |
317 | | - | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
320 | 323 | | |
321 | 324 | | |
322 | 325 | | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
327 | 332 | | |
328 | 333 | | |
329 | 334 | | |
| |||
0 commit comments