Skip to content

Commit

Permalink
Update 2 packages
Browse files Browse the repository at this point in the history
mingw-w64-x86_64-libdeflate (1.18-1 -> 1.19-1)
vim (9.0.1403-2 -> 9.0.1907-1)

Signed-off-by: Git for Windows Build Agent <[email protected]>
  • Loading branch information
Git for Windows Build Agent committed Sep 19, 2023
1 parent e9251d8 commit 3fc2d80
Show file tree
Hide file tree
Showing 481 changed files with 17,060 additions and 4,481 deletions.
Binary file modified mingw64/bin/libdeflate-gunzip.exe
Binary file not shown.
Binary file modified mingw64/bin/libdeflate-gzip.exe
Binary file not shown.
Binary file modified mingw64/bin/libdeflate.dll
Binary file not shown.
89 changes: 66 additions & 23 deletions mingw64/include/libdeflate.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ extern "C" {
#endif

#define LIBDEFLATE_VERSION_MAJOR 1
#define LIBDEFLATE_VERSION_MINOR 18
#define LIBDEFLATE_VERSION_STRING "1.18"
#define LIBDEFLATE_VERSION_MINOR 19
#define LIBDEFLATE_VERSION_STRING "1.19"

/*
* Users of libdeflate.dll on Windows can define LIBDEFLATE_DLL to cause
Expand All @@ -35,6 +35,7 @@ extern "C" {
/* ========================================================================== */

struct libdeflate_compressor;
struct libdeflate_options;

/*
* libdeflate_alloc_compressor() allocates a new compressor that supports
Expand All @@ -57,12 +58,19 @@ struct libdeflate_compressor;
LIBDEFLATEAPI struct libdeflate_compressor *
libdeflate_alloc_compressor(int compression_level);

/*
* Like libdeflate_alloc_compressor(), but adds the 'options' argument.
*/
LIBDEFLATEAPI struct libdeflate_compressor *
libdeflate_alloc_compressor_ex(int compression_level,
const struct libdeflate_options *options);

/*
* libdeflate_deflate_compress() performs raw DEFLATE compression on a buffer of
* data. It attempts to compress 'in_nbytes' bytes of data located at 'in' and
* write the result to 'out', which has space for 'out_nbytes_avail' bytes. The
* return value is the compressed size in bytes, or 0 if the data could not be
* compressed to 'out_nbytes_avail' bytes or fewer (but see note below).
* compressed to 'out_nbytes_avail' bytes or fewer.
*
* If compression is successful, then the output data is guaranteed to be a
* valid DEFLATE stream that decompresses to the input data. No other
Expand All @@ -72,22 +80,6 @@ libdeflate_alloc_compressor(int compression_level);
* writing tests that compare compressed data to a golden output, as this can
* break when libdeflate is updated. (This property isn't specific to
* libdeflate; the same is true for zlib and other compression libraries too.)
*
* Note: due to a performance optimization, libdeflate_deflate_compress()
* currently needs a small amount of slack space at the end of the output
* buffer. As a result, it can't actually report compressed sizes very close to
* 'out_nbytes_avail'. This doesn't matter in real-world use cases, and
* libdeflate_deflate_compress_bound() already includes the slack space.
* However, it does mean that testing code that redundantly compresses data
* using an exact-sized output buffer won't work as might be expected:
*
* out_nbytes = libdeflate_deflate_compress(c, in, in_nbytes, out,
* libdeflate_deflate_compress_bound(in_nbytes));
* // The following assertion will fail.
* assert(libdeflate_deflate_compress(c, in, in_nbytes, out, out_nbytes) != 0);
*
* To avoid this, either don't write tests like the above, or make sure to
* include at least 9 bytes of slack space in 'out_nbytes_avail'.
*/
LIBDEFLATEAPI size_t
libdeflate_deflate_compress(struct libdeflate_compressor *compressor,
Expand Down Expand Up @@ -171,6 +163,7 @@ libdeflate_free_compressor(struct libdeflate_compressor *compressor);
/* ========================================================================== */

struct libdeflate_decompressor;
struct libdeflate_options;

/*
* libdeflate_alloc_decompressor() allocates a new decompressor that can be used
Expand All @@ -187,6 +180,12 @@ struct libdeflate_decompressor;
LIBDEFLATEAPI struct libdeflate_decompressor *
libdeflate_alloc_decompressor(void);

/*
* Like libdeflate_alloc_decompressor(), but adds the 'options' argument.
*/
LIBDEFLATEAPI struct libdeflate_decompressor *
libdeflate_alloc_decompressor_ex(const struct libdeflate_options *options);

/*
* Result of a call to libdeflate_deflate_decompress(),
* libdeflate_zlib_decompress(), or libdeflate_gzip_decompress().
Expand Down Expand Up @@ -351,16 +350,60 @@ libdeflate_crc32(uint32_t crc, const void *buffer, size_t len);

/*
* Install a custom memory allocator which libdeflate will use for all memory
* allocations. 'malloc_func' is a function that must behave like malloc(), and
* 'free_func' is a function that must behave like free().
* allocations by default. 'malloc_func' is a function that must behave like
* malloc(), and 'free_func' is a function that must behave like free().
*
* The per-(de)compressor custom memory allocator that can be specified in
* 'struct libdeflate_options' takes priority over this.
*
* There must not be any libdeflate_compressor or libdeflate_decompressor
* structures in existence when calling this function.
* This doesn't affect the free() function that will be used to free
* (de)compressors that were already in existence when this is called.
*/
LIBDEFLATEAPI void
libdeflate_set_memory_allocator(void *(*malloc_func)(size_t),
void (*free_func)(void *));

/*
* Advanced options. This is the options structure that
* libdeflate_alloc_compressor_ex() and libdeflate_alloc_decompressor_ex()
* require. Most users won't need this and should just use the non-"_ex"
* functions instead. If you do need this, it should be initialized like this:
*
* struct libdeflate_options options;
*
* memset(&options, 0, sizeof(options));
* options.sizeof_options = sizeof(options);
* // Then set the fields that you need to override the defaults for.
*/
struct libdeflate_options {

/*
* This field must be set to the struct size. This field exists for
* extensibility, so that fields can be appended to this struct in
* future versions of libdeflate while still supporting old binaries.
*/
size_t sizeof_options;

/*
* An optional custom memory allocator to use for this (de)compressor.
* 'malloc_func' must be a function that behaves like malloc(), and
* 'free_func' must be a function that behaves like free().
*
* This is useful in cases where a process might have multiple users of
* libdeflate who want to use different memory allocators. For example,
* a library might want to use libdeflate with a custom memory allocator
* without interfering with user code that might use libdeflate too.
*
* This takes priority over the "global" memory allocator (which by
* default is malloc() and free(), but can be changed by
* libdeflate_set_memory_allocator()). Moreover, libdeflate will never
* call the "global" memory allocator if a per-(de)compressor custom
* allocator is always given.
*/
void *(*malloc_func)(size_t);
void (*free_func)(void *);
};

#ifdef __cplusplus
}
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version.
# The variable CVF_VERSION must be set before calling configure_file().

set(PACKAGE_VERSION "1.18")
set(PACKAGE_VERSION "1.19")

if (PACKAGE_FIND_VERSION_RANGE)
# Package version must be in the requested version range
Expand Down
2 changes: 1 addition & 1 deletion mingw64/lib/cmake/libdeflate/libdeflate-targets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if(CMAKE_VERSION VERSION_LESS "2.8.3")
message(FATAL_ERROR "CMake >= 2.8.3 required")
endif()
cmake_policy(PUSH)
cmake_policy(VERSION 2.8.3...3.24)
cmake_policy(VERSION 2.8.3...3.25)
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------
Expand Down
Binary file modified mingw64/lib/libdeflate.a
Binary file not shown.
Binary file modified mingw64/lib/libdeflate.dll.a
Binary file not shown.
2 changes: 1 addition & 1 deletion mingw64/lib/pkgconfig/libdeflate.pc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ libdir=${exec_prefix}/lib

Name: libdeflate
Description: Fast implementation of DEFLATE, zlib, and gzip
Version: 1.18
Version: 1.19
Libs: -L${libdir} -ldeflate
Cflags: -I${includedir} -DLIBDEFLATE_DLL
Cflags.private: -ULIBDEFLATE_DLL
Binary file modified usr/bin/ex.exe
Binary file not shown.
Binary file modified usr/bin/rview.exe
Binary file not shown.
Binary file modified usr/bin/rvim.exe
Binary file not shown.
Binary file modified usr/bin/view.exe
Binary file not shown.
Binary file modified usr/bin/vim.exe
Binary file not shown.
Binary file modified usr/bin/vimdiff.exe
Binary file not shown.
Binary file modified usr/bin/xxd.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion usr/share/applications/gvim.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Comment[fr]=Éditer des fichiers texte
Comment[ga]=Cuir comhaid téacs in eagar
Comment[it]=Edita file di testo
Comment[ja]=テキストファイルを編集します
Comment[ru]=Редактирование текстовых файлов
Comment[ru]=Редактировать текстовые файлы
Comment[sr]=Уређујте текст фајлове
Comment[tr]=Metin dosyaları düzenleyin
Comment[uk]=Редагувати текстові файли
Expand Down
2 changes: 1 addition & 1 deletion usr/share/applications/vim.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Comment[fr]=Éditer des fichiers texte
Comment[ga]=Cuir comhaid téacs in eagar
Comment[it]=Edita file di testo
Comment[ja]=テキストファイルを編集します
Comment[ru]=Редактирование текстовых файлов
Comment[ru]=Редактировать текстовые файлы
Comment[sr]=Уређујте текст фајлове
Comment[tr]=Metin dosyaları düzenleyin
Comment[uk]=Редагувати текстові файли
Expand Down
4 changes: 2 additions & 2 deletions usr/share/licenses/vim/license.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ II) It is allowed to distribute a modified (or extended) version of Vim,
maintainer will do with your changes and under what license they
will be distributed is negotiable. If there has been no negotiation
then this license, or a later version, also applies to your changes.
The current maintainer is Bram Moolenaar <Bram@vim.org>. If this
changes it will be announced in appropriate places (most likely
The current maintainers are listed here: https://github.com/orgs/vim/people.
If this changes it will be announced in appropriate places (most likely
vim.sf.net, www.vim.org and/or comp.editors). When it is completely
impossible to contact the maintainer, the obligation to send him
your changes ceases. Once the maintainer has confirmed that he has
Expand Down
Binary file modified usr/share/man/it.ISO8859-1/man1/rview.1.gz
Binary file not shown.
Binary file modified usr/share/man/it.ISO8859-1/man1/rvim.1.gz
Binary file not shown.
Binary file modified usr/share/man/it.ISO8859-1/man1/view.1.gz
Binary file not shown.
Binary file modified usr/share/man/it.ISO8859-1/man1/vim.1.gz
Binary file not shown.
Binary file modified usr/share/man/it.ISO8859-1/man1/vimdiff.1.gz
Binary file not shown.
Binary file modified usr/share/man/it.ISO8859-1/man1/vimtutor.1.gz
Binary file not shown.
Binary file modified usr/share/man/it.ISO8859-1/man1/xxd.1.gz
Binary file not shown.
Binary file modified usr/share/man/it.UTF-8/man1/rview.1.gz
Binary file not shown.
Binary file modified usr/share/man/it.UTF-8/man1/rvim.1.gz
Binary file not shown.
Binary file modified usr/share/man/it.UTF-8/man1/view.1.gz
Binary file not shown.
Binary file modified usr/share/man/it.UTF-8/man1/vim.1.gz
Binary file not shown.
Binary file modified usr/share/man/it.UTF-8/man1/vimdiff.1.gz
Binary file not shown.
Binary file modified usr/share/man/it.UTF-8/man1/vimtutor.1.gz
Binary file not shown.
Binary file modified usr/share/man/it.UTF-8/man1/xxd.1.gz
Binary file not shown.
Binary file modified usr/share/man/it/man1/rview.1.gz
Binary file not shown.
Binary file modified usr/share/man/it/man1/rvim.1.gz
Binary file not shown.
Binary file modified usr/share/man/it/man1/view.1.gz
Binary file not shown.
Binary file modified usr/share/man/it/man1/vim.1.gz
Binary file not shown.
Binary file modified usr/share/man/it/man1/vimdiff.1.gz
Binary file not shown.
Binary file modified usr/share/man/it/man1/vimtutor.1.gz
Binary file not shown.
Binary file modified usr/share/man/it/man1/xxd.1.gz
Binary file not shown.
Binary file modified usr/share/man/man1/vimtutor.1.gz
Binary file not shown.
Binary file modified usr/share/man/man1/xxd.1.gz
Binary file not shown.
149 changes: 149 additions & 0 deletions usr/share/vim/vim90/autoload/cargo.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
" Last Modified: 2023-09-11

function! cargo#Load()
" Utility call to get this script loaded, for debugging
endfunction

function! cargo#cmd(args) abort
" Trim trailing spaces. This is necessary since :terminal command parses
" trailing spaces as an empty argument.
let args = substitute(a:args, '\s\+$', '', '')
if exists('g:cargo_shell_command_runner')
let cmd = g:cargo_shell_command_runner
elseif has('terminal')
let cmd = 'terminal'
elseif has('nvim')
let cmd = 'noautocmd new | terminal'
else
let cmd = '!'
endif
execute cmd 'cargo' args
endfunction

function! s:nearest_cargo(...) abort
" If the second argument is not specified, the first argument determines
" whether we will start from the current directory or the directory of the
" current buffer, otherwise, we start with the provided path on the
" second argument.

let l:is_getcwd = get(a:, 1, 0)
if l:is_getcwd
let l:starting_path = get(a:, 2, getcwd())
else
let l:starting_path = get(a:, 2, expand('%:p:h'))
endif

return findfile('Cargo.toml', l:starting_path . ';')
endfunction

function! cargo#nearestCargo(is_getcwd) abort
return s:nearest_cargo(a:is_getcwd)
endfunction

function! cargo#nearestWorkspaceCargo(is_getcwd) abort
let l:nearest = s:nearest_cargo(a:is_getcwd)
while l:nearest !=# ''
for l:line in readfile(l:nearest, '', 0x100)
if l:line =~# '\V[workspace]'
return l:nearest
endif
endfor
let l:next = fnamemodify(l:nearest, ':p:h:h')
let l:nearest = s:nearest_cargo(0, l:next)
endwhile
return ''
endfunction

function! cargo#nearestRootCargo(is_getcwd) abort
" Try to find a workspace Cargo.toml, and if not found, take the nearest
" regular Cargo.toml
let l:workspace_cargo = cargo#nearestWorkspaceCargo(a:is_getcwd)
if l:workspace_cargo !=# ''
return l:workspace_cargo
endif
return s:nearest_cargo(a:is_getcwd)
endfunction


function! cargo#build(args)
call cargo#cmd("build " . a:args)
endfunction

function! cargo#check(args)
call cargo#cmd("check " . a:args)
endfunction

function! cargo#clean(args)
call cargo#cmd("clean " . a:args)
endfunction

function! cargo#doc(args)
call cargo#cmd("doc " . a:args)
endfunction

function! cargo#new(args)
call cargo#cmd("new " . a:args)
cd `=a:args`
endfunction

function! cargo#init(args)
call cargo#cmd("init " . a:args)
endfunction

function! cargo#run(args)
call cargo#cmd("run " . a:args)
endfunction

function! cargo#test(args)
call cargo#cmd("test " . a:args)
endfunction

function! cargo#bench(args)
call cargo#cmd("bench " . a:args)
endfunction

function! cargo#update(args)
call cargo#cmd("update " . a:args)
endfunction

function! cargo#search(args)
call cargo#cmd("search " . a:args)
endfunction

function! cargo#publish(args)
call cargo#cmd("publish " . a:args)
endfunction

function! cargo#install(args)
call cargo#cmd("install " . a:args)
endfunction

function! cargo#runtarget(args)
let l:filename = expand('%:p')
let l:read_manifest = system('cargo read-manifest')
let l:metadata = json_decode(l:read_manifest)
let l:targets = get(l:metadata, 'targets', [])
let l:did_run = 0
for l:target in l:targets
let l:src_path = get(l:target, 'src_path', '')
let l:kinds = get(l:target, 'kind', [])
let l:name = get(l:target, 'name', '')
if l:src_path == l:filename
if index(l:kinds, 'example') != -1
let l:did_run = 1
call cargo#run("--example " . shellescape(l:name) . " " . a:args)
return
elseif index(l:kinds, 'bin') != -1
let l:did_run = 1
call cargo#run("--bin " . shellescape(l:name) . " " . a:args)
return
endif
endif
endfor
if l:did_run != 1
call cargo#run(a:args)
return
endif
endfunction

" vim: set et sw=4 sts=4 ts=8:
7 changes: 4 additions & 3 deletions usr/share/vim/vim90/autoload/ccomplete.vim
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
vim9script noclear

# Vim completion script
# Language: C
# Maintainer: Bram Moolenaar <[email protected]>
# Language: C
# Maintainer: The Vim Project <https://github.com/vim/vim>
# Last Change: 2023 Aug 10
# Rewritten in Vim9 script by github user lacygoill
# Last Change: 2022 Jan 31
# Former Maintainer: Bram Moolenaar <[email protected]>

var prepended: string
var grepCache: dict<list<dict<any>>>
Expand Down
Loading

0 comments on commit 3fc2d80

Please sign in to comment.