ns-eel-addfuncs.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. void *NSEEL_PProc_RAM(void *data, int data_size, struct _compileContext *ctx);
  26. void *NSEEL_PProc_THIS(void *data, int data_size, struct _compileContext *ctx);
  27. #ifdef EEL_TARGET_PORTABLE
  28. extern EEL_BC_TYPE _asm_generic3parm[]; // 3 double * parms, returning double *
  29. extern EEL_BC_TYPE _asm_generic3parm_retd[]; // 3 double * parms, returning double
  30. extern EEL_BC_TYPE _asm_generic2parm[]; // 2 double * parms, returning double *
  31. extern EEL_BC_TYPE _asm_generic2parm_retd[]; // 2 double * parms, returning double
  32. extern EEL_BC_TYPE _asm_generic1parm[]; // 1 double * parms, returning double *
  33. extern EEL_BC_TYPE _asm_generic1parm_retd[]; // 1 double * parms, returning double
  34. extern const void *const _asm_generic1parm_retd_end;
  35. extern const void *const _asm_generic1parm_end;
  36. extern const void *const _asm_generic2parm_retd_end;
  37. extern const void *const _asm_generic2parm_end;
  38. extern const void *const _asm_generic3parm_retd_end;
  39. extern const void *const _asm_generic3parm_end;
  40. #else
  41. void _asm_generic3parm(void); // 3 double * parms, returning double *
  42. void _asm_generic3parm_end(void);
  43. void _asm_generic3parm_retd(void); // 3 double * parms, returning double
  44. void _asm_generic3parm_retd_end(void);
  45. void _asm_generic2parm(void); // 2 double * parms, returning double *
  46. void _asm_generic2parm_end(void);
  47. void _asm_generic2parm_retd(void); // 2 double * parms, returning double
  48. void _asm_generic2parm_retd_end(void);
  49. void _asm_generic1parm(void); // 1 double * parms, returning double *
  50. void _asm_generic1parm_end(void);
  51. void _asm_generic1parm_retd(void); // 1 double * parms, returning double
  52. void _asm_generic1parm_retd_end(void);
  53. #endif
  54. #if EEL_F_SIZE == 4
  55. #define EEL_F_SSTR "4"
  56. #define EEL_F_SUFFIX "s"
  57. #else
  58. #define EEL_F_SSTR "8"
  59. #define EEL_F_SUFFIX "l"
  60. #endif
  61. #ifdef __cplusplus
  62. };
  63. #endif
  64. #endif//__NS_EEL_ADDFUNCS_H__