aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sciteco.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-03-28 18:33:13 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-02-15 15:21:52 +0100
commitc6b6aefd36d49aaf873bca20175b929f828589df (patch)
tree47e46a9e6c869d9d50c27e0d436911cb8bd63ab9 /src/sciteco.h
parentd374448af8ab690c810757f73ba44f208db96f30 (diff)
downloadsciteco-c6b6aefd36d49aaf873bca20175b929f828589df.tar.gz
String::get_coord() calculates line and column of a string position
* use to get line and column into a stack frame
Diffstat (limited to 'src/sciteco.h')
-rw-r--r--src/sciteco.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sciteco.h b/src/sciteco.h
index a1e2d4b..80f0c5e 100644
--- a/src/sciteco.h
+++ b/src/sciteco.h
@@ -87,6 +87,10 @@ append(gchar *&str, gchar chr)
append(str, CHR2STR(chr));
}
+/* in main.cpp */
+void get_coord(const gchar *str, gint pos,
+ gint &line, gint &column);
+
} /* namespace String */
namespace Validate {