SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
32
textproc/spiff/patches/patch-command_c
Normal file
32
textproc/spiff/patches/patch-command_c
Normal file
|
@ -0,0 +1,32 @@
|
|||
--- command.c.orig Wed Sep 23 20:06:51 1998
|
||||
+++ 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()
|
||||
}
|
||||
|
||||
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);
|
Loading…
Add table
Add a link
Reference in a new issue