Simon Tatham
452114c3d3
New memory management macro 'snew_plus'.
...
This formalises my occasional habit of using a single malloc to make a
block that contains a header structure and a data buffer that a field
of the structure will point to, allowing it to be freed in one go
later. Previously I had to do this by hand, losing the type-checking
advantages of snew; now I've written an snew-style macro to do the
job, plus an accessor macro to cleanly get the auxiliary buffer
pointer afterwards, and switched existing instances of the pattern
over to using that.
2018-06-06 07:22:06 +01:00
..
2014-02-22 18:01:32 +00:00
2018-01-30 19:22:45 +00:00
2018-05-13 23:05:46 +01:00
2015-09-01 19:12:19 +01:00
2017-11-26 11:36:00 +00:00
2015-08-24 19:34:23 +01:00
2017-11-26 20:03:12 +00:00
2018-05-09 09:21:27 +01:00
2018-05-09 09:21:27 +01:00
2018-06-06 07:22:06 +01:00
2017-02-27 19:58:39 +00:00
2018-06-02 17:52:48 +01:00
2018-05-09 09:21:27 +01:00
2015-08-31 15:45:43 +01:00
2018-05-26 09:22:43 +01:00
2017-12-20 10:04:02 +00:00
2017-11-26 11:45:48 +00:00
2016-03-23 22:22:48 +00:00
2017-11-26 11:45:48 +00:00
2016-03-23 22:22:48 +00:00
2018-05-27 15:28:54 +01:00
2011-07-14 18:52:21 +00:00
2018-05-25 14:36:16 +01:00
2011-07-14 18:52:21 +00:00
2018-05-18 07:22:56 +01:00
2018-06-03 15:15:51 +01:00
2018-04-26 07:21:16 +01:00
2018-06-02 17:52:48 +01:00
2018-05-27 15:28:54 +01:00
2017-02-15 19:32:42 +00:00
2009-09-16 22:28:20 +00:00
2015-05-18 14:03:10 +01:00
2018-06-03 16:52:25 +01:00
2018-05-26 09:22:43 +01:00
2010-02-20 11:21:25 +00:00
2018-05-27 15:28:54 +01:00
2017-12-07 20:13:33 +00:00
2018-05-26 09:19:39 +01:00
2017-12-07 20:13:33 +00:00
2017-05-14 16:34:48 +01:00
2017-05-14 16:34:48 +01:00
2018-05-24 16:54:16 +01:00
2018-05-25 14:36:16 +01:00
2004-12-31 13:02:46 +00:00
2017-02-14 23:25:25 +00:00
2015-05-15 12:47:44 +01:00
2016-03-20 18:30:03 +00:00
2018-05-09 09:21:27 +01:00
2003-04-27 11:10:48 +00:00
2007-01-07 10:17:12 +00:00
2007-01-07 10:17:12 +00:00
2007-01-07 10:17:12 +00:00
2007-01-07 10:17:12 +00:00