qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH 03/29] Introduce QString


From: Luiz Capitulino
Subject: [Qemu-devel] Re: [PATCH 03/29] Introduce QString
Date: Thu, 20 Aug 2009 11:19:33 -0300

On Thu, 20 Aug 2009 10:41:24 +0200
Paolo Bonzini <address@hidden> wrote:

> On 08/20/2009 01:07 AM, Luiz Capitulino wrote:
> > QString is a high-level data type that can be used to store C
> > strings.
> >
> > The following functions are available:
> >
> > - qstring_from_str() Create a new QString from a C string
> > - qstring_get_str()  Return a pointer to the stored string
> >
> > Note that qstring_get_str() is too low-level for a data type like
> > this, but it's interesting for quick read-only accesses.
> 
> Same comments as for qint.h.
> 
> Maybe add qstring_dup_str, doing strdup(qstring_get_str(x))?

 This is not needed by current code, I'm avoiding adding code
that won't be used.




reply via email to

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