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);
}
static int docmd( char *cline) ;
/*
* execcmd:
* 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
*/
int docmd(char *cline)
{
static int docmd( char *cline) {
int f; /* default argument flag */
int n; /* numeric repeat value */
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 execcmd( int f, int n) ;
int docmd( char *cline) ;
char *token( char *src, char *tok, int size) ;
int macarg( char *tok) ;
int nextarg( const char *prompt, char *buffer, int size, int terminator) ;