Mercurial > pub > dyncall > bindings
view 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 |
line wrap: on
line source
%% Copyright (c) 2014 Erik Mackdanz <erikmack@gmail.com> %% Permission to use, copy, modify, and distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES %% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF %% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR %% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES %% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN %% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF %% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -define(DC_CALL_C_DEFAULT, 0). -define(DC_CALL_C_ELLIPSIS, 100). -define(DC_CALL_C_ELLIPSIS_VARARGS, 101). -define(DC_CALL_C_X86_CDECL, 1). -define(DC_CALL_C_X86_WIN32_STD, 2). -define(DC_CALL_C_X86_WIN32_FAST_MS, 3). -define(DC_CALL_C_X86_WIN32_FAST_GNU, 4). -define(DC_CALL_C_X86_WIN32_THIS_MS, 5). -define(DC_CALL_C_X86_WIN32_THIS_GNU, 6). -define(DC_CALL_C_X64_WIN64, 7). -define(DC_CALL_C_X64_SYSV, 8). -define(DC_CALL_C_PPC32_DARWIN, 9). -define(DC_CALL_C_PPC32_OSX, ?DC_CALL_C_PPC32_DARWIN). -define(DC_CALL_C_ARM_ARM_EABI, 10). -define(DC_CALL_C_ARM_THUMB_EABI, 11). -define(DC_CALL_C_ARM_ARMHF, 30). -define(DC_CALL_C_MIPS32_EABI, 12). -define(DC_CALL_C_MIPS32_PSPSDK, ?DC_CALL_C_MIPS32_EABI). -define(DC_CALL_C_PPC32_SYSV, 13). -define(DC_CALL_C_PPC32_LINUX, ?DC_CALL_C_PPC32_SYSV). -define(DC_CALL_C_ARM_ARM, 14). -define(DC_CALL_C_ARM_THUMB, 15). -define(DC_CALL_C_MIPS32_O32, 16). -define(DC_CALL_C_MIPS64_N32, 17). -define(DC_CALL_C_MIPS64_N64, 18). -define(DC_CALL_C_X86_PLAN9, 19). -define(DC_CALL_C_SPARC32, 20). -define(DC_CALL_C_SPARC64, 21). -define(DC_CALL_C_ARM64, 22). -define(DC_CALL_C_PPC64, 23). -define(DC_CALL_C_PPC64_LINUX, ?DC_CALL_C_PPC64). -define(DC_CALL_SYS_DEFAULT, 200). -define(DC_CALL_SYS_X86_INT80H_LINUX, 201). -define(DC_CALL_SYS_X86_INT80H_BSD, 202). -define(DC_CALL_SYS_X64_SYSCALL_SYSV, 204). -define(DC_CALL_SYS_PPC32, 210). -define(DC_CALL_SYS_PPC64, 211). -define(DC_ERROR_NONE, 0). -define(DC_ERROR_UNSUPPORTED_MODE, -1).