mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-22 09:06:38 -05:00
Limit the scope of docmd.
This commit is contained in:
parent
cc06049046
commit
45981e8793
5
exec.c
5
exec.c
@ -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
1
exec.h
@ -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) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user