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).
|
|
43 -define(DC_CALL_SYS_DEFAULT, 200).
|
|
44 -define(DC_CALL_SYS_X86_INT80H_LINUX, 201).
|
|
45 -define(DC_CALL_SYS_X86_INT80H_BSD, 202).
|
|
46
|
|
47 -define(DC_ERROR_NONE, 0).
|
|
48 -define(DC_ERROR_UNSUPPORTED_MODE, -1).
|