Mercurial > vim
view src/proto/if_xcmdsrv.pro @ 7513:37e061ec063c v7.4.1058
commit https://github.com/vim/vim/commit/75bdf6aa30a5c99d67c42886cf7a4a000bbaa422
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 7 21:25:08 2016 +0100
patch 7.4.1058
Problem: It is not possible to test code that is only reached when memory
allocation fails.
Solution: Add the alloc_fail() function. Try it out with :vimgrep.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 07 Jan 2016 21:30:05 +0100 |
parents | fa95595fbc52 |
children | 21b0a39d13ed |
line wrap: on
line source
/* if_xcmdsrv.c */ int serverRegisterName __ARGS((Display *dpy, char_u *name)); void serverChangeRegisteredWindow __ARGS((Display *dpy, Window newwin)); int serverSendToVim __ARGS((Display *dpy, char_u *name, char_u *cmd, char_u **result, Window *server, int asExpr, int localLoop, int silent)); char_u *serverGetVimNames __ARGS((Display *dpy)); Window serverStrToWin __ARGS((char_u *str)); int serverSendReply __ARGS((char_u *name, char_u *str)); int serverReadReply __ARGS((Display *dpy, Window win, char_u **str, int localLoop)); int serverPeekReply __ARGS((Display *dpy, Window win, char_u **str)); void serverEventProc __ARGS((Display *dpy, XEvent *eventPtr, int immediate)); void server_parse_messages __ARGS((void)); int server_waiting __ARGS((void)); /* vim: set ft=c : */