udint.h needs to include types.h in order to get the __UD_STANDALONE__
macro. Otherwise it will think we're in non-standalone mode and fail to
compile in standalone mode.
(Issue #62) In __UD_STANDALONE__ mode, the onus is now on the client to
make sure that the right set of files are included prior to including
udis86.h in their environment. types.h no longer assumes the
availability of header files. I haven't tried this myself in a kernel
build environment, but I'm hoping someone will, and get back with
problems if any.
* added dllexport modifiers for MSVC compilation
* included extern.h from within decode.c to expose its symbols
* deleted ud_insn_sext_imm as it isn't referenced anywhere
Defines are required for uint16_t etc., size_t, and va_list in case of
__UD_STANDALONE on linux. The stddef.h and stdarg.h defines would
otherwise come from stdio.h were it included.
As noted in Issue #48, the api ud_insn_mnemonic was documented, but
never implemented. This change adds the function, some tests and
updated documentation.