Add $__loc__ (fix #740)
This commit is contained in:
1 parent
1dcfc2f547
commit
24005287f4
10 files changed
+1178
-1152
No files matched your search
@@ -47,7 +47,7 @@ void locfile_free(struct locfile* l) {
|
||||
}
|
||||
}
|
||||
|
||||
static int locfile_get_line(struct locfile* l, int pos) {
|
||||
int locfile_get_line(struct locfile* l, int pos) {
|
||||
assert(pos < l->length);
|
||||
int line = 1;
|
||||
while (l->linemap[line] <= pos) line++; // == if pos at start (before, never ==, because pos never on \n)
|
||||
|
||||
Reference in new issue
Block a user