Hide struct inside cpp file.

Removed my testing inspiration from tip file.
This commit is contained in:
Sanel Zukan
2008-02-12 14:52:10 +00:00
parent ed9c4a0228
commit 0ad832e770
3 changed files with 9 additions and 10 deletions

View File

@@ -13,7 +13,6 @@
#ifndef __FORTUNE_H__
#define __FORTUNE_H__
#include <stdio.h>
#include <edelib/String.h>
/*
@@ -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);