mirror of
https://github.com/rfivet/uemacs.git
synced 2024-11-10 06:26:04 -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:
parent
d01bdbdc42
commit
da18fa4a2f
@ -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 */
|
||||
|
20
evar.h
20
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user