aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/module.cxx6
-rw-r--r--mod/module.hxx3
2 files changed, 9 insertions, 0 deletions
diff --git a/mod/module.cxx b/mod/module.cxx
index 06799d7..9209f3f 100644
--- a/mod/module.cxx
+++ b/mod/module.cxx
@@ -406,4 +406,10 @@ namespace brep
else
throw cli::eos_reached ();
}
+
+ size_t handler::name_value_scanner::
+ position ()
+ {
+ return i_ - name_values_.begin ();
+ }
}
diff --git a/mod/module.hxx b/mod/module.hxx
index b3ed67b..3056425 100644
--- a/mod/module.hxx
+++ b/mod/module.hxx
@@ -135,6 +135,9 @@ namespace brep
virtual void
skip ();
+ virtual size_t
+ position ();
+
private:
const name_values& name_values_;
name_values::const_iterator i_;