From 82f62a0f728eb57c22776424521564da7de7cc22 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 23 Nov 2018 15:27:26 -0500 Subject: Replace tableUpdate with tableReplace --- bin/edi/edi.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin/edi/edi.h') diff --git a/bin/edi/edi.h b/bin/edi/edi.h index 819b0a36..be7bf681 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; -- cgit 1.4.1