summaryrefslogtreecommitdiff
path: root/lsystem.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2017-04-25 03:42:16 +0000
committerXin LI <delphij@FreeBSD.org>2017-04-25 03:42:16 +0000
commit9c83c2751d26fe2e059d6956f0398b56ed919a6a (patch)
treeb75ed451f9f8336fb4958dbae186b6bd98aa65c0 /lsystem.c
parent1cabeb1f0c93e44ebc8a1d3a78100a962ac3f047 (diff)
Diffstat (limited to 'lsystem.c')
-rw-r--r--lsystem.c25
1 files changed, 16 insertions, 9 deletions
diff --git a/lsystem.c b/lsystem.c
index 93a5e03ae5904..ea3cfb0159d1b 100644
--- a/lsystem.c
+++ b/lsystem.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2015 Mark Nudelman
+ * Copyright (C) 1984-2016 Mark Nudelman
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
@@ -38,12 +38,14 @@ extern IFILE curr_ifile;
* Like plain "system()", but handles resetting terminal modes, etc.
*/
public void
-lsystem(char *cmd, char *donemsg)
+lsystem(cmd, donemsg)
+ char *cmd;
+ char *donemsg;
{
- int inp;
+ register int inp;
#if HAVE_SHELL
- char *shell;
- char *p;
+ register char *shell;
+ register char *p;
#endif
IFILE save_ifile;
#if MSDOS_COMPILER && MSDOS_COMPILER!=WIN32C
@@ -248,7 +250,9 @@ lsystem(char *cmd, char *donemsg)
* the whole current screen is piped.
*/
public int
-pipe_mark(int c, char *cmd)
+pipe_mark(c, cmd)
+ int c;
+ char *cmd;
{
POSITION mpos, tpos, bpos;
@@ -280,10 +284,13 @@ pipe_mark(int c, char *cmd)
* Feed it the file contents between the positions spos and epos.
*/
public int
-pipe_data(char *cmd, POSITION spos, POSITION epos)
+pipe_data(cmd, spos, epos)
+ char *cmd;
+ POSITION spos;
+ POSITION epos;
{
- FILE *f;
- int c;
+ register FILE *f;
+ register int c;
extern FILE *popen();
/*