qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Weil <weil@mail.berlios.de>
To: Anthony Liguori <aliguori@us.ibm.com>, Avi Kivity <avi@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [6531] toplevel: remove error handling from qemu_malloc() callers ( Avi Kivity)
Date: Fri, 09 Apr 2010 21:41:24 +0200	[thread overview]
Message-ID: <4BBF82E4.4010505@mail.berlios.de> (raw)
In-Reply-To: <E1LVCMV-0007i4-0m@cvs.savannah.gnu.org>

Anthony Liguori schrieb:
> Revision: 6531
> http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6531
> Author: aliguori
> Date: 2009-02-05 22:06:18 +0000 (Thu, 05 Feb 2009)
>
> Log Message:
> -----------
> toplevel: remove error handling from qemu_malloc() callers (Avi Kivity)
>
> Signed-off-by: Avi Kivity <avi@redhat.com>
> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
>
> Modified Paths:
> --------------
> trunk/aio.c
> trunk/buffered_file.c
> trunk/console.c
> trunk/cris-dis.c
> trunk/curses.c
> trunk/device_tree.c
> trunk/exec.c
> trunk/gdbstub.c
...
>
> Modified: trunk/cris-dis.c
> ===================================================================
> --- trunk/cris-dis.c 2009-02-05 22:06:11 UTC (rev 6530)
> +++ trunk/cris-dis.c 2009-02-05 22:06:18 UTC (rev 6531)
> @@ -26,6 +26,8 @@
> //#include "libiberty.h"
> \f

>
> +void *qemu_malloc(size_t len); /* can't include qemu-common.h here */

Do you still know the reason for that comment?
Is it still valid? i386-dis.c includes qemu-common.h.

I have a patch which needs qemu-common.h for
cris-dis.c, too.

Regards,
Stefan


> +
> #define FALSE 0
> #define TRUE 1
> #define CONST_STRNEQ(STR1,STR2) (strncmp ((STR1), (STR2), sizeof
> (STR2) - 1) == 0)
> @@ -1401,44 +1403,32 @@
> /* Allocate and clear the opcode-table. */
> if (opc_table == NULL)
> {
> - opc_table = malloc (65536 * sizeof (opc_table[0]));
> - if (opc_table == NULL)
> - return NULL;
> + opc_table = qemu_malloc (65536 * sizeof (opc_table[0]));
...

      reply	other threads:[~2010-04-09 19:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-05 22:06 [Qemu-devel] [6531] toplevel: remove error handling from qemu_malloc() callers ( Avi Kivity) Anthony Liguori
2010-04-09 19:41 ` Stefan Weil [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BBF82E4.4010505@mail.berlios.de \
    --to=weil@mail.berlios.de \
    --cc=aliguori@us.ibm.com \
    --cc=avi@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).