changeset 1186:94bca98ac942

remove system includes
author corvid <corvid@lavabit.com>
date Mon, 22 Jun 2009 20:07:50 +0000
parents 98f25adab072
children 104f3aae5721
files src/IO/IO.c src/IO/IO.h src/IO/dpi.c src/IO/http.c src/IO/mime.h src/bookmark.c src/bw.h src/cache.c src/cookies.c src/css.cc src/cssparser.cc src/dicache.c src/dns.c src/html.cc src/image.cc src/menu.cc src/misc.c src/plain.cc src/png.c src/prefsparser.cc src/styleengine.cc src/ui.cc src/url.c src/url.h src/web.cc src/xembed.cc
diffstat 26 files changed, 1 insertions(+), 57 deletions(-) [+]
line wrap: on
line diff
--- a/src/IO/IO.c	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/IO/IO.c	Mon Jun 22 20:07:50 2009 +0000
@@ -13,14 +13,9 @@
  * Dillo's event driven IO engine
  */
 
-#include <stdio.h>
-#include <string.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <unistd.h>
-#include <sys/stat.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
 #include "../msg.h"
 #include "../chain.h"
 #include "../klist.h"
--- a/src/IO/IO.h	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/IO/IO.h	Mon Jun 22 20:07:50 2009 +0000
@@ -1,9 +1,6 @@
 #ifndef __IO_H__
 #define __IO_H__
 
-#include <unistd.h>
-#include <sys/uio.h>
-
 #include "d_size.h"
 #include "../../dlib/dlib.h"
 #include "../chain.h"
--- a/src/IO/dpi.c	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/IO/dpi.c	Mon Jun 22 20:07:50 2009 +0000
@@ -21,13 +21,10 @@
 #include <unistd.h>
 #include <stdlib.h>
 #include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
 #include <string.h>
 #include <stdio.h>
 #include <errno.h>           /* for errno */
 
-#include <stdio.h>
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <netinet/in.h>
--- a/src/IO/http.c	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/IO/http.c	Mon Jun 22 20:07:50 2009 +0000
@@ -20,9 +20,7 @@
 #include <unistd.h>
 #include <errno.h>              /* for errno */
 #include <stdlib.h>
-#include <signal.h>
 #include <fcntl.h>
-#include <sys/wait.h>
 #include <sys/socket.h>         /* for lots of socket stuff */
 #include <netinet/in.h>         /* for ntohl and stuff */
 #include <arpa/inet.h>          /* for inet_ntop */
--- a/src/IO/mime.h	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/IO/mime.h	Mon Jun 22 20:07:50 2009 +0000
@@ -13,7 +13,6 @@
 #define __MIME_H__
 
 #include <config.h>
