summaryrefslogtreecommitdiffstats
path: root/contrib/less/tags.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2007-06-04 01:42:54 +0000
committerdelphij <delphij@FreeBSD.org>2007-06-04 01:42:54 +0000
commit9b5d103b5b51a6fea5caf2c8b1fc678d65a357c9 (patch)
treef7d1bd15b558b3590d7bb4d4e31ef8833e0a1171 /contrib/less/tags.c
parent05dd7cf6267b7b4d66cfc8e51b6d7e47d0eba220 (diff)
parent7672cb6e48e2ed472cbd72caaa0eb155608a644d (diff)
downloadFreeBSD-src-9b5d103b5b51a6fea5caf2c8b1fc678d65a357c9.zip
FreeBSD-src-9b5d103b5b51a6fea5caf2c8b1fc678d65a357c9.tar.gz
This commit was generated by cvs2svn to compensate for changes in r170256,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/less/tags.c')
-rw-r--r--contrib/less/tags.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/less/tags.c b/contrib/less/tags.c
index 5ea7364..b22fda8 100644
--- a/contrib/less/tags.c
+++ b/contrib/less/tags.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2004 Mark Nudelman
+ * Copyright (C) 1984-2007 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.
@@ -56,7 +56,7 @@ static int getentry();
*
* Use either pattern or line number.
* findgtag() always uses line number, so pattern is always NULL.
- * findctag() usually either pattern (in which case line number is 0),
+ * findctag() uses either pattern (in which case line number is 0),
* or line number (in which case pattern is NULL).
*/
struct taglist {
@@ -75,10 +75,10 @@ struct tag {
static struct tag *curtag;
#define TAG_INS(tp) \
- (tp)->next = taglist.tl_first; \
- (tp)->prev = TAG_END; \
- taglist.tl_first->prev = (tp); \
- taglist.tl_first = (tp);
+ (tp)->next = TAG_END; \
+ (tp)->prev = taglist.tl_last; \
+ taglist.tl_last->next = (tp); \
+ taglist.tl_last = (tp);
#define TAG_RM(tp) \
(tp)->next->prev = (tp)->prev; \
@@ -418,7 +418,7 @@ ctagsearch()
* starting position of that line in linepos.
*/
linepos = pos;
- pos = forw_raw_line(pos, &line);
+ pos = forw_raw_line(pos, &line, (int *)NULL);
if (linenum != 0)
linenum++;
OpenPOWER on IntegriCloud