Mercurial > pub > dyncall > bindings
annotate erlang/erldc/include/dyncall.hrl @ 66:7a61dd082341 default tip
pydc:
- fix double free triggered by capsule destructor, when freeing pydc and callback objects, manually
author | Tassilo Philipp |
---|---|
date | Fri, 24 May 2024 18:16:29 +0200 |
parents | 3abd4f1ab473 |
children |
rev | line source |
---|---|
0 | 1 %% Copyright (c) 2014 Erik Mackdanz <erikmack@gmail.com> |
2 | |
3 %% Permission to use, copy, modify, and distribute this software for any | |
4 %% purpose with or without fee is hereby granted, provided that the above | |
5 %% copyright notice and this permission notice appear in all copies. | |
6 | |
7 %% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
8 %% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
9 %% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
10 %% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
11 %% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
12 %% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
13 %% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
14 | |
15 -define(DC_CALL_C_DEFAULT, 0). | |
16 -define(DC_CALL_C_ELLIPSIS, 100). | |
17 -define(DC_CALL_C_ELLIPSIS_VARARGS, 101). | |
18 -define(DC_CALL_C_X86_CDECL, 1). | |
19 -define(DC_CALL_C_X86_WIN32_STD, 2). | |
20 -define(DC_CALL_C_X86_WIN32_FAST_MS, 3). | |
21 -define(DC_CALL_C_X86_WIN32_FAST_GNU, 4). | |
22 -define(DC_CALL_C_X86_WIN32_THIS_MS, 5). | |
23 -define(DC_CALL_C_X86_WIN32_THIS_GNU, 6). | |
24 -define(DC_CALL_C_X64_WIN64, 7). | |
25 -define(DC_CALL_C_X64_SYSV, 8). | |
26 -define(DC_CALL_C_PPC32_DARWIN, 9). | |
27 -define(DC_CALL_C_PPC32_OSX, ?DC_CALL_C_PPC32_DARWIN). | |
28 -define(DC_CALL_C_ARM_ARM_EABI, 10). | |
29 -define(DC_CALL_C_ARM_THUMB_EABI, 11). | |
30 -define(DC_CALL_C_ARM_ARMHF, 30). | |
31 -define(DC_CALL_C_MIPS32_EABI, 12). | |
32 -define(DC_CALL_C_MIPS32_PSPSDK, ?DC_CALL_C_MIPS32_EABI). | |
33 -define(DC_CALL_C_PPC32_SYSV, 13). | |
34 -define(DC_CALL_C_PPC32_LINUX, ?DC_CALL_C_PPC32_SYSV). | |
35 -define(DC_CALL_C_ARM_ARM, 14). | |
36 -define(DC_CALL_C_ARM_THUMB, 15). | |
37 -define(DC_CALL_C_MIPS32_O32, 16). | |
38 -define(DC_CALL_C_MIPS64_N32, 17). | |
39 -define(DC_CALL_C_MIPS64_N64, 18). | |
40 -define(DC_CALL_C_X86_PLAN9, 19). | |
41 -define(DC_CALL_C_SPARC32, 20). | |
42 -define(DC_CALL_C_SPARC64, 21). | |
41
3abd4f1ab473
- erlang binding: update to dc 1.1 and added note about missing feature
Tassilo Philipp
parents:
0
diff
changeset
|
43 -define(DC_CALL_C_ARM64, 22). |
3abd4f1ab473
- erlang binding: update to dc 1.1 and added note about missing feature
Tassilo Philipp
parents:
0
diff
changeset
|
44 -define(DC_CALL_C_PPC64, 23). |
3abd4f1ab473
- erlang binding: update to dc 1.1 and added note about missing feature
Tassilo Philipp
parents:
0
diff
changeset
|
45 -define(DC_CALL_C_PPC64_LINUX, ?DC_CALL_C_PPC64). |
0 | 46 -define(DC_CALL_SYS_DEFAULT, 200). |
47 -define(DC_CALL_SYS_X86_INT80H_LINUX, 201). | |
48 -define(DC_CALL_SYS_X86_INT80H_BSD, 202). | |
41
3abd4f1ab473
- erlang binding: update to dc 1.1 and added note about missing feature
Tassilo Philipp
parents:
0
diff
changeset
|
49 -define(DC_CALL_SYS_X64_SYSCALL_SYSV, 204). |
3abd4f1ab473
- erlang binding: update to dc 1.1 and added note about missing feature
Tassilo Philipp
parents:
0
diff
changeset
|
50 -define(DC_CALL_SYS_PPC32, 210). |
3abd4f1ab473
- erlang binding: update to dc 1.1 and added note about missing feature
Tassilo Philipp
parents:
0
diff
changeset
|
51 -define(DC_CALL_SYS_PPC64, 211). |
0 | 52 |
53 -define(DC_ERROR_NONE, 0). | |
54 -define(DC_ERROR_UNSUPPORTED_MODE, -1). |