Commit Graph

5 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
99212e8b87 Handle the case of resize to 0 and realloc that returns NULL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20561 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-24 16:14:30 +00:00
Love Hörnquist Åstrand
8ddc3d0462 In generation of remove_TYPE: if you just removed the last element,
you must not memmove memory beyond the array.
From Andrew Bartlett


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18218 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-04 10:18:10 +00:00
Love Hörnquist Åstrand
22937a1975 fix warning.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18012 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 14:00:14 +00:00
Love Hörnquist Åstrand
acd214041b make generated data work
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18011 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 13:55:38 +00:00
Love Hörnquist Åstrand
413862a22b Add generated add_ and remove_ for "SEQUENCE OF TType". I'm tried of
writing realloc(foo->data, sizeof(foo->data[0]) + (foo->len + 1));
Only generated for those type that is enabled by the command flag --sequence.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18005 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 12:23:54 +00:00