From 97392f22717d9f9522355c96ce47bffe0a92f5a8 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 7 Apr 2009 12:42:45 +0000 Subject: [PATCH] updated parser a little, still figuring out why the server process exits early git-svn-id: svn://anubis/fart/trunk@231 7f9b0f55-74a9-4bce-be96-3c2cd072584d --- distrib/distrib.cc | 2 +- parser/parser.yy | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/distrib/distrib.cc b/distrib/distrib.cc index fb21184..5d9a8e9 100644 --- a/distrib/distrib.cc +++ b/distrib/distrib.cc @@ -117,7 +117,7 @@ void connection_thread(distrib::connection_thread_arg_t * arg) bool done = false; /* loop listening for messages from the client */ - for (;;) + while (!done) { int msg_type; int nread = read(client_socket, &msg_type, sizeof(msg_type)); diff --git a/parser/parser.yy b/parser/parser.yy index 3eaeb49..839c75d 100644 --- a/parser/parser.yy +++ b/parser/parser.yy @@ -347,14 +347,6 @@ shape: plane { $$ = $1; } | subtract { $$ = $1; } ; -shape_items: /* empty */ - | shape_item shape_items { - $$ = new ItemsNode(); - $$->addChild($1); - $$->addChildren($2); - } - ; - shape_item: material { $$ = $1; } | material_ref { $$ = $1; } | transform { $$ = $1; }