]> git.llucax.com Git - software/dgc/naive.git/log
software/dgc/naive.git
15 years agoCompare pointers explicitly against null using is and !is master
Leandro Lucarella [Sun, 6 Sep 2009 20:26:03 +0000 (17:26 -0300)]
Compare pointers explicitly against null using is and !is

15 years agoMove cell allocation and freeing to Cell struct
Leandro Lucarella [Sun, 6 Sep 2009 19:35:17 +0000 (16:35 -0300)]
Move cell allocation and freeing to Cell struct

This ensures proper Cell initialization and group cell allocation and
freeing in one place, making easier to change the implementation.

15 years agoMake realloc() handle null as a malloc() result
Leandro Lucarella [Sun, 30 Aug 2009 19:29:52 +0000 (16:29 -0300)]
Make realloc() handle null as a malloc() result

15 years agoMake calloc() handle null as a malloc() result
Leandro Lucarella [Sun, 30 Aug 2009 19:29:00 +0000 (16:29 -0300)]
Make calloc() handle null as a malloc() result

15 years agoInitialize capacity to 0 when allocating a new cell
Alberto Bertogli [Fri, 15 May 2009 02:18:09 +0000 (23:18 -0300)]
Initialize capacity to 0 when allocating a new cell

Otherwise, when later we do cell.capacity == 0 we're using uninitialized
memory and can return the wrong result if we're not lucky enough to get 0s.

15 years agoWhen doing a realloc(), take the size of the type into account
Alberto Bertogli [Fri, 15 May 2009 02:18:07 +0000 (23:18 -0300)]
When doing a realloc(), take the size of the type into account

15 years agoFix some comments
Alberto Bertogli [Fri, 15 May 2009 02:18:06 +0000 (23:18 -0300)]
Fix some comments

Mostly typos and missing 's', but also some minor style improvements.

15 years agoRemove invalid TODO comment
Leandro Lucarella [Fri, 1 May 2009 22:40:51 +0000 (19:40 -0300)]
Remove invalid TODO comment

15 years agoRemove alloc module, move all other modules to gc/ and document v0.9
Leandro Lucarella [Sat, 25 Apr 2009 23:37:44 +0000 (20:37 -0300)]
Remove alloc module, move all other modules to gc/ and document

There are another bugfixes and restructuration (like debug prints
removal). This version should be the initial commit, the previos version
is keeped only because the alloc module can be useful in the future for
other implementations.

15 years agoInitial import
Leandro Lucarella [Sat, 18 Apr 2009 19:53:22 +0000 (16:53 -0300)]
Initial import

All is pretty functional. The alloc module will probably have to go (we
don't want that kind of complexity here).