Merge from vendor branch TNF:
[pkgsrc.git] / www / lynx / patches.v6 / patch-al
1 $NetBSD: patch-al,v 1.1 2000/01/15 17:44:23 hubertf Exp $
2
3 diff -x *.orig -urN ./WWW/Library/Implementation/HTHistory.h /usr/pkgsrc/www/lynx/work.unpatched/lynx2-8-2/WWW/Library/Implementation/HTHistory.h
4 --- ./WWW/Library/Implementation/HTHistory.h    Thu Jan  1 01:00:00 1970
5 +++ /usr/pkgsrc/www/lynx/work.unpatched/lynx2-8-2/WWW/Library/Implementation/HTHistory.h        Sat Jan 15 07:57:18 2000
6 @@ -0,0 +1,112 @@
7 +/*  */
8 +
9 +#ifndef HTHISTORY_H
10 +#define HTHISTORY_H
11 +
12 +#include <HTAnchor.h>
13 +
14 +#ifdef SHORT_NAMES
15 +#define HTHistory_record                HTHiReco
16 +#define HTHistory_backtrack             HTHiBack
17 +#define HTHistory_canBacktrack          HTHiCaBa
18 +#define HTHistory_moveBy                HTHiMoBy
19 +#define HTHistory_canMoveBy             HTHiCaMo
20 +#define HTHistory_read                  HTHiRead
21 +#define HTHistory_recall                HTHiReca
22 +#define HTHistory_count                 HTHiCoun
23 +#define HTHistory_leavingFrom           HTHiLeFr
24 +#endif
25 +
26 +/*                              Navigation
27 +**                              ==========
28 +*/
29 +
30 +/*              Record the jump to an anchor
31 +**              ----------------------------
32 +*/
33 +
34 +extern void HTHistory_record
35 +  PARAMS(
36 +    (HTAnchor * destination)
37 +  );
38 +
39 +/*              Go back in history (find the last visited node)
40 +**              ------------------
41 +*/
42 +
43 +extern HTAnchor * HTHistory_backtrack
44 +  NOPARAMS;  /* FIXME: Should we add a `sticky' option ? */
45 +
46 +extern BOOL HTHistory_canBacktrack
47 +  NOPARAMS;
48 +
49 +/*              Browse through references in the same parent node
50 +**              -------------------------------------------------
51 +**
52 +**      Take the n-th child's link after or before the one we took to get here.
53 +**      Positive offset means go towards most recently added children.
54 +*/
55 +
56 +extern HTAnchor * HTHistory_moveBy
57 +  PARAMS(
58 +     (int offset)
59 +     );
60 +
61 +extern BOOL HTHistory_canMoveBy
62 +  PARAMS(
63 +     (int offset)
64 +     );
65 +
66 +#define HTHistory_next (HTHistory_moveBy (+1))
67 +#define HTHistory_canNext (HTHistory_canMoveBy (+1))
68 +#define HTHistory_previous (HTHistory_moveBy (-1))
69 +#define HTHistory_canPrevious (HTHistory_canMoveBy (-1))
70 +
71 +
72 +/*                              Retrieval
73 +**                              =========
74 +*/
75 +
76 +/*              Read numbered visited anchor (1 is the oldest)
77 +**              ----------------------------
78 +*/
79 +
80 +extern HTAnchor * HTHistory_read
81 +  PARAMS(
82 +    (int number)
83 +  );
84 +
85 +/*              Recall numbered visited anchor (1 is the oldest)
86 +**              ------------------------------
87 +**      This reads the anchor and stores it again in the list, except if last.
88 +*/
89 +
90 +extern HTAnchor * HTHistory_recall
91 +  PARAMS(
92 +    (int number)
93 +  );
94 +
95 +/*              Number of Anchors stored
96 +**              ------------------------
97 +**
98 +**      This is needed in order to check the validity of certain commands
99 +**      for menus, etc.
100 +(not needed for now. Use canBacktrack, etc.)
101 +extern int HTHistory_count NOPARAMS;
102 +*/
103 +
104 +/*              Change last history entry
105 +**              -------------------------
106 +**
107 +**      Sometimes we load a node by one anchor but leave by a different
108 +**      one, and it is the one we left from which we want to remember.
109 +*/
110 +extern void HTHistory_leavingFrom
111 +  PARAMS(
112 +    (HTAnchor * anchor)
113 +  );
114 +
115 +#endif /* HTHISTORY_H */
116 +/*
117 +
118 +    */