From 0ad832e770b57965738ef09da0120e6acb8b030f Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Tue, 12 Feb 2008 14:52:10 +0000 Subject: [PATCH] Hide struct inside cpp file. Removed my testing inspiration from tip file. --- etip/Fortune.cpp | 8 ++++++++ etip/Fortune.h | 9 +-------- etip/tips/ede | 2 -- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/etip/Fortune.cpp b/etip/Fortune.cpp index 2631723..68f0acc 100644 --- a/etip/Fortune.cpp +++ b/etip/Fortune.cpp @@ -11,8 +11,16 @@ */ #include "Fortune.h" + #include #include +#include + +struct FortuneFile { + FILE* str_file; + FILE* dat_file; + StrFile data; +}; FortuneFile* fortune_open(const char* str_path, const char* dat_path) { FILE* sp = fopen(str_path, "r"); diff --git a/etip/Fortune.h b/etip/Fortune.h index 1e40c83..d97ee41 100644 --- a/etip/Fortune.h +++ b/etip/Fortune.h @@ -13,7 +13,6 @@ #ifndef __FORTUNE_H__ #define __FORTUNE_H__ -#include #include /* @@ -36,13 +35,7 @@ struct StrFile { char stuff[4]; // long aligned space, stuff[0] is delimiter }; -struct FortuneFile { - FILE* str_file; - FILE* dat_file; - StrFile data; -}; - -// TODO: this should be a class +struct FortuneFile; FortuneFile* fortune_open(const char* str_path, const char* dat_path); void fortune_close(FortuneFile* f); diff --git a/etip/tips/ede b/etip/tips/ede index 798104d..dfe4f83 100644 --- a/etip/tips/ede +++ b/etip/tips/ede @@ -16,8 +16,6 @@ or comments on EDE forum, EDE bug reporting system (on project page), or check m current maintainers located in AUTHORS file. % You can download latest release on http://equinox-project.org. - -bla bla % If you are interested to help us, don't hesitate to write or visit our page. You don't have to be a coding guru nor have expirience in GUI programming. If you don't have any