mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: update attributes to use new syntax
This commit is contained in:
parent
dd81cb98c6
commit
757929392e
739 changed files with 2982 additions and 2982 deletions
|
@ -8,7 +8,7 @@ pub const rtld_next = voidptr(-1)
|
|||
|
||||
// get_shared_library_extension returns the platform dependent shared library extension
|
||||
// i.e. .dll on windows, .so on most unixes, .dylib on macos.
|
||||
[inline]
|
||||
@[inline]
|
||||
pub fn get_shared_library_extension() string {
|
||||
return $if windows {
|
||||
'.dll'
|
||||
|
@ -21,7 +21,7 @@ pub fn get_shared_library_extension() string {
|
|||
|
||||
// get_libname returns a library name with the operating system specific extension for
|
||||
// shared libraries.
|
||||
[inline]
|
||||
@[inline]
|
||||
pub fn get_libname(libname string) string {
|
||||
return '${libname}${dl.dl_ext}'
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[has_globals]
|
||||
@[has_globals]
|
||||
module loader
|
||||
|
||||
import dl
|
||||
|
@ -43,7 +43,7 @@ pub fn registered_dl_loader_keys() []string {
|
|||
}
|
||||
|
||||
// DynamicLibLoader is a wrapper around dlopen, dlsym and dlclose.
|
||||
[heap]
|
||||
@[heap]
|
||||
pub struct DynamicLibLoader {
|
||||
pub:
|
||||
key string
|
||||
|
@ -55,7 +55,7 @@ mut:
|
|||
}
|
||||
|
||||
// DynamicLibLoaderConfig is a configuration for DynamicLibLoader.
|
||||
[params]
|
||||
@[params]
|
||||
pub struct DynamicLibLoaderConfig {
|
||||
// flags is the flags for dlopen.
|
||||
flags int = dl.rtld_lazy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue