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/ring.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ring.cpp') 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; -- cgit v1.2.3