[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gambas-devel
Subject:    Re: [Gambas-devel] GB.Realloc() on NULL pointers
From:       <gambas () users ! sourceforge ! net>
Date:       2014-09-24 15:39:22
Message-ID: 5422E5AA.30900 () users ! sourceforge ! net
[Download RAW message or body]

Le 24/09/2014 14:34, Tobias Boege a écrit :
> Hi Benoit,
>
> I saw that GB.Realloc() can't deal with NULL pointers. The manpage of my C
> library's realloc says:
>
>    "If ptr is NULL, then the call is equivalent to malloc(size)".
>
> Do you think this would be good in GB.Realloc(), too, or should I implement
> this logic myself?
>

I will add it.

I didn't use that feature because if I see a function named "realloc", 
it for re-allocating things, not for allocating it for the first time. :-)

-- 
Benoît Minisini

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Gambas-devel mailing list
Gambas-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic