On Friday, July 15, 2016 at 2:52:26 AM UTC-5, 覃兆坤 wrote:
> I want to develop a new version vim in a new window platform called Nano 
> Server and prepare to contribute back to the vim. It is published by 
> Microsoft and will used as Azure Host. Compared with full window API, Nano 
> server is missing some of API that vim need. Such as 
> 
>     GetNumberOfConsoleMouseButtons 
> 
>     GetNearestColor
> 
>     GetDlgItemTextA
> 
>     ....
> 
> And after just a few modify that the vim can run in that platform. My 
> question is how can I modify the source code to let the compiler do not 
> compile the missing API, an example is: 
> 
>     if (mch_icon_load((HANDLE *)&g_hVimIcon) == FAIL || g_hVimIcon == NULL){
>       g_hVimIcon = ExtractIcon(NULL, (LPCSTR)exe_name, 0);
>       }
>       
> 
> The New platform's API only have ExtractIconW (unicode)but not ExtractIconA 
> (Ascii). The compiler give errors even I do not use that API, so what can I 
> modify?

You'd need to define a new preprocessor flag that can be used to skip sections 
of code with a #ifndef or a #ifdef. There are many examples of this in the 
code. Or were you looking for a different sort of advice?

-- 
-- 
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