qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 2/3] scripts/clean-includes: Ignore .inc.c files


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH 2/3] scripts/clean-includes: Ignore .inc.c files
Date: Tue, 23 Feb 2016 08:10:34 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

On 02/23/2016 07:49 AM, Peter Maydell wrote:
> Ignore files which have a .inc.c extension -- these are not headers
> but they are not standalone C source files either, so we can't make
> any automated decisions about what #include directives they should
> have.
> 
> Signed-off-by: Peter Maydell <address@hidden>
> ---
>  scripts/clean-includes | 5 +++++
>  1 file changed, 5 insertions(+)

Reviewed-by: Eric Blake <address@hidden>

> 
> diff --git a/scripts/clean-includes b/scripts/clean-includes
> index 8a3f398..177d253 100755
> --- a/scripts/clean-includes
> +++ b/scripts/clean-includes
> @@ -94,6 +94,11 @@ EOT
>  
>  for f in "$@"; do
>    case "$f" in
> +    *.inc.c)
> +      # These aren't standalone C source files
> +      echo "SKIPPING $f (not a standalone source file)"
> +      continue
> +      ;;
>      *.c)
>        MODE=c
>        ;;
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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