1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

docs: adding skeleton README.md files for all vlib modules (#13034)

This commit is contained in:
jeffmikels
2022-01-05 11:06:08 -05:00
committed by GitHub
parent 59357e873d
commit a60b381d5e
49 changed files with 416 additions and 125 deletions

6
vlib/dl/README.md Normal file
View File

@@ -0,0 +1,6 @@
## Description:
`dl` can be used to Dynamically Load a library during runtime.
It is a thin wrapper over `LoadLibrary` on Windows, and `dlopen` on Unix.
Using it, you can implement a plugin system for your application.

View File

@@ -1,9 +1,8 @@
module dl
pub const (
version = 1
dl_ext = get_shared_library_extension()
)
pub const version = 1
pub const dl_ext = get_shared_library_extension()
// get_shared_library_extension returns the platform dependent shared library extension
// i.e. .dll on windows, .so on most unixes, .dylib on macos.

View File

@@ -6,10 +6,9 @@ $if linux {
#flag -ldl
}
pub const (
rtld_now = C.RTLD_NOW
rtld_lazy = C.RTLD_LAZY
)
pub const rtld_now = C.RTLD_NOW
pub const rtld_lazy = C.RTLD_LAZY
fn C.dlopen(filename &char, flags int) voidptr

View File

@@ -1,9 +1,8 @@
module dl
pub const (
rtld_now = 0
rtld_lazy = 0
)
pub const rtld_now = 0
pub const rtld_lazy = 0
fn C.LoadLibrary(libfilename &u16) voidptr