[towel-db commit] r32 - trunk/c

0 views
Skip to first unread message

codesite...@google.com

unread,
Jun 18, 2008, 10:23:46 AM6/18/08
to toweldb...@googlegroups.com
Author: i80and
Date: Wed Jun 18 07:23:28 2008
New Revision: 32

Modified:
trunk/c/parser.c

Log:
Duh. Figure out the start of the key _correctly_.


Modified: trunk/c/parser.c
==============================================================================
--- trunk/c/parser.c (original)
+++ trunk/c/parser.c Wed Jun 18 07:23:28 2008
@@ -80,6 +80,7 @@
/* If we've got a complete token, then mark our location */
if( token_phase == TOWELDB_PHASE_FINISH )
{
+ cur_node->key_loc = current_char;
/* If we haven't hit a key yet, then we don't want to allocate a
* new data structure */
if( rec_component != TOWELDB_COMPONENT_NONE )
@@ -133,7 +134,6 @@
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