From da18fa4a2f9c79a417c4a7d7e506524767ff5090 Mon Sep 17 00:00:00 2001 From: Thiago Farina Date: Mon, 28 Jun 2010 01:37:08 -0300 Subject: [PATCH] uemacs: Convert typedef struct UVAR to struct user_variable. Signed-off-by: Thiago Farina Signed-off-by: Linus Torvalds --- estruct.h | 1 - evar.h | 20 +++++++++++--------- 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 */