Mercurial > vim
comparison src/misc2.c @ 7838:cfed0e9f0ca2 v7.4.1216
commit https://github.com/vim/vim/commit/ba4ef2757cfc126f342b710f1ad9ea39e6b56cec
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 30 21:48:49 2016 +0100
patch 7.4.1216
Problem: Still using HAVE_STDARG_H.
Solution: Assume it's always defined.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 30 Jan 2016 22:00:05 +0100 |
parents | 2a8d6b2dd925 |
children | 28f569c7dab9 |
comparison
equal
deleted
inserted
replaced
7837:33ba2adb6065 | 7838:cfed0e9f0ca2 |
---|---|
6021 int | 6021 int |
6022 emsg3(char_u *s, char_u *a1, char_u *a2) | 6022 emsg3(char_u *s, char_u *a1, char_u *a2) |
6023 { | 6023 { |
6024 if (emsg_not_now()) | 6024 if (emsg_not_now()) |
6025 return TRUE; /* no error messages at the moment */ | 6025 return TRUE; /* no error messages at the moment */ |
6026 #ifdef HAVE_STDARG_H | |
6027 vim_snprintf((char *)IObuff, IOSIZE, (char *)s, a1, a2); | 6026 vim_snprintf((char *)IObuff, IOSIZE, (char *)s, a1, a2); |
6028 #else | |
6029 vim_snprintf((char *)IObuff, IOSIZE, (char *)s, (long_u)a1, (long_u)a2); | |
6030 #endif | |
6031 return emsg(IObuff); | 6027 return emsg(IObuff); |
6032 } | 6028 } |
6033 | 6029 |
6034 /* | 6030 /* |
6035 * Print an error message with one "%ld" and one long int argument. | 6031 * Print an error message with one "%ld" and one long int argument. |