aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-06-28 01:37:08 -0300
committerLinus Torvalds <torvalds@linux-foundation.org>2010-06-27 22:59:38 -0700
commitda18fa4a2f9c79a417c4a7d7e506524767ff5090 (patch)
treeba45e557a4202015f0265392564185e3e1826e9c
parentd01bdbdc42a4b9d09eb9d2908d4e45457705a445 (diff)
downloaduemacs-da18fa4a2f9c79a417c4a7d7e506524767ff5090.tar.gz
uemacs: Convert typedef struct UVAR to struct user_variable.
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--estruct.h1
-rw-r--r--evar.h20
2 files changed, 11 insertions, 10 deletions
diff --git a/estruct.h b/estruct.h
index 405d8aa..e3a9adc 100644
--- a/estruct.h
+++ b/estruct.h
@@ -252,7 +252,6 @@
#define NCOLORS 8 /* number of supported colors */
#define KBLOCK 250 /* sizeof kill buffer chunks */
#define NBLOCK 16 /* line block chunk size */
-#define NVSIZE 10 /* max #chars in a var name */
#define CONTROL 0x0100 /* Control flag, or'ed in */
#define META 0x0200 /* Meta flag, or'ed in */
diff --git a/evar.h b/evar.h
index e0f5177..9a28eba 100644
--- a/evar.h
+++ b/evar.h
@@ -9,19 +9,21 @@
#ifndef EVAR_H_
#define EVAR_H_
-/* structure to hold user variables and their definitions */
-typedef struct UVAR {
- char u_name[NVSIZE + 1]; /* name of user variable */
- char *u_value; /* value (string) */
-} UVAR;
+/* Max #chars in a var name */
+#define NVSIZE 10
-/* current user variables (This structure will probably change) */
+/* Structure to hold user variables and their definitions */
+struct user_variable {
+ char u_name[NVSIZE + 1]; /* name of user variable */
+ char *u_value; /* value (string) */
+};
-#define MAXVARS 255
+#define MAXVARS 255
-static UVAR uv[MAXVARS + 1]; /* user variables */
+/* User variables */
+static struct user_variable uv[MAXVARS + 1];
-/* list of recognized environment variables */
+/* List of recognized environment variables */
static char *envars[] = {
"fillcol", /* current fill column */