aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-06-26 18:40:11 -0300
committerLinus Torvalds <torvalds@linux-foundation.org>2010-06-27 07:23:58 -0700
commitd01bdbdc42a4b9d09eb9d2908d4e45457705a445 (patch)
treefc3ea8ff7ffa5796f16b0d6c312472ab97d3684e
parent3b4567fb813aac3c924477cbdfbdf47b19bbce9f (diff)
downloaduemacs-d01bdbdc42a4b9d09eb9d2908d4e45457705a445.tar.gz
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>
-rw-r--r--evar.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/evar.h b/evar.h
index 50e6fbb..e0f5177 100644
--- a/evar.h
+++ b/evar.h
@@ -113,19 +113,18 @@ static char *envars[] = {
#define EVSCROLLCOUNT 39
#define EVSCROLL 40
-/* list of recognized user functions */
-
-typedef struct UFUNC {
- char *f_name; /* name of function */
- int f_type; /* 1 = monamic, 2 = dynamic */
-} UFUNC;
+/* List of recognized user functions */
+struct user_function {
+ char *f_name; /* name of function */
+ int f_type; /* 1 = monamic, 2 = dynamic */
+};
#define NILNAMIC 0
#define MONAMIC 1
#define DYNAMIC 2
#define TRINAMIC 3
-static UFUNC funcs[] = {
+static struct user_function funcs[] = {
{ "add", DYNAMIC }, /* add two numbers together */
{ "sub", DYNAMIC }, /* subtraction */
{ "tim", DYNAMIC }, /* multiplication */