Home
last modified time | relevance | path

Searched refs:blob (Results 1 – 25 of 78) sorted by relevance

1234

/vim-8.2.3635/src/
H A Dblob.c27 if (blob != NULL) in blob_alloc()
29 return blob; in blob_alloc()
196 if (fread(blob->bv_ga.ga_data, 1, blob->bv_ga.ga_len, fd) in read_blob()
209 if (fwrite(blob->bv_ga.ga_data, 1, blob->bv_ga.ga_len, fd) in write_blob()
275 return blob; in string2blob()
278 blob_free(blob); in string2blob()
284 blob_T *blob, in blob_slice_or_index() argument
449 blob_T *blob; in blob_remove() local
469 vim_free(blob); in blob_remove()
492 blob_T *blob; in f_blob2list() local
[all …]
H A DREADME.md1 ![Vim Logo](https://github.com/vim/vim/blob/master/runtime/vimlogo.gif)
29 blob.c | blob data type
128 [`structs.h`](https://github.com/vim/vim/blob/master/src/structs.h).
131 [`globals.h`](https://github.com/vim/vim/blob/master/src/globals.h).
149 [`screen.c`](https://github.com/vim/vim/blob/master/src/screen.c)
182 [`normal.c`](https://github.com/vim/vim/blob/master/src/normal.c)
197 [`option.c`](https://github.com/vim/vim/blob/master/src/option.c),
207 through [`gui.c`](https://github.com/vim/vim/blob/master/src/gui.c).
231 [`CONTRIBUTING.md`](https://github.com/vim/vim/blob/master/CONTRIBUTING.md)
H A Dtypval.c1788 blob_T *blob = NULL; // init for gcc in eval_number() local
1792 blob = blob_alloc(); in eval_number()
1797 if (blob != NULL) in eval_number()
1800 ga_clear(&blob->bv_ga); in eval_number()
1801 VIM_CLEAR(blob); in eval_number()
1805 if (blob != NULL) in eval_number()
1806 ga_append(&blob->bv_ga, in eval_number()
1811 if (blob != NULL) in eval_number()
1812 rettv_blob_set(rettv, blob); in eval_number()
H A Dfilepath.c1729 int blob = always_blob; in read_file_or_blob() local
1749 blob = TRUE; in read_file_or_blob()
1755 if ((blob ? rettv_blob_alloc(rettv) : rettv_list_alloc(rettv)) == FAIL) in read_file_or_blob()
1773 if (blob) in read_file_or_blob()
2240 blob_T *blob = NULL; in f_writefile() local
2264 blob = argvars[0].vval.v_blob; in f_writefile()
2265 if (blob == NULL) in f_writefile()
2305 else if (blob) in f_writefile()
2307 if (write_blob(fd, blob) == FAIL) in f_writefile()
H A Dvim9execute.c2549 if (blob == NULL) in exec_instructions()
2554 len = blob_len(blob); in exec_instructions()
2565 if (value_check_lock(blob->bv_lock, in exec_instructions()
2571 blob_set_append(blob, lidx, nr); in exec_instructions()
2936 blob_copy(iptr->isn_arg.blob, tv); in exec_instructions()
3333 blob_T *blob = ltv->vval.v_blob; in exec_instructions() local
3340 blob_copy(blob, ltv); in exec_instructions()
3341 blob_unref(blob); in exec_instructions()
3342 blob = ltv->vval.v_blob; in exec_instructions()
3347 if (blob == NULL in exec_instructions()
[all …]
/vim-8.2.3635/src/proto/
H A Dblob.pro1 /* blob.c */
10 void blob_set(blob_T *blob, int idx, int byte);
11 void blob_set_append(blob_T *blob, int idx, int byte);
13 int read_blob(FILE *fd, blob_T *blob);
14 int write_blob(FILE *fd, blob_T *blob);
15 char_u *blob2string(blob_T *blob, char_u **tofree, char_u *numbuf);
17 int blob_slice_or_index(blob_T *blob, int is_range, varnumber_T n1, varnumber_T n2, int exclusive, …
/vim-8.2.3635/
H A DCONTRIBUTING.md48 [the todo file]: https://github.com/vim/vim/blob/master/runtime/doc/todo.txt
69 [Korean](https://github.com/cjw1359/opensource/blob/master/Vim/CONTRIBUTING_ko.md)
83 [1]: https://github.com/vim/vim/blob/master/src/po/README.txt
84 [2]: https://github.com/vim/vim/blob/master/runtime/lang/README.txt
85 [3]: https://github.com/vim/vim/blob/master/runtime/tutor/README.txt
86 [4]: https://github.com/vim/vim/blob/master/runtime/doc/vim.1
87 [5]: https://github.com/vim/vim/blob/master/nsis/lang/english.nsi
/vim-8.2.3635/src/testdir/
H A Dtest_blob.vim44 " assignment to a blob
287 VAR blob = 0z00010203
289 for byte in blob
295 LET blob = 0z00
296 call remove(blob, 0)
298 for byte in blob
302 LET blob = 0z0001020304
304 for byte in blob
380 " Test removing items in blob
464 " filter() item in blob
[all …]
H A Dtest_xxd.vim155 let blob = readfile('XXDfile', 'B')
156 call assert_equal(0z54455354.610B6364.30390A, blob)
164 let blob = readfile('XXDfile', 'B')
165 call assert_equal(0z0000000000.54455354.610B6364.30390A, blob)
H A Dtest_ruby.vim337 call assert_equal('0z', rubyeval('Vim::blob("")'))
338 call assert_equal('0z31326162', rubyeval('Vim::blob("12ab")'))
339 call assert_equal('0z00010203', rubyeval('Vim::blob("\x00\x01\x02\x03")'))
340 call assert_equal('0z8081FEFF', rubyeval('Vim::blob("\x80\x81\xfe\xff")'))
H A Dtest_lua.vim95 " lua.eval with a blob
97 call assert_equal('blob', luaeval('vim.type(v)'))
620 call assert_equal(0z, luaeval('vim.blob("")'))
621 call assert_equal(0z31326162, luaeval('vim.blob("12ab")'))
622 call assert_equal(0z00010203, luaeval('vim.blob("\x00\x01\x02\x03")'))
623 call assert_equal(0z8081FEFF, luaeval('vim.blob("\x80\x81\xfe\xff")'))
625 lua b = vim.blob("\x00\x00\x00\x00")
660 call assert_fails('lua lb[1] = 2', '[string "vim chunk"]:1: blob is locked')
661 call assert_fails('lua lb:add("12")', '[string "vim chunk"]:1: blob is locked')
665 call assert_fails('lua b = vim.blob(t)',
H A Dtest_vim9_builtin.vim84 var b1: blob = 0z12
88 var b2: blob # defaults to empty blob
93 var b: blob
104 var b: blob = test_null_blob()
109 # Getting variable with NULL blob allocates a new blob at script level
112 var b: blob = test_null_blob()
2652 var blob = 0z12341234
2653 writefile(blob, 'Xreadblob')
2654 var read: blob = readblob('Xreadblob')
2655 assert_equal(blob, read)
[all …]
H A Dtest_vim9_expr.vim1114 call CheckDefAndScriptFailure(["var x = 0za1 > 0z34"], 'Cannot compare blob with blob', 1)
1115 call CheckDefAndScriptFailure(["var x = 0za1 >= 0z34"], 'Cannot compare blob with blob', 1)
1116 call CheckDefAndScriptFailure(["var x = 0za1 < 0z34"], 'Cannot compare blob with blob', 1)
1117 call CheckDefAndScriptFailure(["var x = 0za1 <= 0z34"], 'Cannot compare blob with blob', 1)
1118 call CheckDefAndScriptFailure(["var x = 0za1 =~ 0z34"], 'Cannot compare blob with blob', 1)
1119 call CheckDefAndScriptFailure(["var x = 0za1 !~ 0z34"], 'Cannot compare blob with blob', 1)
1737 # blob constant
1759 # blob slice accepts out of range
2640 # blob index cannot be out of range
2647 # blob slice accepts out of range
/vim-8.2.3635/runtime/doc/
H A Dif_lua.txt13 5. Blob userdata |lua-blob|
142 vim.blob([arg]) Returns an empty blob or, if "arg" is a Lua
143 string, returns a blob b such that b is
147 :echo luaeval('vim.blob(s)')
341 5. Blob userdata *lua-blob*
343 Blob userdata represent vim blobs. A blob "b" has the following properties:
347 o "#b" is the length of blob "b", equivalent to "len(b)" in Vim.
506 list, dict, blob, and funcref userdata are converted to their Vim respective
H A Dif_ruby.txt117 *ruby-blob*
118 Vim::blob({arg})
/vim-8.2.3635/runtime/syntax/
H A Dninja.vim12 " https://github.com/ninja-build/ninja/blob/master/src/lexer.in.cc
13 " https://github.com/ninja-build/ninja/blob/master/src/manifest_parser.cc
H A Ddebcopyright.vim5 " URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debcopyright.vim
H A Dbzr.vim4 " URL: https://github.com/hdima/vim-scripts/blob/master/syntax/bzr.vim
H A Dsvn.vim4 " URL: https://github.com/hdima/vim-scripts/blob/master/syntax/svn.vim
H A Ddebsources.vim6 " URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debsources.vim
H A Drcs.vim4 " URL: https://github.com/hdima/vim-scripts/blob/master/syntax/rcs.vim
H A Ddebchangelog.vim7 " URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debchangelog.vim
/vim-8.2.3635/runtime/ftplugin/
H A Dlogcheck.vim6 " URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/ftplugin/logcheck.vim
H A Ddebcontrol.vim6 " URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/ftplugin/debcontrol.vim
/vim-8.2.3635/runtime/indent/
H A Dgitolite.vim3 " URL: https://github.com/sitaramc/gitolite/blob/master/contrib/vim/indent/gitolite.vim

1234