1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-20 16:22:38 -05:00

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>
This commit is contained in:
Thiago Farina 2010-06-28 01:37:08 -03:00 committed by Linus Torvalds
parent d01bdbdc42
commit da18fa4a2f
2 changed files with 11 additions and 10 deletions

View File

@ -252,7 +252,6 @@
#define NCOLORS 8 /* number of supported colors */ #define NCOLORS 8 /* number of supported colors */
#define KBLOCK 250 /* sizeof kill buffer chunks */ #define KBLOCK 250 /* sizeof kill buffer chunks */
#define NBLOCK 16 /* line block chunk size */ #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 CONTROL 0x0100 /* Control flag, or'ed in */
#define META 0x0200 /* Meta flag, or'ed in */ #define META 0x0200 /* Meta flag, or'ed in */

16
evar.h
View File

@ -9,19 +9,21 @@
#ifndef EVAR_H_ #ifndef EVAR_H_
#define EVAR_H_ #define EVAR_H_
/* structure to hold user variables and their definitions */ /* Max #chars in a var name */
typedef struct UVAR { #define NVSIZE 10
/* Structure to hold user variables and their definitions */
struct user_variable {
char u_name[NVSIZE + 1]; /* name of user variable */ char u_name[NVSIZE + 1]; /* name of user variable */
char *u_value; /* value (string) */ char *u_value; /* value (string) */
} UVAR; };
/* current user variables (This structure will probably change) */
#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[] = { static char *envars[] = {
"fillcol", /* current fill column */ "fillcol", /* current fill column */