[gaim-migrate @ 5790]

Sat, 17 May 2003 18:41:02 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Sat, 17 May 2003 18:41:02 +0000
changeset 5414
1328566015f6
parent 5413
632b068bb9f6
child 5415
e2d73ea0cda7

[gaim-migrate @ 5790]
Removed faim_shortfunc, which was supposed to make 2 functions be
declared as inline. There was a patch saying this caused problems
with systems where inline was redefined to be something else in
config.h, and I would rather not have config.h included in libfaim
files.

I'm also think the speed difference between having inline and not
having it for these 2 functions is negligible, especially when not
compiling with -Oanything.

src/protocols/oscar/aim.h file | annotate | diff | comparison | revisions
src/protocols/oscar/ft.c file | annotate | diff | comparison | revisions
src/protocols/oscar/rxqueue.c file | annotate | diff | comparison | revisions
src/protocols/oscar/util.c file | annotate | diff | comparison | revisions
--- a/src/protocols/oscar/aim.h	Sat May 17 17:54:38 2003 +0000
+++ b/src/protocols/oscar/aim.h	Sat May 17 18:41:02 2003 +0000
@@ -46,12 +46,6 @@
 #define gethostbyname(x) gethostbyname2(x, AF_INET) 
 #endif
 
-#if defined(_WIN32) || defined(STRICT_ANSI)
-#define faim_shortfunc
-#else
-#define faim_shortfunc inline
-#endif
-
 #if defined(_WIN32) && !defined(WIN32_STATIC)
 /*
  * For a win32 DLL, we define WIN32_INDLL if this file
--- a/src/protocols/oscar/ft.c	Sat May 17 17:54:38 2003 +0000
+++ b/src/protocols/oscar/ft.c	Sat May 17 18:41:02 2003 +0000
@@ -40,10 +40,6 @@
  */
 
 #define FAIM_INTERNAL
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
 #include <aim.h>
 
 #ifndef _WIN32
--- a/src/protocols/oscar/rxqueue.c	Sat May 17 17:54:38 2003 +0000
+++ b/src/protocols/oscar/rxqueue.c	Sat May 17 18:41:02 2003 +0000
@@ -82,7 +82,7 @@
 /*
  * Read a FLAP header from conn into fr, and return the number of bytes in the payload.
  */
-static faim_shortfunc int aim_get_command_flap(aim_session_t *sess, aim_conn_t *conn, aim_frame_t *fr)
+static int aim_get_command_flap(aim_session_t *sess, aim_conn_t *conn, aim_frame_t *fr)
 {
 	fu8_t flaphdr_raw[6];
 	aim_bstream_t flaphdr;
--- a/src/protocols/oscar/util.c	Sat May 17 17:54:38 2003 +0000
+++ b/src/protocols/oscar/util.c	Sat May 17 18:41:02 2003 +0000
@@ -29,7 +29,7 @@
 	return;
 }
 
-faim_export faim_shortfunc int aimutil_putstr(u_char *dest, const char *src, int len)
+faim_export int aimutil_putstr(u_char *dest, const char *src, int len)
 {
 	memcpy(dest, src, len);
 	return len;

mercurial