aboutsummaryrefslogtreecommitdiff
path: root/src/formula.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-01-19 21:46:48 +0000
committerMike Buland <eichlan@xagasoft.com>2009-01-19 21:46:48 +0000
commit9d099f181674ae075aa8ccaeb56acc7b732638af (patch)
treea376da5671e044e74b4014d43c9125974b4dee0c /src/formula.h
parent8c1f4d7bace6ff2c99d546cedaba890b349e88f8 (diff)
downloadlibbu++-9d099f181674ae075aa8ccaeb56acc7b732638af.tar.gz
libbu++-9d099f181674ae075aa8ccaeb56acc7b732638af.tar.bz2
libbu++-9d099f181674ae075aa8ccaeb56acc7b732638af.tar.xz
libbu++-9d099f181674ae075aa8ccaeb56acc7b732638af.zip
This should fix the problem of never knowing if your sockets are closed. Now
Bu::Socket::read will throw an exception if the socket has been closed. Also, you'll get an exception at object creation if the socket could connect to a computer, but not the given port.
Diffstat (limited to 'src/formula.h')
-rw-r--r--src/formula.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/formula.h b/src/formula.h
index c57c4bb..c88e409 100644
--- a/src/formula.h
+++ b/src/formula.h
@@ -44,8 +44,9 @@ namespace Bu
44 { 44 {
45 } 45 }
46 46
47 prec run( const char *sFormula ) 47 prec run( const Bu::FString &sFormulaSrc )
48 { 48 {
49 const char *sFormula = sFormulaSrc.getStr();
49 for(;;) 50 for(;;)
50 { 51 {
51 uint8_t tNum = nextToken( &sFormula ); 52 uint8_t tNum = nextToken( &sFormula );