On Sat, 23 Jun 2012 at 19:04:29 +0200, Rodolfo García Peñas wrote:
> Subject: [PATCH] Simplify the header files
>
> Remove the not-used includes that don't need include includes in the
> .c files.
:-)
> diff --git a/src/appicon.h b/src/appicon.h
> index 1fbd976..7f0c252 100644
> --- a/src/appicon.h
> +++ b/src/appicon.h
> @@ -23,11 +23,7 @@
> #ifndef WMAPPICON_H_
> #define WMAPPICON_H_
>
> -#include <wraster.h>
> -
> -#include "window.h"
> #include "icon.h"
> -#include "application.h"
>
> typedef struct WAppIcon {
> short xindex;
I'm afraid this is not right. For example, appicon.h must know what
WApplication (defined in application.h) is because it has, inter alia,
void paint_app_icon(WApplication *wapp);
It also uses 'Window', which AFAICT is defined in X11/X.h, which is
indirectly included via wraster.h
I haven't looked the rest of the patch.
--
To unsubscribe, send mail to [email protected].