Re: [PATCH qxl-wddm-dod v2 12/25] Rename mspace.c to mspace.cpp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 6 Sep 2016, at 15:45 PM, Frediano Ziglio <fziglio@xxxxxxxxxx> wrote:




From: "Frediano Ziglio" <fziglio@xxxxxxxxxx>
To: "Dmitry Fleytman" <dmitry@xxxxxxxxxx>
Cc: "Spice List" <spice-devel@xxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, September 6, 2016 1:30:44 PM
Subject: Re: [PATCH qxl-wddm-dod v2 12/25] Rename mspace.c to        mspace.cpp

On 6 Sep 2016, at 15:07 PM, Frediano Ziglio <fziglio@xxxxxxxxxx> wrote:

On Mon, Sep 5, 2016 at 9:26 PM, Frediano Ziglio <fziglio@xxxxxxxxxx> wrote:
Why the rationale was removed?

By mistake, i'll add it back in the next version. 
By the way this was a workaround for a VS bug, get Visual Studio 2015 Update 1 (actually we are at update 3)
True, however microsoft recommends using visual c++ compiler profile as it is different from the c compiler profile.

Yes, especially if you don't know what you are doing and you don't have a acceptable test suite.
I hope that they all don't apply to us.


Hi Frediano,

Actually using Microsoft C++ compiler for C files is recommended because it performs
more excessive static checks and produces warnings regarding more potential problematic cases.
And this is definitely a good thing.

~Dmitry
Yes... C++ does more strictly checks. This does not means that all C programmers are moving to a C++ compiler!
The mspace.c file is shared between different projects where some require it to be C.
Rename to .cpp can cause maintainability issue as it's easier to introduce C++ construct that would lead to a fork.
As the initial rationale (a workaround for a VS bug) didn't apply anymore I would avoid the rename.

Sure. No problem.



Frediano

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]