Re: Patch: prevent certain cscope errors from locking up vim
- Gary Johnson wrote:
> As I was looking at this some more I realized that while this works,That looks like a good idea. EMSG2() only handles two arguments though.
> having all these #ifdef's really muddies the code. I've also
> noticed that perror() is used in other source files as well. So I
> would like to propose that a PERROR() macro be added to vim.h,
> perhaps like this:
> #ifdef HAVE_STRERROR
> # define PERROR(msg) (void)EMSG2("%s: %s", msg, strerror(errno))
> # define PERROR(msg) perror(msg)
> and that all the calls to perror() be changed to use PERROR()
> instead, at least where it is appropriate to use EMSG2().
I'll add emsg3() for this.
password: I don't know, please tell me
password is incorrect
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///