Dealing with the xalloc->malloc change
Keith Packard
keithp at keithp.com
Wed May 12 15:51:19 PDT 2010
Here's a script I wrote to switch allocator calls around:
#!/bin/sh
sed -i \
-e 's/\<[Xx]alloc\> *(/malloc(/' \
-e 's/\<[Xx]free\> *(/free(/' \
-e 's/\<[Xx]realloc\> *(/realloc(/' \
-e 's/\<[Xx]calloc\> *(/calloc(/' \
"$@"
I think that's all that's required. Suggestions on which repo to stick
it in are welcome; the only even slightly related spot might be
util/modular.
--
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100512/091285f6/attachment.pgp>
More information about the xorg-devel
mailing list