diff options
author | Haru <haru@dotalux.com> | 2016-02-19 21:37:39 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-03-20 18:32:07 +0100 |
commit | f4fced20c769ccee7f808531221dda481f7bbcca (patch) | |
tree | 4bbdd3509a3d6f682e89279f8df2abb1e259a198 /src/char/inter.h | |
parent | 8c9e9668cef87ab9595bde6608de424072cc752d (diff) | |
download | hercules-f4fced20c769ccee7f808531221dda481f7bbcca.tar.gz hercules-f4fced20c769ccee7f808531221dda481f7bbcca.tar.bz2 hercules-f4fced20c769ccee7f808531221dda481f7bbcca.tar.xz hercules-f4fced20c769ccee7f808531221dda481f7bbcca.zip |
Removed unnecessary typedefs from sql.h
- Sql -> struct Sql
- SqlStmt -> struct SqlStmt
- SqlDataType -> enum SqlDataType
This is expected to improve compile time, by removing #include cycles (and forward declaring instead)
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/inter.h')
-rw-r--r-- | src/char/inter.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/char/inter.h b/src/char/inter.h index b8bcb2def..84cb6c640 100644 --- a/src/char/inter.h +++ b/src/char/inter.h @@ -23,15 +23,17 @@ #include "common/hercules.h" #include "common/db.h" -#include "common/sql.h" #include <stdarg.h> +/* Forward Declarations */ +struct Sql; // common/sql.h + /** * inter interface **/ struct inter_interface { - Sql* sql_handle; + struct Sql *sql_handle; const char* (*msg_txt) (int msg_number); bool (*msg_config_read) (const char *cfg_name, bool allow_override); void (*do_final_msg) (void); |