annotate erlang/erldc/include/dyncall.hrl @ 29:6cc2b7fc7ea2

bigger pydc update: - cleanups and refactoring - python 2 fixes in var conversions (especially w/ respect to int vs long) - fix to pydc.free() which didn't work at all - fix to return python bool as actual bool - test lib covering all conversions (manual verification, though :-/)
author Tassilo Philipp
date Wed, 08 Apr 2020 22:17:43 +0200
parents 0cfcc391201f
children 3abd4f1ab473
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).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
43 -define(DC_CALL_SYS_DEFAULT, 200).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
44 -define(DC_CALL_SYS_X86_INT80H_LINUX, 201).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
45 -define(DC_CALL_SYS_X86_INT80H_BSD, 202).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
46
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
47 -define(DC_ERROR_NONE, 0).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
48 -define(DC_ERROR_UNSUPPORTED_MODE, -1).