Use a central header.

$ time (make clean; make)

Before: ~8.0 seconds
After: ~8.1 seconds
This commit is contained in:
Přemysl Eric Janouch 2011-01-10 11:20:14 +01:00
parent 01d771403e
commit 63b36a2b5b
13 changed files with 46 additions and 83 deletions

View File

@ -95,6 +95,7 @@ set (logdiag_SOURCES
src/ld-lua-symbol.c)
set (logdiag_HEADERS
${CMAKE_CURRENT_BINARY_DIR}/config.h
src/liblogdiag.h
src/ld-marshal.h
src/ld-types.h
src/ld-window-main.h

View File

@ -10,21 +10,11 @@
#include <math.h>
#include <string.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include "liblogdiag.h"
#include "config.h"
#include "ld-marshal.h"
#include "ld-types.h"
#include "ld-diagram-object.h"
#include "ld-diagram-symbol.h"
#include "ld-diagram.h"
#include "ld-symbol.h"
#include "ld-library.h"
#include "ld-canvas.h"
/**
* SECTION:ld-canvas

View File

@ -8,12 +8,9 @@
*
*/
#include <gtk/gtk.h>
#include "liblogdiag.h"
#include "config.h"
#include "ld-diagram-object.h"
/**
* SECTION:ld-diagram-object

View File

@ -8,13 +8,9 @@
*
*/
#include <gtk/gtk.h>
#include "liblogdiag.h"
#include "config.h"
#include "ld-diagram-object.h"
#include "ld-diagram-symbol.h"
/**
* SECTION:ld-diagram-symbol

View File

@ -8,14 +8,9 @@
*
*/
#include <gtk/gtk.h>
#include <json-glib/json-glib.h>
#include "liblogdiag.h"
#include "config.h"
#include "ld-diagram-object.h"
#include "ld-diagram.h"
/**
* SECTION:ld-diagram

View File

@ -10,18 +10,9 @@
#include <string.h>
#include <gtk/gtk.h>
#include <json-glib/json-glib.h>
#include "liblogdiag.h"
#include "config.h"
#include "ld-types.h"
#include "ld-symbol.h"
#include "ld-symbol-category.h"
#include "ld-library.h"
#include "ld-lua.h"
/**
* SECTION:ld-library

View File

@ -8,18 +8,9 @@
*
*/
#include <gtk/gtk.h>
#include "liblogdiag.h"
#include "config.h"
#include "ld-types.h"
#include "ld-symbol.h"
#include "ld-symbol-category.h"
#include "ld-library.h"
#include "ld-lua.h"
#include "ld-lua-symbol.h"
#include "ld-lua-private.h"
#include "ld-lua-symbol-private.h"

View File

@ -8,20 +8,13 @@
*
*/
#include <gtk/gtk.h>
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
#include "liblogdiag.h"
#include "config.h"
#include "ld-types.h"
#include "ld-symbol.h"
#include "ld-library.h"
#include "ld-lua.h"
#include "ld-lua-symbol.h"
#include "ld-lua-private.h"
#include "ld-lua-symbol-private.h"

View File

@ -8,15 +8,9 @@
*
*/
#include <gtk/gtk.h>
#include "liblogdiag.h"
#include "config.h"
#include "ld-types.h"
#include "ld-symbol.h"
#include "ld-symbol-category.h"
#include "ld-library.h"
/**
* SECTION:ld-symbol-category

View File

@ -8,15 +8,9 @@
*
*/
#include <gtk/gtk.h>
#include "liblogdiag.h"
#include "config.h"
#include "ld-types.h"
#include "ld-symbol.h"
#include "ld-symbol-category.h"
#include "ld-library.h"
/**
* SECTION:ld-symbol

View File

@ -10,12 +10,9 @@
#include <math.h>
#include <gtk/gtk.h>
#include "liblogdiag.h"
#include "config.h"
#include "ld-types.h"
#define DEFINE_BOXED_TYPE(TypeName, type_name) \
GType \

View File

@ -10,21 +10,11 @@
#include <gtk/gtk.h>
#include "liblogdiag.h"
#include "config.h"
#include "ld-window-main.h"
#include "ld-types.h"
#include "ld-symbol.h"
#include "ld-symbol-category.h"
#include "ld-library.h"
#include "ld-diagram-object.h"
#include "ld-diagram-symbol.h"
#include "ld-diagram.h"
#include "ld-canvas.h"
/**
* SECTION:ld-window-main

34
src/liblogdiag.h Normal file
View File

@ -0,0 +1,34 @@
/*
* liblogdiag.h
*
* This file is a part of logdiag.
* Copyright Přemysl Janouch 2011. All rights reserved.
*
* See the file LICENSE for licensing information.
*
*/
#ifndef __LIBLOGDIAG_H__
#define __LIBLOGDIAG_H__
#include <gtk/gtk.h>
#include <json-glib/json-glib.h>
#include "ld-marshal.h"
#include "ld-types.h"
#include "ld-symbol.h"
#include "ld-symbol-category.h"
#include "ld-library.h"
#include "ld-diagram-object.h"
#include "ld-diagram-symbol.h"
#include "ld-diagram.h"
#include "ld-canvas.h"
#include "ld-lua.h"
#include "ld-lua-symbol.h"
#endif /* ! __LIBLOGDIAG_H__ */