# Why SDL\_malloc and SDL\_free not in SDL 2.0 API?

**URL:** <https://discourse.libsdl.org/t/why-sdl-malloc-and-sdl-free-not-in-sdl-2-0-api/19363>\
**Category:** SDL Development\
**Created:** [February 8, 2013, 3:02pm UTC](https://discourse.libsdl.org/t/why-sdl-malloc-and-sdl-free-not-in-sdl-2-0-api/19363 "2013-02-08T15:02:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Unga](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/u/4491bb/32.png) [@Unga](https://discourse.libsdl.org/u/Unga)\
**Post date:** [February 8, 2013, 3:02pm UTC](https://discourse.libsdl.org/t/why-sdl-malloc-and-sdl-free-not-in-sdl-2-0-api/19363/1 "2013-02-08T15:02:08Z")

</div>

Hi all

Why SDL\_malloc and SDL\_free not in SDL 2.0 API by Name page?

SDL 2.0 API by Name: [http://wiki.libsdl.org/moin.cgi/CategoryAPI](http://wiki.libsdl.org/moin.cgi/CategoryAPI)

Are these two functions supposed NOT to be used by SDL users?

Best regards  
Unga

---

<div class="post-metadata">

**Author:** ![Sik\_the\_hedgehog](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/db5fbb/32.png) [@Sik\_the\_hedgehog](https://discourse.libsdl.org/u/Sik_the_hedgehog)\
**Post date:** [February 8, 2013, 3:06pm UTC](https://discourse.libsdl.org/t/why-sdl-malloc-and-sdl-free-not-in-sdl-2-0-api/19363/2 "2013-02-08T15:06:48Z")

</div>

I wouldn’t trust much the wiki since it’s extremely outdated compared  
to the current version. It really needs some maintenance. Check the  
relevant header files to make sure.

Which reminds me: obviously the header files imply Doxygen is  
supported, but I have no idea how to generate the Doxygen files.  
Assuming Doxygen is installed, is there any special step to make the  
docs or just running “make” should do it and I failed to look at the  
correct place?

2013/2/8, Unga :\> Hi all

> Why SDL\_malloc and SDL\_free not in SDL 2.0 API by Name page?
> 
> SDL 2.0 API by Name: [http://wiki.libsdl.org/moin.cgi/CategoryAPI](http://wiki.libsdl.org/moin.cgi/CategoryAPI)
> 
> Are these two functions supposed NOT to be used by SDL users?
> 
> Best regards  
> Unga
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

---

<div class="post-metadata">

**Author:** ![Vittorio\_Giovara](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/v/57b2e6/32.png) [@Vittorio\_Giovara](https://discourse.libsdl.org/u/Vittorio_Giovara)\
**Post date:** [February 9, 2013, 2:14am UTC](https://discourse.libsdl.org/t/why-sdl-malloc-and-sdl-free-not-in-sdl-2-0-api/19363/3 "2013-02-09T02:14:18Z")

</div>

> From the toplevel directory I just ran

doxygen include/doxyfile

and the documentation was correctly generated.  
VittorioOn Fri, Feb 8, 2013 at 4:06 PM, Sik the hedgehog \<sik.the.hedgehog at [gmail.com](http://gmail.com) wrote:

> I wouldn’t trust much the wiki since it’s extremely outdated compared  
> to the current version. It really needs some maintenance. Check the  
> relevant header files to make sure.
> 
> Which reminds me: obviously the header files imply Doxygen is  
> supported, but I have no idea how to generate the Doxygen files.  
> Assuming Doxygen is installed, is there any special step to make the  
> docs or just running “make” should do it and I failed to look at the  
> correct place?
> 
> 2013/2/8, Unga :
> 
> > Hi all
> > 
> > Why SDL\_malloc and SDL\_free not in SDL 2.0 API by Name page?
> > 
> > SDL 2.0 API by Name: [http://wiki.libsdl.org/moin.cgi/CategoryAPI](http://wiki.libsdl.org/moin.cgi/CategoryAPI)
> > 
> > Are these two functions supposed NOT to be used by SDL users?
> > 
> > Best regards  
> > Unga
> > 
> > * * *
> > 
> > SDL mailing list  
> > SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> > [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

---

<div class="post-metadata">

**Author:** ![Unga](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/u/4491bb/32.png) [@Unga](https://discourse.libsdl.org/u/Unga)\
**Post date:** [February 9, 2013, 4:04am UTC](https://discourse.libsdl.org/t/why-sdl-malloc-and-sdl-free-not-in-sdl-2-0-api/19363/4 "2013-02-09T04:04:07Z")

</div>

> > Cc:
> > 
> > I wouldn’t trust much the wiki since it’s extremely outdated compared  
> > to the current version. It really needs some maintenance. Check the  
> > relevant header files to make sure.
> > 
> > Which reminds me: obviously the header files imply Doxygen is  
> > supported, but I have no idea how to generate the Doxygen files.  
> > Assuming Doxygen is installed, is there any special step to make the  
> > docs or just running “make” should do it and I failed to look at the  
> > correct place?
> 
> By looking at the definitions of SDL\_malloc and SDL\_free in SDL\_stdinc.h, its just a simulation of Standard C Library malloc and free. It is obvious its perfectly alright for public use. I should have done bit more home work 🙂
> 
> Unga
> 
> > ----- Original Message -----  
> > From: Sik the hedgehog \<sik.the.hedgehog at [gmail.com](http://gmail.com)\>  
> > To: Unga \<@Unga\>; SDL Development List   
> > Sent: Friday, February 8, 2013 3:06 PM  
> > Subject: Re: [SDL] Why SDL\_malloc and SDL\_free not in SDL 2.0 API?
