Skip to content

Commit 579529b

Browse files
committed
Fix argument initialization in args_envs.cc by updating process argument structure
- Changed the initialization of process arguments from a string to a native__process_args structure for improved clarity and consistency in argument handling. - This update enhances the readability of the code and aligns with recent refactoring efforts in process management.
1 parent d0349bc commit 579529b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

examples/0035.process/args_envs.cc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ int main(int argc, char **argv)
1919

2020
::fast_io::native_process p{
2121
::fast_io::mnp::os_c_str(argv[1]),
22-
{"char",
23-
L"wchar Double\"quotation\"marks",
24-
u8"u8",
25-
u"u16",
26-
U"u32",
27-
114514,
28-
115145.1919810,
29-
::fast_io::concat_fast_io("This ", 1, "s ", ::fast_io::mnp::code_cvt_os_c_str(u8"just "), "a parameter")},
22+
native_process_args{"char",
23+
L"wchar Double\"quotation\"marks",
24+
u8"u8",
25+
u"u16",
26+
U"u32",
27+
114514,
28+
115145.1919810,
29+
::fast_io::concat_fast_io("This ", 1, "s ", ::fast_io::mnp::code_cvt_os_c_str(u8"just "), "a parameter")},
3030
{"env1",
3131
L"env2",
3232
3,

0 commit comments

Comments
 (0)