qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 4/5] libqos: Add malloc generic


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v2 4/5] libqos: Add malloc generic
Date: Mon, 17 Nov 2014 15:30:25 +0000
User-agent: Mutt/1.5.23 (2014-03-12)

On Sat, Nov 01, 2014 at 06:02:29PM +0100, Marc Marí wrote:
> This malloc is a basic interface implementation that works for any platform.
> It should be replaced in the future for a real malloc implementation for each
> of the platforms.
> 
> Signed-off-by: Marc Marí <address@hidden>
> ---
>  tests/libqos/malloc-generic.c |   50 
> +++++++++++++++++++++++++++++++++++++++++
>  tests/libqos/malloc-generic.h |   21 +++++++++++++++++
>  2 files changed, 71 insertions(+)
>  create mode 100644 tests/libqos/malloc-generic.c
>  create mode 100644 tests/libqos/malloc-generic.h
> 
> diff --git a/tests/libqos/malloc-generic.c b/tests/libqos/malloc-generic.c
> new file mode 100644
> index 0000000..0049424
> --- /dev/null
> +++ b/tests/libqos/malloc-generic.c
> @@ -0,0 +1,50 @@
> +/*
> + * Basic libqos generic malloc support
> + *
> + * Copyright (c) 2014 Marc Marí
> + *
> + * This work is licensed under the terms of the GNU GPL, version 2 or later.
> + * See the COPYING file in the top-level directory.
> + */
> +
> +#include "libqos/malloc-generic.h"
> +#include "libqos/malloc.h"
> +#include <glib.h>

Please always include system headers (<>) before user headers ("").
This ensures that QEMU's headers do not pollute the namespace or affect
system headers in any way.

Attachment: pgp3nT5IUeEY_.pgp
Description: PGP signature


reply via email to

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