Mercurial > pidgin.yaz
view gaim.apspec.in @ 12229:18f0dadb29cf
[gaim-migrate @ 14531]
SF Patch #1366481 from Michael Carlson
"The function gtk_smiley_tree_insert() in gtkimhtml.c is
using up (on my system) the most CPU of all the
functions in gaim whenever the preferences box is
opened (tested by opening the preferences box 50 times
and measuring with oprofile).
The function is called some 297 times each time the
prefs box is opened, and each time we call strlen() on
a (usually 3 or 4) character string to see if the
string is empty or not.
I've eliminated the unnecessary call to strlen by
checking the first element, and I've changed the while
{} loop to a do {} while loop, because since we return
if the string is empty at the beginning of the
function, the same check on the first iteration of the
loop is unnecessary.
I believe it's faster for every case, even if only by a
little bit."
I don't know how necessary this is, but it doesn't hurt and it doesn't negatively impact the readability of the code.
I also fixed an existing piece of code for which the compiler issued a warning.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 26 Nov 2005 17:09:29 +0000 |
parents | a6d446cf090f |
children | d7983c1d79bb |
line wrap: on
line source
# -*-shell-script-*- [Meta] RootName: @gaim.sourceforge.net/gaim:$SOFTWAREVERSION DisplayName: Gaim Internet Messenger ShortName: gaim Maintainer: The Gaim Developers URL: http://gaim.sourceforge.net/ Packager: Tim Ringenbach <marv_sf@users.sourceforge.net> Summary: A GTK+ based multiprotocol instant messaging client SoftwareVersion: @VERSION@ InterfaceVersion: 2.0 PackageVersion: 1 [Description] Gaim allows you to talk to anyone using a variety of messaging protocols, including AIM (Oscar and TOC), ICQ, IRC, Yahoo!, MSN Messenger, Jabber, Gadu-Gadu, Napster, and Zephyr. These protocols are implemented using a modular, easy to use design. To use a protocol, just add an account using the account editor. Gaim supports many common features of other clients, as well as many unique features, such as perl scripting, TCL scripting and C plugins. Gaim is NOT affiliated with or endorsed by America Online, Inc., Microsoft Corporation, Yahoo! Inc., or ICQ Inc. [BuildPrepare] prepareBuild --enable-nss --enable-gnutls --enable-binreloc --disable-perl --disable-tcl --disable-gtktest [BuildUnprepare] unprepareBuild [Imports] rm -rf include rm -rf lib/pkgconfig find -name '*.la' | xargs rm echo '*' | import [Prepare] # Dependency checking require @gtk.org/gtk 2.2 require @68k.org/libaudiofile 0.0 require @xiph.org/libao 2.0 require @gtkspell.sourceforge.net/gtkspell 0.0 require @gnutls.org/gnutls 11.0 || { require @mozilla.org/nspr 4 && require @mozilla.org/nss 3; } [Install] # Put your installation script here installExe ./bin/* # do the plugins copyFiles ./lib/gaim "$PREFIX/lib" installMan 1 ./man/man1/gaim.1 installDesktop "Networking/Instant Messaging" ./share/applications/gaim.desktop installLocale ./share/locale copyFiles ./share/pixmaps "$PREFIX/share" copyFiles ./share/sounds "$PREFIX/share" installIcon ./share/pixmaps/gaim.png # install and fix the .pc file # move this to the -devel package when I make one # copyFile ./lib/pkgconfig/gaim.pc "$PREFIX/lib/pkgconfig/gaim.pc" # safeSed "$PREFIX/lib/pkgconfig/gaim.pc" "s|prefix=/usr/local|prefix=$PREFIX|" [Uninstall] # Usually just the following line is enough to uninstall everything uninstallFromLog