File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,20 +85,34 @@ pub fn get_v_files_from_dir(dir string, user_defines []string) []string {
8585// map to the same key, allowing detection of specialized vs default variants.
8686fn fname_without_platform_postfix (file string ) string {
8787 return file.replace_each ([
88- 'default.c.v' , '_' ,
89- 'nix.c.v' , '_' ,
90- 'windows.c.v' , '_' ,
91- 'linux.c.v' , '_' ,
92- 'darwin.c.v' , '_' ,
93- 'macos.c.v' , '_' ,
94- 'android.c.v' , '_' ,
95- 'termux.c.v' , '_' ,
96- 'android_outside_termux.c.v' , '_' ,
97- 'freebsd.c.v' , '_' ,
98- 'openbsd.c.v' , '_' ,
99- 'netbsd.c.v' , '_' ,
100- 'dragonfly.c.v' , '_' ,
101- 'solaris.c.v' , '_' ,
88+ 'default.c.v' ,
89+ '_' ,
90+ 'nix.c.v' ,
91+ '_' ,
92+ 'windows.c.v' ,
93+ '_' ,
94+ 'linux.c.v' ,
95+ '_' ,
96+ 'darwin.c.v' ,
97+ '_' ,
98+ 'macos.c.v' ,
99+ '_' ,
100+ 'android.c.v' ,
101+ '_' ,
102+ 'termux.c.v' ,
103+ '_' ,
104+ 'android_outside_termux.c.v' ,
105+ '_' ,
106+ 'freebsd.c.v' ,
107+ '_' ,
108+ 'openbsd.c.v' ,
109+ '_' ,
110+ 'netbsd.c.v' ,
111+ '_' ,
112+ 'dragonfly.c.v' ,
113+ '_' ,
114+ 'solaris.c.v' ,
115+ '_' ,
102116 ])
103117}
104118
Original file line number Diff line number Diff line change 8181 spawned_fns map [string ]bool // spawn wrapper names already emitted
8282 spawn_wrapper_defs []string // spawn wrapper struct + function definitions
8383 // @[live] hot code reloading
84- live_fns []LiveFnInfo // @[live] functions detected during code generation
85- live_source_file string // source file containing @[live] functions
86- test_fn_names []string // test function names collected in Pass 4
87- has_main bool // whether a main() function was found in Pass 4
88- fn_owner_file map [string ]int // fn_key -> first file index (for parallel dedup)
84+ live_fns []LiveFnInfo // @[live] functions detected during code generation
85+ live_source_file string // source file containing @[live] functions
86+ test_fn_names []string // test function names collected in Pass 4
87+ has_main bool // whether a main() function was found in Pass 4
88+ fn_owner_file map [string ]int // fn_key -> first file index (for parallel dedup)
8989 typedef_c_types map [string ]bool // C struct names with @[typedef] attribute (emit without 'struct' prefix)
9090}
9191
You can’t perform that action at this time.
0 commit comments