-rw-r--r-- | lib/exception.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/exception.cc b/lib/exception.cc index 65302bf..e03f818 100644 --- a/lib/exception.cc +++ b/lib/exception.cc | |||
@@ -1,24 +1,25 @@ | |||
1 | #include <stdio.h> | ||
1 | #include <string.h> | 2 | #include <string.h> |
2 | #include <errno.h> | 3 | #include <errno.h> |
3 | #include "konforka/exception.h" | 4 | #include "konforka/exception.h" |
4 | 5 | ||
5 | namespace konforka { | 6 | namespace konforka { |
6 | 7 | ||
7 | /* | 8 | /* |
8 | * code_point | 9 | * code_point |
9 | */ | 10 | */ |
10 | 11 | ||
11 | code_point::code_point(const string& w) | 12 | code_point::code_point(const string& w) |
12 | : where(w), line(-1) { } | 13 | : where(w), line(-1) { } |
13 | code_point::code_point(const string& fi,const string& fu,int l) | 14 | code_point::code_point(const string& fi,const string& fu,int l) |
14 | : file(fi), function(fu), line(l) { | 15 | : file(fi), function(fu), line(l) { |
15 | make_where(); | 16 | make_where(); |
16 | } | 17 | } |
17 | 18 | ||
18 | const char *code_point::c_str() const throw() { | 19 | const char *code_point::c_str() const throw() { |
19 | return where.c_str(); | 20 | return where.c_str(); |
20 | } | 21 | } |
21 | 22 | ||
22 | void code_point::make_where() { | 23 | void code_point::make_where() { |
23 | static char tmp[8]; | 24 | static char tmp[8]; |
24 | snprintf(tmp,sizeof(tmp),"%d",line); | 25 | snprintf(tmp,sizeof(tmp),"%d",line); |