1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-11-19 02:56:08 -05:00

reduce visibility of directive name variable (dname[]).

This commit is contained in:
Renaud 2013-06-06 12:08:23 +08:00
parent 9da83ebffb
commit 5ee997b695
3 changed files with 10 additions and 12 deletions

2
edef.h
View File

@ -115,8 +115,6 @@ extern char *patmatch;
extern struct line *matchline;
extern int matchoff;
extern char *dname[]; /* Directive name table. */
#if DEBUGM
/* Vars needed for macro debugging output. */
extern char outline[]; /* Global string to hold debug line text. */

10
exec.c
View File

@ -22,6 +22,16 @@
#include "input.h"
#include "line.h"
/* directive name table:
This holds the names of all the directives.... */
static const char *dname[] = {
"if", "else", "endif",
"goto", "return", "endm",
"while", "endwhile", "break",
"force"
};
/*
* Execute a named command even if it is not bound.
*/

View File

@ -119,16 +119,6 @@ char *patmatch = NULL;
struct line *matchline = NULL;
int matchoff = 0;
/* directive name table:
This holds the names of all the directives.... */
char *dname[] = {
"if", "else", "endif",
"goto", "return", "endm",
"while", "endwhile", "break",
"force"
};
#if DEBUGM
/* vars needed for macro debugging output */
char outline[NSTRING]; /* global string to hold debug line text */