winamp/Src/ns-eel2/ns-eel-addfuncs.h
2024-09-24 14:54:57 +02:00

82 lines
2.9 KiB
C

/*
Nullsoft Expression Evaluator Library (NS-EEL)
Copyright (C) 1999-2003 Nullsoft, Inc.
ns-eel-addfuncs.h: defines macros useful for adding functions to the compiler
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef __NS_EEL_ADDFUNCS_H__
#define __NS_EEL_ADDFUNCS_H__
#ifdef __cplusplus
extern "C" {
#endif
struct _compileContext;
void *NSEEL_PProc_RAM(void *data, int data_size, struct _compileContext *ctx);
void *NSEEL_PProc_THIS(void *data, int data_size, struct _compileContext *ctx);
#ifdef EEL_TARGET_PORTABLE
extern EEL_BC_TYPE _asm_generic3parm[]; // 3 double * parms, returning double *
extern EEL_BC_TYPE _asm_generic3parm_retd[]; // 3 double * parms, returning double
extern EEL_BC_TYPE _asm_generic2parm[]; // 2 double * parms, returning double *
extern EEL_BC_TYPE _asm_generic2parm_retd[]; // 2 double * parms, returning double
extern EEL_BC_TYPE _asm_generic1parm[]; // 1 double * parms, returning double *
extern EEL_BC_TYPE _asm_generic1parm_retd[]; // 1 double * parms, returning double
extern const void *const _asm_generic1parm_retd_end;
extern const void *const _asm_generic1parm_end;
extern const void *const _asm_generic2parm_retd_end;
extern const void *const _asm_generic2parm_end;
extern const void *const _asm_generic3parm_retd_end;
extern const void *const _asm_generic3parm_end;
#else
void _asm_generic3parm(void); // 3 double * parms, returning double *
void _asm_generic3parm_end(void);
void _asm_generic3parm_retd(void); // 3 double * parms, returning double
void _asm_generic3parm_retd_end(void);
void _asm_generic2parm(void); // 2 double * parms, returning double *
void _asm_generic2parm_end(void);
void _asm_generic2parm_retd(void); // 2 double * parms, returning double
void _asm_generic2parm_retd_end(void);
void _asm_generic1parm(void); // 1 double * parms, returning double *
void _asm_generic1parm_end(void);
void _asm_generic1parm_retd(void); // 1 double * parms, returning double
void _asm_generic1parm_retd_end(void);
#endif
#if EEL_F_SIZE == 4
#define EEL_F_SSTR "4"
#define EEL_F_SUFFIX "s"
#else
#define EEL_F_SSTR "8"
#define EEL_F_SUFFIX "l"
#endif
#ifdef __cplusplus
};
#endif
#endif//__NS_EEL_ADDFUNCS_H__