summaryrefslogtreecommitdiff
path: root/server/src/server.cc
diff options
context:
space:
mode:
authordeva <deva>2008-07-29 12:52:50 +0000
committerdeva <deva>2008-07-29 12:52:50 +0000
commite388de9cf524977c36b523e31ad9d75816207ff5 (patch)
tree4845b6396c9ca071a11345ca5ce87077542d48d3 /server/src/server.cc
parent42512d40ef93f0f85d107a7dc6d58973f93a1d95 (diff)
Added configure option to remove pentominos support.
Diffstat (limited to 'server/src/server.cc')
-rw-r--r--server/src/server.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/src/server.cc b/server/src/server.cc
index c0ec223..54a2616 100644
--- a/server/src/server.cc
+++ b/server/src/server.cc
@@ -129,7 +129,8 @@ static void connection(TCPSocket &socket)
tp.parse();
Template *templ = tp.getTemplate();
-
+
+#ifndef WITHOUT_PENTOMINOS
// Send the queries to Pentominos (if any)
TCPSocket s;
s.connect("localhost", 11108);
@@ -151,7 +152,10 @@ static void connection(TCPSocket &socket)
std::string result = qh.exec();
printf("Got result: [%s]\n", result.c_str());
-
+#else
+ std::string result = "";
+#endif/*WITHOUT_PENTOMINOS*/
+
// Parse the result from the queries to pentominos
QueryParser qp(result);
qp.parse();