From 2b62f943d56c8ff6c46ad49f1bfa4114eb61ddaa Mon Sep 17 00:00:00 2001 From: Bob Jamison Date: Thu, 13 Jul 2006 20:08:17 +0000 Subject: fixed parsing of axes (bzr r1404) --- src/dom/xpathtoken.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/dom/xpathtoken.cpp') diff --git a/src/dom/xpathtoken.cpp b/src/dom/xpathtoken.cpp index f08dfe7e3..fa81e2863 100644 --- a/src/dom/xpathtoken.cpp +++ b/src/dom/xpathtoken.cpp @@ -58,6 +58,12 @@ namespace xpath //# V A L U E S //########################### +/** + * The following functions are called by a token's execute() + * method. These functions are what differentiate one token + * from another and give each its personality. +*/ + static bool tokStr(Token &tok, Stack &stack) { StackItem item; @@ -510,8 +516,9 @@ static bool tokFuncRound(Token &tok, Stack &stack) - - +/** + * An entry for the token 'personality' table + */ typedef struct { int ival; @@ -519,6 +526,10 @@ typedef struct TokenFunc tokenFunc; } TokenTableEntry; + +/** + * The token personality table + */ static TokenTableEntry tokenTable[] = { //### primitives -- cgit v1.2.3