[towel-db commit] r31 - trunk/c

0 views
Skip to first unread message

codesite...@google.com

unread,
Jun 17, 2008, 9:53:01 PM6/17/08
to toweldb...@googlegroups.com
Author: i80and
Date: Tue Jun 17 18:52:35 2008
New Revision: 31

Modified:
trunk/c/parser.c

Log:
Oops; getting the end of the token actually makes more sense.


Modified: trunk/c/parser.c
==============================================================================
--- trunk/c/parser.c (original)
+++ trunk/c/parser.c Tue Jun 17 18:52:35 2008
@@ -98,10 +98,8 @@
cur_node->next = NULL;
}

- /* Mark the location of the end of the token. We have to subtract
- * the length of our token to get the start of it instead of the
- * end. */
- cur_node->key_loc = ( current_char - TOWELDB_PHASE_FINISH );
+ /* Mark the location of the end of the token */
+ cur_node->key_loc = current_char;

/* It's official: we are in a key */
rec_component = TOWELDB_COMPONENT_KEY;
@@ -135,6 +133,7 @@
if( rec_component == TOWELDB_COMPONENT_KEY )
{
cur_node->key_len++;
+ printf( "%c\n", rec_contents[current_char] );
}
else if( rec_component == TOWELDB_COMPONENT_DATA )
{

Reply all
Reply to author
Forward
0 new messages