From 99f6da572f455b0ba17c341ec1a63c5826de3ecf Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 22 Feb 2013 05:40:25 +0100 Subject: use typedef for SciTECO integers and make it configurable at configure time * storage size should always be 64 (gint64) to aid macro portability * however, for performance reasons users compiling from source might explicitly compile with 32 bit integers --- src/expressions.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/expressions.h') diff --git a/src/expressions.h b/src/expressions.h index 8676a2e..48ce6ee 100644 --- a/src/expressions.h +++ b/src/expressions.h @@ -149,7 +149,7 @@ public: }; private: - ValueStack numbers; + ValueStack numbers; ValueStack operators; public: @@ -161,22 +161,22 @@ public: gint radix; void set_radix(gint r); - gint64 push(gint64 number); + tecoInt push(tecoInt number); - inline gint64 + inline tecoInt peek_num(int index = 1) { return numbers.peek(index); } - gint64 pop_num(int index = 1); - gint64 pop_num_calc(int index, gint64 imply); - inline gint64 + tecoInt pop_num(int index = 1); + tecoInt pop_num_calc(int index, tecoInt imply); + inline tecoInt pop_num_calc(int index = 1) { return pop_num_calc(index, num_sign); } - gint64 add_digit(gchar digit); + tecoInt add_digit(gchar digit); Operator push(Operator op); Operator push_calc(Operator op); -- cgit v1.2.3