diff plugins/perl/perl.c @ 5872:059d95c67cda

[gaim-migrate @ 6304] The legendary Header File Cleanup! Files now only include what they need. This should reduce the number of files that must recompile when a header file changes. It's a lot nicer. Trust me on it. I also added a couple new header files. I hope I didn't break TOO much! committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 14 Jun 2003 23:21:02 +0000
parents 171fdd5493b9
children a18e88c4dace
line wrap: on
line diff
--- a/plugins/perl/perl.c	Sat Jun 14 21:34:31 2003 +0000
+++ b/plugins/perl/perl.c	Sat Jun 14 23:21:02 2003 +0000
@@ -23,43 +23,42 @@
  * X-Chat Copyright (C) 1998 Peter Zelezny.
  *
  */
+#ifdef DEBUG
+# undef DEBUG
+#endif
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#ifdef DEBUG
-#undef DEBUG
-#endif
-#endif
 #undef PACKAGE
 
 #define group perl_group
+
 #ifdef _WIN32
 /* This took me an age to figure out.. without this __declspec(dllimport)
  * will be ignored.
  */
-#define HASATTRIBUTE
+# define HASATTRIBUTE
 #endif
+
 #include <EXTERN.h>
+
 #ifndef _SEM_SEMUN_UNDEFINED
-#define HAS_UNION_SEMUN
+# define HAS_UNION_SEMUN
 #endif
+
 #include <perl.h>
 #include <XSUB.h>
+
 #ifndef _WIN32
-#include <sys/mman.h>
+# include <sys/mman.h>
 #endif
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
+
 #undef PACKAGE
-#include <stdio.h>
+
 #ifndef _WIN32
-#include <dirent.h>
+# include <dirent.h>
 #else
-/* We're using perl's win32 port of this */
-#define dirent direct
+ /* We're using perl's win32 port of this */
+# define dirent direct
 #endif
-#include <string.h>
 
 #undef group
 
@@ -72,14 +71,22 @@
 
 #undef _
 #ifdef DEBUG
-#undef DEBUG
+# undef DEBUG
 #endif
 #ifdef _WIN32
-#undef pipe
+# undef pipe
 #endif
+
+#include "internal.h"
+
+#include "debug.h"
+#include "prpl.h"
+#include "notify.h"
+#include "server.h"
+#include "sound.h"
+
 #include "gaim.h"
-#include "prpl.h"
-#include "sound.h"
+#include "ui.h"
 
 #ifndef call_pv
 # define call_pv(i,j) perl_call_pv((i), (j))
@@ -1395,11 +1402,11 @@
 };
 
 static void
-__init_plugin(GaimPlugin *plugin)
+init_plugin(GaimPlugin *plugin)
 {
 	my_plugin = plugin;
 
 	loader_info.exts = g_list_append(loader_info.exts, "pl");
 }
 
-GAIM_INIT_PLUGIN(perl, __init_plugin, info);
+GAIM_INIT_PLUGIN(perl, init_plugin, info);