Re: [PATCH libvirt-python 08/17] Import STREQ macro from libvirt

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

 



On 09/09/2013 10:01 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
> ---
>  libvirt-override.c | 2 ++
>  1 file changed, 2 insertions(+)

Again, if we had a common internal header, we could put this there,
instead of having to re-copy it into each .c file that uses it (just
because only one does so now does not mean that we might add a use to
typewrappers.c in the future that also wants to use it...)

> 
> diff --git a/libvirt-override.c b/libvirt-override.c
> index a8cf71d..6df7db0 100644
> --- a/libvirt-override.c
> +++ b/libvirt-override.c
> @@ -34,6 +34,8 @@ extern void initlibvirtmod(void);
>  extern void initcygvirtmod(void);
>  #endif
>  
> +#define STREQ(a,b) (strcmp(a,b) == 0)
> +
>  #if 0
>  # define DEBUG_ERROR 1
>  #endif
> 

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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]