ns-eel-addfuncs.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. Nullsoft Expression Evaluator Library (NS-EEL)
  3. Copyright (C) 1999-2003 Nullsoft, Inc.
  4. ns-eel-addfuncs.h: defines macros useful for adding functions to the compiler
  5. This software is provided 'as-is', without any express or implied
  6. warranty. In no event will the authors be held liable for any damages
  7. arising from the use of this software.
  8. Permission is granted to anyone to use this software for any purpose,
  9. including commercial applications, and to alter it and redistribute it
  10. freely, subject to the following restrictions:
  11. 1. The origin of this software must not be misrepresented; you must not
  12. claim that you wrote the original software. If you use this software
  13. in a product, an acknowledgment in the product documentation would be
  14. appreciated but is not required.
  15. 2. Altered source versions must be plainly marked as such, and must not be
  16. misrepresented as being the original software.
  17. 3. This notice may not be removed or altered from any source distribution.
  18. */
  19. #ifndef __NS_EEL_ADDFUNCS_H__
  20. #define __NS_EEL_ADDFUNCS_H__
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. struct _compileContext;
  25. typedef void (*NSEEL_PPPROC)(void *data, int data_size, struct _compileContext *userfunc_data);
  26. void NSEEL_PProc_RAM(void *data, int data_size, struct _compileContext *ctx);
  27. void NSEEL_PProc_THIS(void *data, int data_size, struct _compileContext *ctx);
  28. void _asm_generic3parm(void); // 3 double * parms, returning double *
  29. void _asm_generic3parm_end(void);
  30. void _asm_generic3parm_retd(void); // 3 double * parms, returning double
  31. void _asm_generic3parm_retd_end(void);
  32. void _asm_generic2parm(void); // 2 double * parms, returning double *
  33. void _asm_generic2parm_end(void);
  34. void _asm_generic2parm_retd(void); // 2 double * parms, returning double
  35. void _asm_generic2parm_retd_end(void);
  36. void _asm_generic1parm(void); // 1 double * parms, returning double *
  37. void _asm_generic1parm_end(void);
  38. void _asm_generic1parm_retd(void); // 1 double * parms, returning double
  39. void _asm_generic1parm_retd_end(void);
  40. void _asm_megabuf(void);
  41. void _asm_megabuf_end(void);
  42. #if EEL_F_SIZE == 4
  43. #define EEL_F_SSTR "4"
  44. #define EEL_F_SUFFIX "s"
  45. #else
  46. #define EEL_F_SSTR "8"
  47. #define EEL_F_SUFFIX "l"
  48. #endif
  49. #ifdef _MSC_VER
  50. #define NSEEL_CGEN_CALL __cdecl
  51. #else
  52. #define NSEEL_CGEN_CALL
  53. #endif
  54. #ifdef __cplusplus
  55. };
  56. #endif
  57. #endif//__NS_EEL_ADDFUNCS_H__