-
Notifications
You must be signed in to change notification settings - Fork 0
/
corefuncs.h
49 lines (28 loc) · 2 KB
/
corefuncs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* see LICENSE for license details */
#ifndef __COREFUNCS_H
#define __COREFUNCS_H
#include "stack.h"
#include <math.h>
#include <string.h>
#include "structs.h"
void fn_push (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_drop (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_roll (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_swap (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void cursor_up (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void cursor_down (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_add (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_sub (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_mul (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_div (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_negate (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_y_to_x (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_sqrt (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_square (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_dup (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_exp (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_ln (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_log (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_logn (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
void fn_inv (stk_elem ** stack, double *input, unsigned int * cursorpos, const Arg * arg);
#endif /* __COREFUNCS_H */