summaryrefslogtreecommitdiffstats
path: root/src/blob.c
AgeCommit message (Collapse)Author
2024-01-13patch 9.1.0027: Vim is missing a foreach() funcv9.1.0027Ernie Rael
Problem: Vim is missing a foreach() func Solution: Implement foreach({expr1}, {expr2}) function, which applies {expr2} for each item in {expr1} without changing it (Ernie Rael) closes: #12166 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-08-17patch 9.0.1723: Fix regression in {func} argument of reduce()v9.0.1723zeertzjq
Problem: Fix regression in {func} argument of reduce() Solution: pass function name as string again Before patch 9.0.0548, passing a string as {func} argument of reduce() is treated as a function name, but after patch 9.0.0548 it is treated as an expression instead, which is useless as reduce() doesn't set any v: variables. This PR restores the behavior of {func} before that patch. Also correct an emsg() call, as e_string_list_or_blob_required doesn't contain format specifiers. closes: #12824 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-04-16patch 9.0.1459: typo in name of typev9.0.1459zeertzjq
Problem: Typo in name of type. Solution: Change funccal_T to funccall_T. (closes #12265)
2023-03-19patch 9.0.1416: crash when collection is modified when using filter()v9.0.1416Ernie Rael
Problem: Crash when collection is modified when using filter(). Solution: Lock the list/dict/blob. (Ernie Rael, closes #12183)
2022-11-02patch 9.0.0828: various typosv9.0.0828dundargoc
Problem: Various typos. Solution: Correct typos. (closes #11432)
2022-10-21patch 9.0.0810: readblob() returns empty when trying to read too muchv9.0.0810Bram Moolenaar
Problem: readblob() returns empty when trying to read too much. Solution: Return what is available.
2022-10-20patch 9.0.0803: readblob() cannot read from character devicev9.0.0803K.Takata
Problem: readblob() cannot read from character device. Solution: Use S_ISCHR() to not check the size. (Ken Takata, closes #11407)
2022-10-19patch 9.0.0795: readblob() always reads the whole filev9.0.0795K.Takata
Problem: readblob() always reads the whole file. Solution: Add arguments to read part of the file. (Ken Takata, closes #11402)
2022-09-28patch 9.0.0618: calling function for reduce() has too much overheadv9.0.0618Bram Moolenaar
Problem: Calling function for reduce() has too much overhead. Solution: Do not create a funccall_T every time.
2022-09-27patch 9.0.0601: too much indentv9.0.0601Yegappan Lakshmanan
Problem: Too much indent. Solution: Return out early from a funtion. (Yegappan Lakshmanan, close #11238)
2022-09-22patch 9.0.0548: reduce() with a compiled lambda could be fasterv9.0.0548Bram Moolenaar
Problem: reduce() with a compiled lambda could be faster. Solution: Call eval_expr_typval() instead of call_func() directly.
2022-09-02patch 9.0.0359: error message for wrong argument type is not specificv9.0.0359Yegappan Lakshmanan
Problem: Error message for wrong argument type is not specific. Solution: Include more information in the error. (Yegappan Lakshmanan, closes #11037)
2022-04-03patch 8.2.4670: memory allocation failures for new tab page not testedv8.2.4670Yegappan Lakshmanan
Problem: Memory allocation failures for new tab page not tested. Solution: Add tests with failing memory allocation. (Yegappan Lakshmanan, closes #10067)
2022-01-28patch 8.2.4241: some type casts are redundantv8.2.4241=?UTF-8?q?Dundar=20G=C3=B6c?=
Problem: Some type casts are redundant. Solution: Remove the type casts. (closes #9643)
2022-01-01patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-31patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-31patch 8.2.3960: error messages are spread outv8.2.3960Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-22patch 8.2.3871: list.c contains code for dict and blobv8.2.3871Yegappan Lakshmanan
Problem: List.c contains code for dict and blob. Solution: Refactor to put code where it belongs. (Yegappan Lakshmanan, closes #9386)
2021-12-19patch 8.2.3855: illegal memory access when displaying a blobv8.2.3855Yegappan Lakshmanan
Problem: Illegal memory access when displaying a blob. Solution: Append a NUL at the end. (Yegappan Lakshmanan, closes #9372)
2021-12-05patch 8.2.3750: error messages are everywherev8.2.3750Bram Moolenaar
Problem: Error messages are everywhere. Solution: Move more error messages to errors.h and adjust the names.
2021-12-03patch 8.2.3728: internal error when passing range() to list2blob()v8.2.3728kuuote
Problem: Internal error when passing range() to list2blob(). Solution: Materialize the list first. (closes #9262)
2021-09-14patch 8.2.3438: cannot manipulate blobsv8.2.3438Yegappan Lakshmanan
Problem: Cannot manipulate blobs. Solution: Add blob2list() and list2blob(). (Yegappan Lakshmanan, closes #8868)
2021-08-04patch 8.2.3284: no error for insert() or remove() changing a locked blobv8.2.3284Sean Dewar
Problem: No error for insert() or remove() changing a locked blob. Solution: Check a blob is not locked before changing it. (Sean Dewar, closes #8696)
2021-07-23patch 8.2.3206: Vim9: argument types are not checked at compile timev8.2.3206Yegappan Lakshmanan
Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8611)
2021-07-20patch 8.2.3188: Vim9: argument types are not checked at compile timev8.2.3188Yegappan Lakshmanan
Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks, also at runtime. (Yegappan Lakshmanan, closes #8587)
2021-04-17patch 8.2.2779: memory access error in remove() for blobv8.2.2779Bram Moolenaar
Problem: Memory access error in remove() for blob. Solution: Adjust length for memmove().
2021-04-17patch 8.2.2777: Vim9: blob operations not tested in all waysv8.2.2777Bram Moolenaar
Problem: Vim9: blob operations not tested in all ways. Solution: Run tests with CheckLegacyAndVim9Success(). Make blob assign with index work.
2021-04-14patch 8.2.2767: compiler warning for unused argumentv8.2.2767Bram Moolenaar
Problem: Compiler warning for unused argument. Solution: Remove the argument.
2021-04-14patch 8.2.2765: Vim9: not all blob operations workv8.2.2765Bram Moolenaar
Problem: Vim9: not all blob operations work. Solution: Run more tests also with Vim9 script and :def functions. Fix what doesn't work.
2021-04-12patch 8.2.2757: Vim9: blob tests for legacy and Vim9 script are separatev8.2.2757Bram Moolenaar
Problem: Vim9: blob tests for legacy and Vim9 script are separate. Solution: Add CheckLegacyAndVim9Success(). Make blob index assign work.
2021-04-11patch 8.2.2756: Vim9: blob index and slice not implemented yetv8.2.2756Bram Moolenaar
Problem: Vim9: blob index and slice not implemented yet. Solution: Implement blob index and slice.
2020-10-19patch 8.2.1866: Vim9: appending to pushed blob gives wrong resultv8.2.1866Bram Moolenaar
Problem: Vim9: appending to pushed blob gives wrong result. Solution: Set ga_maxlen when copying a blob.
2020-01-26patch 8.2.0149: maintaining a Vim9 branch separately is more workv8.2.0149Bram Moolenaar
Problem: Maintaining a Vim9 branch separately is more work. Solution: Merge the Vim9 script changes.
2019-11-30patch 8.1.2368: using old C style commentsv8.1.2368Bram Moolenaar
Problem: Using old C style comments. Solution: Use // comments where appropriate.
2019-07-27patch 8.1.1763: evalfunc.c is still too bigv8.1.1763Bram Moolenaar
Problem: Evalfunc.c is still too big. Solution: Move dict and list functions to a better place.
2019-07-12patch 8.1.1671: copying a blob may result in it being lockedv8.1.1671Bram Moolenaar
Problem: Copying a blob may result in it being locked. Solution: Reset v_lock. (Ken Takata, closes #4648)
2019-05-28patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar
Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
2019-03-19patch 8.1.1022: may use NULL pointer when out of memoryv8.1.1022Bram Moolenaar
Problem: May use NULL pointer when out of memory. (Coverity) Solution: Check for blob_alloc() returning NULL.
2019-01-24patch 8.1.0802: negative index doesn't work for Blobv8.1.0802Bram Moolenaar
Problem: Negative index doesn't work for Blob. Solution: Make it work, add a test. (closes #3856)
2019-01-23patch 8.1.0798: changing a blob while iterating over it works strangelyv8.1.0798Bram Moolenaar
Problem: Changing a blob while iterating over it works strangely. Solution: Make a copy of the Blob before iterating.
2019-01-17patch 8.1.0765: string format of a Blob can't be parsed backv8.1.0765Bram Moolenaar
Problem: String format of a Blob can't be parsed back. Solution: Use 0z format.
2019-01-13patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar
Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.
2019-01-13patch 8.1.0741: viminfo with Blob is not testedv8.1.0741Bram Moolenaar
Problem: Viminfo with Blob is not tested. Solution: Extend the viminfo test. Fix reading a blob. Fixed storing a special variable value.
2019-01-13patch 8.1.0736: code for Blob not sufficiently testedv8.1.0736Bram Moolenaar
Problem: Code for Blob not sufficiently tested. Solution: Add more tests. Fix uncovered crash. Add test_null_blob().
2019-01-12patch 8.1.0735: cannot handle binary datav8.1.0735Bram Moolenaar
Problem: Cannot handle binary data. Solution: Add the Blob type. (Yasuhiro Matsumoto, closes #3638)