Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xcmdsrv_client.c in gvim7.2/tools

0 views
Skip to first unread message

digit

unread,
Oct 13, 2009, 8:23:19 AM10/13/09
to
Dear all:
I have problem about tools/xcmdsrv_client.c. How I can issue
tow command through this channel by the code? I modify as the below:
main(int argc, char **argv)
{
char *res;
int code;
int t; // *
Display *dpy; // *
dpy = XOpenDisplay(NULL); // *

if (argc == 4)
{
for (t=0;t<2;t++)
{
if ((res = sendToVim(dpy, argv[2], argv[3],
argv[1][0] != 'e', &code)) != NULL)
{
if (code)
printf("Error code returned: %d\n", code);
puts(res);
}
}
exit(0);
}
else
fprintf(stderr, "Usage: %s {k|e} <server> <command>", argv[0]);

exit(1);
}

0 new messages