summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed/extern.h
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-07-03 14:38:27 +0000
committertjr <tjr@FreeBSD.org>2002-07-03 14:38:27 +0000
commit110c2de07c405176de37d5a49c2173d05a37ae84 (patch)
tree0e9ba14e2435a6c3a79c7799f5cbca8f4bf3554e /usr.bin/sed/extern.h
parentf71af381af338a718b4808374ec0fa5be8193bc3 (diff)
downloadFreeBSD-src-110c2de07c405176de37d5a49c2173d05a37ae84.zip
FreeBSD-src-110c2de07c405176de37d5a49c2173d05a37ae84.tar.gz
Avoid checking whether each line is the last line of the file when we don't
need to know. Instead, check when we are trying to match a "$" address. This does not change the way sed processes regular files, but makes it behave more sensibly when used interactively. PR: 40101 MFC after: 2 weeks
Diffstat (limited to 'usr.bin/sed/extern.h')
-rw-r--r--usr.bin/sed/extern.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/sed/extern.h b/usr.bin/sed/extern.h
index a0ad39b..c908eb1 100644
--- a/usr.bin/sed/extern.h
+++ b/usr.bin/sed/extern.h
@@ -44,7 +44,6 @@ extern regmatch_t *match;
extern size_t maxnsub;
extern u_long linenum;
extern int appendnum;
-extern int lastline;
extern int aflag, eflag, nflag;
extern const char *fname;
extern int rflags; /* regex flags to use */
@@ -54,5 +53,6 @@ void compile(void);
void cspace(SPACE *, char *, size_t, enum e_spflag);
char *cu_fgets(char *, int, int *);
int mf_fgets(SPACE *, enum e_spflag);
+int lastline(void);
void process(void);
char *strregerror(int, regex_t *);
OpenPOWER on IntegriCloud