diff src/audacious/strings.c @ 2373:ad1d7687814c trunk

[svn] made strings.h for existing strings.c, cleanups
author mf0102
date Sat, 20 Jan 2007 04:48:41 -0800
parents 593fd166af00
children 063374a51105
line wrap: on
line diff
--- a/src/audacious/strings.c	Sat Jan 20 03:39:28 2007 -0800
+++ b/src/audacious/strings.c	Sat Jan 20 04:48:41 2007 -0800
@@ -22,41 +22,13 @@
  *  02110-1301, USA.
  */
 
-#define WEIRD_UTF_16_PLAYLIST_ENCODING
-
-#ifdef HAVE_CONFIG_H
-#  include "config.h"
-#endif
+#include "strings.h"
 
-#define NEED_GLADE
-#include "util.h"
-
-#include <glib.h>
 #include <glib/gi18n.h>
-#include <glade/glade.h>
-#include <gtk/gtk.h>
-#include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
 
-#include "platform/smartinclude.h"
-#include <gdk/gdkkeysyms.h>
-#include <X11/Xlib.h>
-//#include <sys/ipc.h>
-#include <unistd.h>
-#include <errno.h>
-
-#ifdef HAVE_FTS_H
-#  include <fts.h>
-#endif
-
-#include "glade.h"
-#include "input.h"
 #include "main.h"
-#include "playback.h"
-#include "playlist.h"
-#include "ui_playlist.h"
 
 #ifdef USE_CHARDET
     #include "../libguess/libguess.h"
@@ -275,7 +247,8 @@
 }
 
 gchar *chardet_to_utf8(const gchar *str, gssize len,
-                       gsize *arg_bytes_read, gsize *arg_bytes_write, GError **arg_error)
+                       gsize *arg_bytes_read, gsize *arg_bytes_write,
+					   GError **arg_error)
 {
 #ifdef USE_CHARDET
 	char  *det = NULL, *encoding = NULL;