1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-06-18 08:35:22 +00:00

Limit the scope of docmd.

This commit is contained in:
Renaud 2014-06-06 15:09:08 +08:00
parent cc06049046
commit 45981e8793
2 changed files with 3 additions and 3 deletions

5
exec.c
View File

@ -101,6 +101,8 @@ int namedcmd(int f, int n)
return kfunc(f, n); return kfunc(f, n);
} }
static int docmd( char *cline) ;
/* /*
* execcmd: * execcmd:
* Execute a command line command to be typed in * Execute a command line command to be typed in
@ -134,8 +136,7 @@ int execcmd(int f, int n)
* *
* char *cline; command line to execute * char *cline; command line to execute
*/ */
int docmd(char *cline) static int docmd( char *cline) {
{
int f; /* default argument flag */ int f; /* default argument flag */
int n; /* numeric repeat value */ int n; /* numeric repeat value */
fn_t fnc; /* function to execute */ fn_t fnc; /* function to execute */

1
exec.h
View File

@ -19,7 +19,6 @@ extern boolean clexec ; /* command line execution flag */
int namedcmd( int f, int n) ; int namedcmd( int f, int n) ;
int execcmd( int f, int n) ; int execcmd( int f, int n) ;
int docmd( char *cline) ;
char *token( char *src, char *tok, int size) ; char *token( char *src, char *tok, int size) ;
int macarg( char *tok) ; int macarg( char *tok) ;
int nextarg( const char *prompt, char *buffer, int size, int terminator) ; int nextarg( const char *prompt, char *buffer, int size, int terminator) ;