1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-18 00:05:13 +00:00

Source mapping v4 (line and column instead of byte offsets).

This commit is contained in:
Calvin Rose
2018-06-29 11:12:33 -04:00
parent f93c84c21f
commit 28cf753fa2
8 changed files with 65 additions and 41 deletions

View File

@@ -33,8 +33,8 @@ Dst *dst_tuple_begin(int32_t length) {
char *data = dst_gcalloc(DST_MEMORY_TUPLE, 4 * sizeof(int32_t) + length * sizeof(Dst));
Dst *tuple = (Dst *)(data + (4 * sizeof(int32_t)));
dst_tuple_length(tuple) = length;
dst_tuple_sm_start(tuple) = -1;
dst_tuple_sm_end(tuple) = -1;
dst_tuple_sm_line(tuple) = 0;
dst_tuple_sm_col(tuple) = 0;
return tuple;
}