diff options
author | John MacFarlane <[email protected]> | 2017-01-03 22:08:38 -0800 |
---|---|---|
committer | John MacFarlane <[email protected]> | 2017-01-03 22:08:38 -0800 |
commit | 60b6962db0b0488667180e11cc6cfb1cec1b41ea (patch) | |
tree | 9f3d399e48b781b5e363b47a2aa04e2b758e331c /src/source_map.h | |
parent | cc50a3aba3e34dc58ca819a65b907871e2ea6fd9 (diff) |
Revert "Change types for source map offsets (#174)"
This reverts commit 4fbe344df43ed7f60a3d3a53981088334cb709fc.
Diffstat (limited to 'src/source_map.h')
-rw-r--r-- | src/source_map.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/source_map.h b/src/source_map.h index dca5a9f..619a073 100644 --- a/src/source_map.h +++ b/src/source_map.h @@ -3,7 +3,6 @@ #include "cmark.h" #include "config.h" -#include "buffer.h" typedef struct _cmark_source_map { @@ -11,14 +10,14 @@ typedef struct _cmark_source_map cmark_source_extent *tail; cmark_source_extent *cursor; cmark_source_extent *next_cursor; - bufsize_t cursor_offset; + uint64_t cursor_offset; cmark_mem *mem; } cmark_source_map; struct cmark_source_extent { - bufsize_t start; - bufsize_t stop; + uint64_t start; + uint64_t stop; struct cmark_source_extent *next; struct cmark_source_extent *prev; cmark_node *node; @@ -30,20 +29,20 @@ cmark_source_map * source_map_new (cmark_mem *mem); void source_map_free (cmark_source_map *self); bool source_map_check (cmark_source_map *self, - bufsize_t total_length); + uint64_t total_length); void source_map_pretty_print (cmark_source_map *self); cmark_source_extent * source_map_append_extent(cmark_source_map *self, - bufsize_t start, - bufsize_t stop, + uint64_t start, + uint64_t stop, cmark_node *node, cmark_extent_type type); cmark_source_extent * source_map_insert_extent(cmark_source_map *self, cmark_source_extent *previous, - bufsize_t start, - bufsize_t stop, + uint64_t start, + uint64_t stop, cmark_node *node, cmark_extent_type type); @@ -53,11 +52,11 @@ cmark_source_extent * source_map_free_extent (cmark_source_map *self, cmark_source_extent * source_map_stitch_extent(cmark_source_map *self, cmark_source_extent *extent, cmark_node *node, - bufsize_t total_length); + uint64_t total_length); cmark_source_extent * source_map_splice_extent(cmark_source_map *self, - bufsize_t start, - bufsize_t stop, + uint64_t start, + uint64_t stop, cmark_node *node, cmark_extent_type type); |