[prev in list] [next in list] [prev in thread] [next in thread]
List: elinks-cvs
Subject: [ELinks] elinks (ECMASCRIPT) - jonas: The Naming of Cats is a diff...
From: cvs () pasky ! ji ! cz
Date: 2004-02-29 0:54:04
Message-ID: 20040229005404.788.qmail () machine ! sinus ! cz
[Download RAW message or body]
This is an automated notification of a change to the ELinks CVS tree.
Author: jonas
Module: elinks
Tag: ECMASCRIPT
Date: Sun Feb 29 00:54:04 2004 GMT
---- Log message:
The Naming of Cats is a difficult matter ...
---- Files affected:
elinks/src/document/dom:
navigator.c (1.1.2.37 -> 1.1.2.38)
http://cvsweb.elinks.or.cz/cvsweb.cgi/elinks/src/document/dom/navigator.c.diff?r1=1.1.2.37&r2=1.1.2.38&f=u
---- Diffs:
elinks/src/document/dom/navigator.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
Index: elinks/src/document/dom/navigator.c
diff -u elinks/src/document/dom/navigator.c:1.1.2.37 \
elinks/src/document/dom/navigator.c:1.1.2.38
--- elinks/src/document/dom/navigator.c:1.1.2.37 Sun Feb 29 01:49:08 2004
+++ elinks/src/document/dom/navigator.c Sun Feb 29 01:53:59 2004
@@ -121,29 +121,29 @@
static inline void
do_pop_dom_node(struct dom_navigator *navigator, struct dom_node *node)
{
- struct dom_navigator_state *item;
+ struct dom_navigator_state *state;
assert(navigator);
if (!dom_navigator_has_parents(navigator)) return;
- item = get_dom_navigator_top(navigator);
- if (item->callback) {
- /* Pass the node we are popping to and _not_ the item->node */
- item->callback(navigator, node);
+ state = get_dom_navigator_top(navigator);
+ if (state->callback) {
+ /* Pass the node we are popping to and _not_ the state->node */
+ state->callback(navigator, node);
}
navigator->depth--;
- if (navigator->object_size && item->data) {
+ if (navigator->object_size && state->data) {
size_t offset = navigator->depth * navigator->object_size;
/* I tried to use item->data here but it caused a memory
* corruption bug on fm. This is also less trustworthy in that
- * the item->data pointer could have been mangled. --jonas */
+ * the state->data pointer could have been mangled. --jonas */
memset(&navigator->state_objects[offset], 0, navigator->object_size);
}
- memset(item, 0, sizeof(struct dom_navigator_state));
+ memset(state, 0, sizeof(struct dom_navigator_state));
}
void
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic