all: update attributes to use new syntax

This commit is contained in:
Joe C 2023-11-15 16:16:01 +11:00 committed by GitHub
parent dd81cb98c6
commit 757929392e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
739 changed files with 2982 additions and 2982 deletions

View file

@ -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}'
}

View file

@ -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