-#include <stddef.h>
 
 #ifdef __cplusplus
 extern "C" {
--- a/src/bookmark.c	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/bookmark.c	Mon Jun 22 20:07:50 2009 +0000
@@ -9,10 +9,7 @@
  * (at your option) any later version.
  */
 
-#include <errno.h>
-#include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 
 #include "msg.h"
 #include "history.h"
--- a/src/bw.h	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/bw.h	Mon Jun 22 20:07:50 2009 +0000
@@ -1,8 +1,6 @@
 #ifndef __BW_H__
 #define __BW_H__
 
-#include <sys/types.h>
-
 #include "url.h"     /* for DilloUrl */
 
 /*
--- a/src/cache.c	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/cache.c	Mon Jun 22 20:07:50 2009 +0000
@@ -16,11 +16,8 @@
 #include <ctype.h>              /* for tolower */
 #include <sys/types.h>
 
-#include <sys/stat.h>
 #include <stdlib.h>
 #include <string.h>
-#include <fcntl.h>
-#include <unistd.h>
 
 #include "msg.h"
 #include "IO/Url.h"
--- a/src/cookies.c	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/cookies.c	Mon Jun 22 20:07:50 2009 +0000
@@ -34,7 +34,6 @@
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <time.h>       /* for time() and time_t */
 #include <ctype.h>
 
 #include "msg.h"
--- a/src/css.cc	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/css.cc	Mon Jun 22 20:07:50 2009 +0000
@@ -10,7 +10,6 @@
  */
 
 #include <stdio.h>
-#include <math.h>
 #include "../dlib/dlib.h"
 #include "misc.h"
 #include "html_common.hh"
--- a/src/cssparser.cc	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/cssparser.cc	Mon Jun 22 20:07:50 2009 +0000
@@ -18,7 +18,6 @@
 #include <ctype.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <string.h>
 
 #include "msg.h"
 #include "colors.h"
--- a/src/dicache.c	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/dicache.c	Mon Jun 22 20:07:50 2009 +0000
@@ -9,9 +9,7 @@
  * (at your option) any later version.
  */
 
-#include <sys/time.h>       /* for libc5 compatibility */
 #include <string.h>         /* for memset */
-#include <stdio.h>
 #include <stdlib.h>
 
 #include "msg.h"
--- a/src/dns.c	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/dns.c	Mon Jun 22 20:07:50 2009 +0000
@@ -21,10 +21,8 @@
 #include <arpa/inet.h>
 #include <netinet/in.h>
 #include <errno.h>
-#include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <signal.h>
 #include <string.h>
 
 #include "msg.h"
--- a/src/html.cc	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/html.cc	Mon Jun 22 20:07:50 2009 +0000
@@ -20,7 +20,6 @@
 #include <string.h>     /* for memcpy and memmove */
 #include <stdlib.h>
 #include <stdio.h>      /* for sprintf */
-#include <math.h>       /* for rint */
 #include <errno.h>
 
 #include "bw.h"         /* for BrowserWindow */
--- a/src/image.cc	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/image.cc	Mon Jun 22 20:07:50 2009 +0000
@@ -15,9 +15,6 @@
  * of data from an Image to a DwImage widget.
  */
 
-#include <stdio.h>
-#include <string.h>
-
 #include "msg.h"
 
 #include "image.hh"
--- a/src/menu.cc	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/menu.cc	Mon Jun 22 20:07:50 2009 +0000
@@ -11,8 +11,6 @@
 
 // Functions/Methods for menus
 
-#include <stdio.h>
-#include <stdarg.h>
 #include <fltk/events.h>
 #include <fltk/PopupMenu.h>
 #include <fltk/Item.h>
--- a/src/misc.c	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/misc.c	Mon Jun 22 20:07:50 2009 +0000
@@ -12,7 +12,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <unistd.h>
 #include <string.h>
 #include <ctype.h>
 
--- a/src/plain.cc	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/plain.cc	Mon Jun 22 20:07:50 2009 +0000
@@ -13,9 +13,6 @@
  * Module for decoding a text/plain object into a dw widget.
  */
 
-#include <string.h>     /* for memcpy and memmove */
-#include <math.h>       /* for rint() */
-
 #include "msg.h"
 #include "prefs.h"
 #include "cache.h"
--- a/src/png.c	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/png.c	Mon Jun 22 20:07:50 2009 +0000
@@ -13,12 +13,8 @@
 #include <config.h>
 #ifdef ENABLE_PNG
 
-#include <stdio.h>
-#include <string.h>
 #include <stdlib.h> /* For abort() */
 
-#include <zlib.h>
-
 #ifdef HAVE_LIBPNG_PNG_H
 #include <libpng/png.h>
 #else
--- a/src/prefsparser.cc	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/prefsparser.cc	Mon Jun 22 20:07:50 2009 +0000
@@ -10,10 +10,7 @@
  */
 
 #include <sys/types.h>
-#include <sys/stat.h>
 #include <stdlib.h>
-#include <fcntl.h>
-#include <unistd.h>
 #include <locale.h>            /* for setlocale */
 
 #include "prefs.h"
--- a/src/styleengine.cc	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/styleengine.cc	Mon Jun 22 20:07:50 2009 +0000
@@ -9,8 +9,7 @@
  * (at your option) any later version.
  */
 
-#include <stdio.h>
-#include <math.h>
+/* #include <stdio.h> */
 #include "../dlib/dlib.h"
 #include "msg.h"
 #include "prefs.h"
--- a/src/ui.cc	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/ui.cc	Mon Jun 22 20:07:50 2009 +0000
@@ -11,7 +11,6 @@
 
 // UI for Dillo
 
-#include <stdlib.h>
 #include <stdio.h>
 
 #include <fltk/HighlightButton.h>
--- a/src/url.c	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/url.c	Mon Jun 22 20:07:50 2009 +0000
@@ -42,8 +42,6 @@
  *    - path is never "undefined" though it may be "empty".
  */
 
-
-#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
--- a/src/url.h	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/url.h	Mon Jun 22 20:07:50 2009 +0000
@@ -10,7 +10,6 @@
 #ifndef __URL_H__
 #define __URL_H__
 
-#include <string.h>       /* for strcmp */
 #include "d_size.h"
 #include "../dlib/dlib.h"
 
--- a/src/web.cc	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/web.cc	Mon Jun 22 20:07:50 2009 +0000
@@ -9,10 +9,6 @@
  * (at your option) any later version.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h>      /* for rint */
-
 #include "msg.h"
 #include "nav.h"
 
--- a/src/xembed.cc	Mon Jun 22 18:57:50 2009 +0000
+++ b/src/xembed.cc	Mon Jun 22 20:07:50 2009 +0000
@@ -9,7 +9,6 @@
  * (at your option) any later version.
  */
 
-#include <stdio.h>
 #include <string.h>
 #include <ctype.h>