/
dynext.h
75 lines (64 loc) · 2.12 KB
/
dynext.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
* Copyright (C) 2003-2010, Parrot Foundation.
*/
/* dynext.h
*
*
* Parrot dynamic extensions
*/
#ifndef PARROT_DYNEXT_H_GUARD
#define PARROT_DYNEXT_H_GUARD
typedef PMC *(*dynext_load_func)(PARROT_INTERP);
typedef void (*dynext_init_func)(PARROT_INTERP, ARGIN_NULLOK(PMC *));
/* HEADERIZER BEGIN: src/dynext.c */
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
PARROT_EXPORT
PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
PMC * Parrot_dyn_clone_lib_into(
ARGMOD(Interp *d),
ARGMOD(Interp *s),
ARGIN(PMC *lib_pmc))
__attribute__nonnull__(1)
__attribute__nonnull__(2)
__attribute__nonnull__(3)
FUNC_MODIFIES(*d)
FUNC_MODIFIES(*s);
PARROT_EXPORT
PARROT_CAN_RETURN_NULL
void * Parrot_dyn_dlsym_str(PARROT_INTERP,
ARGIN_NULLOK(void *handle),
ARGIN_NULLOK(const STRING *symbol))
__attribute__nonnull__(1);
PARROT_EXPORT
PARROT_CANNOT_RETURN_NULL
PMC * Parrot_dyn_init_lib(PARROT_INTERP,
NULLOK(dynext_load_func load_func),
NULLOK(dynext_init_func init_func))
__attribute__nonnull__(1);
PARROT_EXPORT
PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
PMC * Parrot_dyn_load_lib(PARROT_INTERP,
ARGIN_NULLOK(STRING *lib),
ARGIN_NULLOK(PMC *parameters))
__attribute__nonnull__(1);
#define ASSERT_ARGS_Parrot_dyn_clone_lib_into __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(d) \
, PARROT_ASSERT_ARG(s) \
, PARROT_ASSERT_ARG(lib_pmc))
#define ASSERT_ARGS_Parrot_dyn_dlsym_str __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_Parrot_dyn_init_lib __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_Parrot_dyn_load_lib __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
/* HEADERIZER END: src/dynext.c */
#endif /* PARROT_DYNEXT_H_GUARD */
/*
* Local variables:
* c-file-style: "parrot"
* End:
* vim: expandtab shiftwidth=4 cinoptions='\:2=2' :
*/