diff options
author | Ian Jackson <ian.jackson@eu.citrix.com> | 2011-12-12 17:48:42 +0000 |
---|---|---|
committer | Ian Jackson <ian.jackson@eu.citrix.com> | 2011-12-12 17:48:42 +0000 |
commit | bdf07e8ed2690fb5e39371e6672df9dd30495a29 (patch) | |
tree | df05b986a82b8dd9a223f05abe7559783bec892e /.hgignore | |
parent | f6678b04991744e0024678835b9afb32dfe9fa36 (diff) | |
download | xen-bdf07e8ed2690fb5e39371e6672df9dd30495a29.tar.gz xen-bdf07e8ed2690fb5e39371e6672df9dd30495a29.tar.bz2 xen-bdf07e8ed2690fb5e39371e6672df9dd30495a29.zip |
libxl: Use GC_INIT and GC_FREE everywhere
Replace
libxl__gc gc = LIBXL_INIT_GC(ctx);
...
libxl__free_all(&gc);
with
GC_INIT(ctx);
...
GC_FREE;
throughout with a couple of perl runes.
We must then adjust uses of the resulting gc for pointerness, which is
mostly just replacing all occurrences of "&gc" with "gc". Also a
couple of unusual uses of LIBXL_INIT_GC needed to be fixed up by hand.
Here are those runes:
perl -i -pe 's/\Q libxl__gc gc = LIBXL_INIT_GC(ctx);/ GC_INIT(ctx);/' tools/libxl/*.c
perl -i -pe 's/\Q libxl__free_all(&gc);/ GC_FREE;/' tools/libxl/*.c
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to '.hgignore')
0 files changed, 0 insertions, 0 deletions