diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 02:14:08 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 02:14:08 +0000 |
| commit | f5aca1a1b402bd7ebc944dc6e6fe65828d863365 (patch) | |
| tree | 4a0fdd8e166d5c4b03543279d332b9a858ef62df /src/formula.h | |
| parent | 10c557562e1d67c55314c212371ea9cb7f802863 (diff) | |
| download | libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.tar.gz libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.tar.bz2 libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.tar.xz libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.zip | |
Bu::FString is now String, and there's a shell script to fix any other programs
that were using fstring, I hope.
Diffstat (limited to '')
| -rw-r--r-- | src/formula.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/formula.h b/src/formula.h index d93e27b..757884f 100644 --- a/src/formula.h +++ b/src/formula.h | |||
| @@ -17,7 +17,7 @@ | |||
| 17 | #include "bu/stack.h" | 17 | #include "bu/stack.h" |
| 18 | #include "bu/exceptionbase.h" | 18 | #include "bu/exceptionbase.h" |
| 19 | #include "bu/hash.h" | 19 | #include "bu/hash.h" |
| 20 | #include "bu/fstring.h" | 20 | #include "bu/string.h" |
| 21 | 21 | ||
| 22 | namespace Bu | 22 | namespace Bu |
| 23 | { | 23 | { |
| @@ -41,8 +41,8 @@ namespace Bu | |||
| 41 | virtual prec operator()( prec )=0; | 41 | virtual prec operator()( prec )=0; |
| 42 | }; | 42 | }; |
| 43 | 43 | ||
| 44 | typedef Hash<Bu::FString, prec> varHash; | 44 | typedef Hash<Bu::String, prec> varHash; |
| 45 | typedef Hash<Bu::FString, Func *> funcHash; | 45 | typedef Hash<Bu::String, Func *> funcHash; |
| 46 | 46 | ||
| 47 | Formula() | 47 | Formula() |
| 48 | { | 48 | { |
| @@ -57,7 +57,7 @@ namespace Bu | |||
| 57 | } | 57 | } |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | prec run( const Bu::FString &sFormulaSrc ) | 60 | prec run( const Bu::String &sFormulaSrc ) |
| 61 | { | 61 | { |
| 62 | if( sFormulaSrc.isEmpty() ) | 62 | if( sFormulaSrc.isEmpty() ) |
| 63 | throw FormulaException("Empty formula, nothing to do."); | 63 | throw FormulaException("Empty formula, nothing to do."); |
| @@ -158,7 +158,7 @@ namespace Bu | |||
| 158 | 158 | ||
| 159 | Bu::Stack<symType> sOper; | 159 | Bu::Stack<symType> sOper; |
| 160 | Bu::Stack<prec> sValue; | 160 | Bu::Stack<prec> sValue; |
| 161 | Bu::Stack<Bu::FString> sFunc; | 161 | Bu::Stack<Bu::String> sFunc; |
| 162 | 162 | ||
| 163 | private: | 163 | private: |
| 164 | symType getPrec( symType nOper ) | 164 | symType getPrec( symType nOper ) |
