Mercurial > vim
diff src/libvterm/src/vterm_internal.h @ 20460:c15dd3da4f47 v8.2.0784
patch 8.2.0784: libvterm code lags behind the upstream version
Commit: https://github.com/vim/vim/commit/94d729cbe8f0f788d9d7539f733cff395e73b228
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 17 21:50:16 2020 +0200
patch 8.2.0784: libvterm code lags behind the upstream version
Problem: Libvterm code lags behind the upstream version.
Solution: Include revisions 730 - 733.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 May 2020 22:00:04 +0200 |
parents | ffadba5f898c |
children | d0bf39eb2b07 |
line wrap: on
line diff
--- a/src/libvterm/src/vterm_internal.h +++ b/src/libvterm/src/vterm_internal.h @@ -207,6 +207,9 @@ struct VTerm // len == malloc()ed size; cur == number of valid bytes + VTermOutputCallback *outfunc; + void *outdata; + char *outbuffer; size_t outbuffer_len; size_t outbuffer_cur; @@ -268,4 +271,24 @@ int vterm_unicode_is_combining(uint32_t int vterm_unicode_is_ambiguous(uint32_t codepoint); int vterm_get_special_pty_type(void); +#if (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 500) \ + || defined(_ISOC99_SOURCE) || defined(_BSD_SOURCE) +# undef VSNPRINTF +# define VSNPRINTF vsnprintf +# undef SNPRINTF +#else +# ifdef VSNPRINTF +// Use a provided vsnprintf() function. +int VSNPRINTF(char *str, size_t str_m, const char *fmt, va_list ap); +# endif +# ifdef SNPRINTF +// Use a provided snprintf() function. +int SNPRINTF(char *str, size_t str_m, const char *fmt, ...); +# endif #endif +#ifndef SNPRINTF +# define SNPRINTF snprintf +#endif + + +#endif