diff options
author | Thiago Farina <tfransosi@gmail.com> | 2010-06-28 01:37:08 -0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-06-27 22:59:38 -0700 |
commit | da18fa4a2f9c79a417c4a7d7e506524767ff5090 (patch) | |
tree | ba45e557a4202015f0265392564185e3e1826e9c | |
parent | d01bdbdc42a4b9d09eb9d2908d4e45457705a445 (diff) | |
download | uemacs-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.h | 1 | ||||
-rw-r--r-- | evar.h | 20 |
2 files changed, 11 insertions, 10 deletions
@@ -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 */ @@ -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 */ |