aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/qregisters.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-02-22 05:40:25 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2013-02-22 05:40:25 +0100
commit99f6da572f455b0ba17c341ec1a63c5826de3ecf (patch)
treeb4e18e283b840127c21597a857be49403b2bb06b /src/qregisters.cpp
parent5d5182158a982057a9fe4c7b3f3ac81e1536f1ff (diff)
downloadsciteco-99f6da572f455b0ba17c341ec1a63c5826de3ecf.tar.gz
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
Diffstat (limited to 'src/qregisters.cpp')
-rw-r--r--src/qregisters.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qregisters.cpp b/src/qregisters.cpp
index 69b3ea9..17be046 100644
--- a/src/qregisters.cpp
+++ b/src/qregisters.cpp
@@ -224,10 +224,10 @@ QRegister::load(const gchar *filename)
return true;
}
-gint64
+tecoInt
QRegisterBufferInfo::get_integer(void)
{
- gint64 id = 1;
+ tecoInt id = 1;
if (!ring.current)
return 0;
@@ -568,7 +568,7 @@ StateSetQRegInteger::got_register(QRegister &reg) throw (Error)
State *
StateIncreaseQReg::got_register(QRegister &reg) throw (Error)
{
- gint64 res;
+ tecoInt res;
BEGIN_EXEC(&States::start);
@@ -593,7 +593,7 @@ StateMacro::got_register(QRegister &reg) throw (Error, ReplaceCmdline)
State *
StateCopyToQReg::got_register(QRegister &reg) throw (Error)
{
- gint64 from, len;
+ tecoInt from, len;
Sci_TextRange tr;
BEGIN_EXEC(&States::start);
@@ -614,7 +614,7 @@ StateCopyToQReg::got_register(QRegister &reg) throw (Error)
len *= -1;
}
} else {
- gint64 to = expressions.pop_num();
+ tecoInt to = expressions.pop_num();
from = expressions.pop_num();
if (!Validate::pos(from) || !Validate::pos(to))