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 )
{