Mercurial > vim
diff src/proto/blob.pro @ 24475:96905804bf5a
patch 8.2.2777: Vim9: blob operations not tested in all ways
Commit: https://github.com/vim/vim/commit/51e933261b984db014e858d79387a826d2626fb6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 17 20:44:56 2021 +0200
patch 8.2.2777: Vim9: blob operations not tested in all ways
Problem: Vim9: blob operations not tested in all ways.
Solution: Run tests with CheckLegacyAndVim9Success(). Make blob assign with
index work.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 17 Apr 2021 20:45:04 +0200 |
parents | 53216e87f21c |
children | 7144d2ffc86b |
line wrap: on
line diff
--- a/src/proto/blob.pro +++ b/src/proto/blob.pro @@ -7,7 +7,8 @@ void blob_free(blob_T *b); void blob_unref(blob_T *b); long blob_len(blob_T *b); int blob_get(blob_T *b, int idx); -void blob_set(blob_T *b, int idx, char_u c); +void blob_set(blob_T *blob, int idx, int byte); +void blob_set_append(blob_T *blob, int idx, int byte); int blob_equal(blob_T *b1, blob_T *b2); int read_blob(FILE *fd, blob_T *blob); int write_blob(FILE *fd, blob_T *blob);