diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-22 12:15:49 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-22 12:15:49 +0000 |
commit | de7175c5bc24b6e8f3b87540ae93f40a75df2df2 (patch) | |
tree | 4517d2916188504401ad86868e641edb35b40617 /src/common/db.h | |
parent | d0565d61b91c9784717e756c72b871099175408b (diff) | |
download | hercules-de7175c5bc24b6e8f3b87540ae93f40a75df2df2.tar.gz hercules-de7175c5bc24b6e8f3b87540ae93f40a75df2df2.tar.bz2 hercules-de7175c5bc24b6e8f3b87540ae93f40a75df2df2.tar.xz hercules-de7175c5bc24b6e8f3b87540ae93f40a75df2df2.zip |
* WARNING: New scripting system contains memory leak
TODO: Free all scripts using script_free_code() instead of old methods.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6690 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/db.h')
-rw-r--r-- | src/common/db.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common/db.h b/src/common/db.h index dcc583bfa..0b6fc08c5 100644 --- a/src/common/db.h +++ b/src/common/db.h @@ -731,4 +731,18 @@ void db_init(void); */
void db_final(void);
+// Link DB System - From jAthena
+struct linkdb_node {
+ struct linkdb_node *next;
+ struct linkdb_node *prev;
+ void *key;
+ void *data;
+};
+
+void linkdb_insert ( struct linkdb_node** head, void *key, void* data); // 重複を考慮しない
+void linkdb_replace( struct linkdb_node** head, void *key, void* data); // 重複を考慮する
+void* linkdb_search ( struct linkdb_node** head, void *key);
+void* linkdb_erase ( struct linkdb_node** head, void *key);
+void linkdb_final ( struct linkdb_node** head );
+
#endif
|