annotate erlang/erldc/include/dyncall.hrl @ 46:c21d1c2c84e1

- removed pydc.py wrapper overhead (which only called pydcext.so functions, directly, anyways) * implies renaming pydcext.* to pydc.* * while at it, iterate directly over args that are passed in (before we did extract fptr, sig and a tuple for the args and iterated over latter afterwards); we might have a tiny perf improvement now - added type stub as package_data
author Tassilo Philipp
date Fri, 13 Nov 2020 14:10:31 +0100
parents 3abd4f1ab473
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1 %% Copyright (c) 2014 Erik Mackdanz <erikmack@gmail.com>
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
3 %% Permission to use, copy, modify, and distribute this software for any
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
4 %% purpose with or without fee is hereby granted, provided that the above
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5 %% copyright notice and this permission notice appear in all copies.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
6
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7 %% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
8 %% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
9 %% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
10 %% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
11 %% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
12 %% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
13 %% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
14
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
15 -define(DC_CALL_C_DEFAULT, 0).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
16 -define(DC_CALL_C_ELLIPSIS, 100).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
17 -define(DC_CALL_C_ELLIPSIS_VARARGS, 101).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
18 -define(DC_CALL_C_X86_CDECL, 1).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
19 -define(DC_CALL_C_X86_WIN32_STD, 2).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
20 -define(DC_CALL_C_X86_WIN32_FAST_MS, 3).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
21 -define(DC_CALL_C_X86_WIN32_FAST_GNU, 4).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
22 -define(DC_CALL_C_X86_WIN32_THIS_MS, 5).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
23 -define(DC_CALL_C_X86_WIN32_THIS_GNU, 6).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
24 -define(DC_CALL_C_X64_WIN64, 7).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
25 -define(DC_CALL_C_X64_SYSV, 8).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
26 -define(DC_CALL_C_PPC32_DARWIN, 9).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
27 -define(DC_CALL_C_PPC32_OSX, ?DC_CALL_C_PPC32_DARWIN).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
28 -define(DC_CALL_C_ARM_ARM_EABI, 10).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
29 -define(DC_CALL_C_ARM_THUMB_EABI, 11).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
30 -define(DC_CALL_C_ARM_ARMHF, 30).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
31 -define(DC_CALL_C_MIPS32_EABI, 12).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
32 -define(DC_CALL_C_MIPS32_PSPSDK, ?DC_CALL_C_MIPS32_EABI).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
33 -define(DC_CALL_C_PPC32_SYSV, 13).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
34 -define(DC_CALL_C_PPC32_LINUX, ?DC_CALL_C_PPC32_SYSV).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
35 -define(DC_CALL_C_ARM_ARM, 14).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
36 -define(DC_CALL_C_ARM_THUMB, 15).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
37 -define(DC_CALL_C_MIPS32_O32, 16).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
38 -define(DC_CALL_C_MIPS64_N32, 17).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
39 -define(DC_CALL_C_MIPS64_N64, 18).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
40 -define(DC_CALL_C_X86_PLAN9, 19).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
41 -define(DC_CALL_C_SPARC32, 20).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
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
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
46 -define(DC_CALL_SYS_DEFAULT, 200).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
47 -define(DC_CALL_SYS_X86_INT80H_LINUX, 201).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
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
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
52
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
53 -define(DC_ERROR_NONE, 0).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
54 -define(DC_ERROR_UNSUPPORTED_MODE, -1).