Ken Takata wrote:

> 2019/4/29 Mon 0:02:09 UTC+9 [email protected] wrote:
> > Hi All,
> > 
> > Since v8.1.1210, I encounter this error :
> > 
> > -o gobji686/if_ole.o if_ole.cpp
> > In file included from proto.h:230:0,
> >                  from vim.h:2084,
> >                  from if_ole.cpp:22:
> > proto/usercmd.pro:2:74: error: expected ')' before 'compl' token
> >  char_u *find_ucmd(exarg_T *eap, char_u *p, int *full, expand_T *xp, int 
> > *compl);
> >                                                                           
> > ^~~~~
> > proto/usercmd.pro:2:74: error: expected initializer before 'compl' token
> > make: *** [Make_cyg_ming.mak:1061: gobji686/if_ole.o] Error 1
> > 
> > Building under Windows 10 from MSYS2 32bits with this command:
> > make -f Make_ming.mak OLE=yes DEBUG=no GUI=yes XPM=no DIRECTx=yes 
> > DYNAMIC_LUA=yes LUA=./lua-5.4.0/src LUA_VER=54 
> > PYTHON3=/c/ThirdPart/Python37 DYNAMIC_PYTHON3=yes PYTHON3_VER=37 
> > DYNAMIC_RUBY=no RUBY_VER=26 RUBY_API_VER_LONG=2.6.0 
> > RUBY=/c/ThirdPart/Ruby26 TERMINAL=yes EVENT_LOOP=yes
> 
> It seems that "compl" is a keyword in C++, so it causes compilation error
> when compiling if_ole.cpp as C++.  ("compl" is the same as "~".)  We should
> avoid using "compl" as an argument here.

Another reason why I don't like C++...

> Attached patch should fix it.
> 
> Other workarounds:
> * Stop using OLE.
> * Use MSVC.  MSVC doesn't complain this.

We already use "complp" in another place, so let's use that.

-- 
The early bird gets the worm. If you want something else for
breakfast, get up later.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui