qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 01/18] Use #include "..." for our own headers, <


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH 01/18] Use #include "..." for our own headers, <...> for others
Date: Mon, 04 Jul 2016 15:47:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Eric Blake <address@hidden> writes:

> On 06/29/2016 09:55 AM, Markus Armbruster wrote:
>> Tracked down with an ugly, brittle and probably buggy Perl script.
>> 
>> Also move includes converted to <...> up so they get included before
>> ours where that's obviously okay.
>> 
>> Signed-off-by: Markus Armbruster <address@hidden>
>> ---
>
>> +++ b/qga/vss-win32/provider.cpp
>> @@ -12,8 +12,8 @@
>>  
>>  #include "qemu/osdep.h"
>>  #include "vss-common.h"
>> -#include "inc/win2003/vscoordint.h"
>> -#include "inc/win2003/vsprov.h"
>> +#include <inc/win2003/vscoordint.h>
>> +#include <inc/win2003/vsprov.h>
>
> Worth hoisting <> before "" in this file?

I didn't dare since vss-common.h also includes stuff, and I can't test
myself whether the neater order works.

>>  #define VSS_TIMEOUT_MSEC (60*1000)
>>  
>> diff --git a/qga/vss-win32/requester.cpp b/qga/vss-win32/requester.cpp
>> index 889052d..0cd2f0e 100644
>> --- a/qga/vss-win32/requester.cpp
>> +++ b/qga/vss-win32/requester.cpp
>> @@ -13,8 +13,8 @@
>>  #include "qemu/osdep.h"
>>  #include "vss-common.h"
>>  #include "requester.h"
>> -#include "inc/win2003/vswriter.h"
>> -#include "inc/win2003/vsbackup.h"
>> +#include <inc/win2003/vswriter.h>
>> +#include <inc/win2003/vsbackup.h>
>
> Ditto.
>
>
>> +++ b/tests/tcg/xtensa/linker.ld.S
>> @@ -1,4 +1,4 @@
>> -#include <core-isa.h>
>> +#include "core-isa.h"
>>  
>
> Just making sure that "" vs. <> isn't going to hurt assembler files,
> since the rules on preprocessing those may be different.
>
> Reviewed-by: Eric Blake <address@hidden>
> Tested-by: Eric Blake <address@hidden>

Thanks!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]