diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-22 05:40:25 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-22 05:40:25 +0100 |
commit | 99f6da572f455b0ba17c341ec1a63c5826de3ecf (patch) | |
tree | b4e18e283b840127c21597a857be49403b2bb06b /src/ring.cpp | |
parent | 5d5182158a982057a9fe4c7b3f3ac81e1536f1ff (diff) | |
download | sciteco-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/ring.cpp')
-rw-r--r-- | src/ring.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ring.cpp b/src/ring.cpp index 138714f..33d8293 100644 --- a/src/ring.cpp +++ b/src/ring.cpp @@ -190,7 +190,7 @@ Ring::find(const gchar *filename) } Buffer * -Ring::find(gint64 id) +Ring::find(tecoInt id) { Buffer *cur; @@ -226,7 +226,7 @@ Ring::is_any_dirty(void) } bool -Ring::edit(gint64 id) +Ring::edit(tecoInt id) { Buffer *buffer = find(id); @@ -581,20 +581,20 @@ StateEditFile::do_edit(const gchar *filename) throw (Error) } void -StateEditFile::do_edit(gint64 id) throw (Error) +StateEditFile::do_edit(tecoInt id) throw (Error) { if (ring.current) ring.undo_edit(); else /* QRegisters::current != NULL */ QRegisters::undo_edit(); if (!ring.edit(id)) - throw Error("Invalid buffer id %" G_GINT64_FORMAT, id); + throw Error("Invalid buffer id %" TECO_INTEGER_FORMAT, id); } void StateEditFile::initial(void) throw (Error) { - gint64 id = expressions.pop_num_calc(1, -1); + tecoInt id = expressions.pop_num_calc(1, -1); allowFilename = true; |