mirror of
https://github.com/rfivet/uemacs.git
synced 2024-10-15 00:33:34 -04:00
uemacs: convert typedef struct UFUNC to struct user_function.
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
3b4567fb81
commit
d01bdbdc42
9
evar.h
9
evar.h
@ -113,19 +113,18 @@ static char *envars[] = {
|
|||||||
#define EVSCROLLCOUNT 39
|
#define EVSCROLLCOUNT 39
|
||||||
#define EVSCROLL 40
|
#define EVSCROLL 40
|
||||||
|
|
||||||
/* list of recognized user functions */
|
/* List of recognized user functions */
|
||||||
|
struct user_function {
|
||||||
typedef struct UFUNC {
|
|
||||||
char *f_name; /* name of function */
|
char *f_name; /* name of function */
|
||||||
int f_type; /* 1 = monamic, 2 = dynamic */
|
int f_type; /* 1 = monamic, 2 = dynamic */
|
||||||
} UFUNC;
|
};
|
||||||
|
|
||||||
#define NILNAMIC 0
|
#define NILNAMIC 0
|
||||||
#define MONAMIC 1
|
#define MONAMIC 1
|
||||||
#define DYNAMIC 2
|
#define DYNAMIC 2
|
||||||
#define TRINAMIC 3
|
#define TRINAMIC 3
|
||||||
|
|
||||||
static UFUNC funcs[] = {
|
static struct user_function funcs[] = {
|
||||||
{ "add", DYNAMIC }, /* add two numbers together */
|
{ "add", DYNAMIC }, /* add two numbers together */
|
||||||
{ "sub", DYNAMIC }, /* subtraction */
|
{ "sub", DYNAMIC }, /* subtraction */
|
||||||
{ "tim", DYNAMIC }, /* multiplication */
|
{ "tim", DYNAMIC }, /* multiplication */
|
||||||
|
Loading…
Reference in New Issue
Block a user