changeset 8433:964d42c74ff7

[gaim-migrate @ 9163] i like this better....what if I want to add 8 to something other than an int! committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 12 Mar 2004 05:01:20 +0000
parents 33cc36f5a7a6
children eafd2c5d6b84
files src/util.c src/util.h
diffstat 2 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Fri Mar 12 04:33:30 2004 +0000
+++ b/src/util.c	Fri Mar 12 05:01:20 2004 +0000
@@ -2421,8 +2421,3 @@
 	return out;
 }
 
-int
-gaim_add_eight(int i)
-{
-	return (i + 8);
-}
--- a/src/util.h	Fri Mar 12 04:33:30 2004 +0000
+++ b/src/util.h	Fri Mar 12 05:01:20 2004 +0000
@@ -604,11 +604,11 @@
  *
  * Blame SimGuy.
  *
- * @param i The integer to add 8 to.
+ * @param i The number to add 8 to.
  *
  * @return i + 8
  */
-int gaim_add_eight(int i);
+#define gaim_add_eight(x) ((x)+8)
 
 #ifdef __cplusplus
 }