summaryrefslogtreecommitdiff
path: root/src/common/db.h
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-29 06:18:21 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-29 06:18:21 +0000
commitc1a8f6f0ac98a694e670bae4c8f74db126e0e8e8 (patch)
tree57a37cf82ced0b0b998b99e5dfdc27d62932420a /src/common/db.h
parent7bfe35400c79bf97a5b0bed9f170912c37cf9452 (diff)
downloadhercules-c1a8f6f0ac98a694e670bae4c8f74db126e0e8e8.tar.gz
hercules-c1a8f6f0ac98a694e670bae4c8f74db126e0e8e8.tar.bz2
hercules-c1a8f6f0ac98a694e670bae4c8f74db126e0e8e8.tar.xz
hercules-c1a8f6f0ac98a694e670bae4c8f74db126e0e8e8.zip
Fixe compile time problems with our mixed C++/C conformance
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1328 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/db.h')
-rw-r--r--src/common/db.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/common/db.h b/src/common/db.h
index 8b37e15ad..6980099cf 100644
--- a/src/common/db.h
+++ b/src/common/db.h
@@ -18,6 +18,11 @@ struct dbn {
struct dbn *prev;
};
+struct db_free {
+ struct dbn *z;
+ struct dbn **root;
+};
+
struct dbt {
int (*cmp)(struct dbt*,void*,void*);
unsigned int (*hash)(struct dbt*,void*);
@@ -30,10 +35,7 @@ struct dbt {
int alloc_line; // DB?s
// db_foreach 内部でdb_erase される対策として、
// db_foreach が終わるまでロックすることにする
- struct db_free {
- struct dbn *z;
- struct dbn **root;
- } *free_list;
+ struct db_free *free_list;
int free_count;
int free_max;
int free_lock;