diff options
author | June McEnroe <june@causal.agency> | 2018-11-23 15:27:26 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-11-23 15:27:26 -0500 |
commit | e1fb4842bf05c8c5fc66d00b61cb50acbcb783e5 (patch) | |
tree | b23d1bb284ee50173828a71f70a410f4cf165e29 /bin/edi/edi.h | |
parent | Move buffer length to blocks (diff) | |
download | src-e1fb4842bf05c8c5fc66d00b61cb50acbcb783e5.tar.gz src-e1fb4842bf05c8c5fc66d00b61cb50acbcb783e5.zip |
Replace tableUpdate with tableReplace
Diffstat (limited to '')
-rw-r--r-- | bin/edi/edi.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/edi/edi.h b/bin/edi/edi.h index c7345e37..ed03bf21 100644 --- a/bin/edi/edi.h +++ b/bin/edi/edi.h @@ -51,15 +51,14 @@ void bufferTruncate(struct Buffer *buf, size_t len); static const struct Table { size_t cap, len; - size_t ins; struct Slice *slices; } TableEmpty; struct Table tableAlloc(size_t cap); void tableFree(struct Table *table); void tablePush(struct Table *table, struct Slice slice); +void tableReplace(struct Table *table, struct Slice old, struct Slice new); struct Table tableInsert(const struct Table *prev, size_t at, struct Slice ins); struct Table tableDelete(const struct Table *prev, struct Span del); -void tableUpdate(struct Table *table, struct Slice ins); struct Iter { const struct Table *table; |