2011-07-03 18:55:26 -04:00
|
|
|
$OpenBSD: patch-command_c,v 1.2 2011/07/03 22:55:26 naddy Exp $
|
2005-09-05 09:25:04 -04:00
|
|
|
--- command.c.orig Wed Sep 23 20:06:51 1998
|
2011-07-03 18:55:26 -04:00
|
|
|
+++ command.c Fri Jun 24 19:02:50 2011
|
|
|
|
@@ -12,6 +12,7 @@ static char rcsid[]= "$Header: /home/ian/ports/textpro
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
+#include <string.h>
|
|
|
|
#include "misc.h"
|
|
|
|
#include "tol.h"
|
|
|
|
#include "comment.h"
|
|
|
|
@@ -172,17 +173,17 @@ C_clear_cmd()
|
1998-09-23 19:34:01 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
-C_is_cmd(inline)
|
|
|
|
-char *inline;
|
|
|
|
+C_is_cmd(input_line)
|
|
|
|
+char *input_line;
|
|
|
|
{
|
|
|
|
char *ptr;
|
|
|
|
/*
|
|
|
|
** see if this is a command line
|
|
|
|
** and if so, do the command right away
|
|
|
|
*/
|
|
|
|
- if (('\0' != _C_cmdword[0]) && (!S_wordcmp(inline,_C_cmdword)))
|
|
|
|
+ if (('\0' != _C_cmdword[0]) && (!S_wordcmp(input_line,_C_cmdword)))
|
|
|
|
{
|
|
|
|
- ptr = inline;
|
|
|
|
+ ptr = input_line;
|
|
|
|
S_nextword(&ptr);
|
|
|
|
_C_do_a_cmd(ptr);
|
|
|
|
return(1);
|