mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
dl: run vfmt over all .v files
This commit is contained in:
parent
50c09e074a
commit
3fdff93c3f
3 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
module dl
|
||||
|
||||
pub const (
|
||||
rtld_now = 0
|
||||
rtld_now = 0
|
||||
rtld_lazy = 0
|
||||
)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue