This patch came from Haiku and was part of their GSoC project for creating a libpurple UI. The original patch can be found at https://github.com/haikuports/haikuports/commit/85fd8fe1ba987c82bc94968a82531c05247b52ad
Testing Done:
Compile only.
Reviewed at https://reviews.imfreedom.org/r/916/
#!/bin/sh
if[$#-eq0];then
echo"Usage: `basename "$0"` PurpleFoo..."
echo
echo"This script searches the *current working directory* and replaces casts"
echo"with GObject-style type checking and casting macros."
echo'For example, "(PurpleBuddy *)b" becomes "PURPLE_BUDDY(b)".'