dl: run vfmt over all .v files

pull/7351/head
Delyan Angelov 2020-12-15 18:55:04 +02:00
parent 50c09e074a
commit 3fdff93c3f
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
3 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ module dl
pub const (
version = 1
dl_ext = get_shared_library_extension()
dl_ext = get_shared_library_extension()
)
pub fn get_shared_library_extension() string {

View File

@ -1,7 +1,7 @@
module dl
pub const (
rtld_now = 0
rtld_now = 0
rtld_lazy = 0
)

View File

@ -6,7 +6,7 @@ import dl
type FNAdder = fn (int, int) int
fn main() {
library_file_path := os.join_path(os.getwd(), 'library${dl.dl_ext}')
library_file_path := os.join_path(os.getwd(), 'library$dl.dl_ext')
handle := dl.open(library_file_path, dl.rtld_lazy)
eprintln('handle: ${ptr_str(handle)}')
mut f := &FNAdder(0)