From 5aa6025ee73510a18f93edfd37001a60a5a331e0 Mon Sep 17 00:00:00 2001 From: Koichi KAMICHI Date: Fri, 27 Feb 2004 15:13:04 +0000 Subject: [PATCH] Fixed `#include' descriptions for system independent and create `sysdep.h'. --- kagecgi/README.en | 5 +++-- kagecgi/kage.h | 5 ++--- kagecgi/kagecgi.c | 5 +---- kagecgi/kagecgi.h | 6 +----- kagecgi/kagechar.c | 5 ++--- kagecgi/kagecomb.c | 7 +++---- kagecgi/kagedb.c | 8 ++------ kagecgi/kageeg.c | 8 ++------ kagecgi/kagepng.c | 4 +--- kagecgi/kagepoly.c | 5 ++--- kagecgi/kagetool.c | 3 +-- 11 files changed, 20 insertions(+), 41 deletions(-) diff --git a/kagecgi/README.en b/kagecgi/README.en index 26f7f5a..eadee3d 100644 --- a/kagecgi/README.en +++ b/kagecgi/README.en @@ -6,9 +6,9 @@ PREREQUISITES KAGE/cgi needs following librarys: - - Berkely DB 2 (3 is not supported yet) + - Berkely DB 1or2 (3 is not supported yet) - libpng - - glib + - glib2.0 - xlib @@ -18,6 +18,7 @@ CONFIGURATION Please edit `Makefile' fit with your environment. + RUNNING MAKE ============ diff --git a/kagecgi/kage.h b/kagecgi/kage.h index 9bc33dc..ee352c7 100755 --- a/kagecgi/kage.h +++ b/kagecgi/kage.h @@ -1,8 +1,7 @@ //kage.h // -#include -#include -#include + +#include "sysdep.h" #ifndef _KAGE_H_ #define _KAGE_H_ diff --git a/kagecgi/kagecgi.c b/kagecgi/kagecgi.c index 385aab5..93f74c9 100755 --- a/kagecgi/kagecgi.c +++ b/kagecgi/kagecgi.c @@ -1,12 +1,9 @@ //kagecgi.c // -#include -#include -#include -#include #include "kage.h" #include "kagecgi.h" +#include "sysdep.h" int main(int argc, char *argv[]){ GString *tmp1, *tmp2, *test1, *test2, *filename; diff --git a/kagecgi/kagecgi.h b/kagecgi/kagecgi.h index 36dad00..9202cb2 100755 --- a/kagecgi/kagecgi.h +++ b/kagecgi/kagecgi.h @@ -1,12 +1,8 @@ //kagecgi.h // -#include -//#include - -#include -#include #include "kage.h" +#include "sysdep.h" #ifndef _KAGECGI_H_ #define _KAGECGI_H_ diff --git a/kagecgi/kagechar.c b/kagecgi/kagechar.c index daa2d25..7cb65e8 100755 --- a/kagecgi/kagechar.c +++ b/kagecgi/kagechar.c @@ -1,10 +1,9 @@ //kagechar.c // -#include -#include -#include "kagecgi.h" #include "kage.h" +#include "kagecgi.h" +#include "sysdep.h" int isIDS(const GString *in){ //check IDC "u2ff*" diff --git a/kagecgi/kagecomb.c b/kagecgi/kagecomb.c index d90f0e0..7227d53 100755 --- a/kagecgi/kagecomb.c +++ b/kagecgi/kagecomb.c @@ -1,10 +1,9 @@ //kagecomb.c // -#include -#include -#include -#include "kagecgi.h" + #include "kage.h" +#include "kagecgi.h" +#include "sysdep.h" void combineYoko2(const GString *parts1, const GString *parts3, int *result){ int f, g, h, i, j, k, l; diff --git a/kagecgi/kagedb.c b/kagecgi/kagedb.c index 21cd2ba..9254227 100755 --- a/kagecgi/kagedb.c +++ b/kagecgi/kagedb.c @@ -1,13 +1,9 @@ //kagedb.c // -#include -//#include - -#include -#include -#include "kagecgi.h" #include "kage.h" +#include "kagecgi.h" +#include "sysdep.h" int initDB(){ kDatabase = dbopen(databaseFileName, O_RDWR|O_CREAT, 0666, DB_HASH, NULL); diff --git a/kagecgi/kageeg.c b/kagecgi/kageeg.c index 7fb3613..6389bbe 100755 --- a/kagecgi/kageeg.c +++ b/kagecgi/kageeg.c @@ -1,13 +1,9 @@ //kageeg.c // -#include -//#include - -#include -#include -#include "kagecgi.h" #include "kage.h" +#include "kagecgi.h" +#include "sysdep.h" void generateGlyphByIDS(const GString *in, GString *out, int flag){ GString *tmp1, *tmp2, *tmp3, *tmp4; diff --git a/kagecgi/kagepng.c b/kagecgi/kagepng.c index 7080bb7..5f11ef2 100755 --- a/kagecgi/kagepng.c +++ b/kagecgi/kagepng.c @@ -1,9 +1,7 @@ //kagepng.c // -#include -#include -#include +#include "sysdep.h" png_bytepp initPng(int width, int height){ png_bytepp image; diff --git a/kagecgi/kagepoly.c b/kagecgi/kagepoly.c index 358148e..571ca15 100755 --- a/kagecgi/kagepoly.c +++ b/kagecgi/kagepoly.c @@ -1,10 +1,9 @@ // kagepoly.c // -#include -#include -#include "kagecgi.h" #include "kage.h" +#include "kagecgi.h" +#include "sysdep.h" void fillPolygon(struct kPoint *p, int number, int col, unsigned char **image){ int i, ix, iy; diff --git a/kagecgi/kagetool.c b/kagecgi/kagetool.c index 91cacdf..8254e05 100755 --- a/kagecgi/kagetool.c +++ b/kagecgi/kagetool.c @@ -3,8 +3,7 @@ #include "kage.h" #include "kagecgi.h" -#include -#include +#include "sysdep.h" void DotsWidth(int *dlx, int *drx){ int i, j; -- 1.7.10.4