diff options
author | mc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-27 17:24:18 +0000 |
---|---|---|
committer | mc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-27 17:24:18 +0000 |
commit | 9ea02a170cc28c6369ab7eeae09c140fbb3d5954 (patch) | |
tree | 7648d77247442e37126da7f520b2c84e8ea4c8d8 /src/common/showmsg.h | |
parent | ff5e9eebcc2b116f37bb6f909f3f60f902bb462d (diff) | |
download | hercules-9ea02a170cc28c6369ab7eeae09c140fbb3d5954.tar.gz hercules-9ea02a170cc28c6369ab7eeae09c140fbb3d5954.tar.bz2 hercules-9ea02a170cc28c6369ab7eeae09c140fbb3d5954.tar.xz hercules-9ea02a170cc28c6369ab7eeae09c140fbb3d5954.zip |
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@381 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/showmsg.h')
-rw-r--r-- | src/common/showmsg.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/common/showmsg.h b/src/common/showmsg.h index 2389410b3..03ffe310b 100644 --- a/src/common/showmsg.h +++ b/src/common/showmsg.h @@ -1,14 +1,20 @@ #ifndef _SHOWMSG_H_ #define _SHOWMSG_H_ +extern char tmp_output[1024]; + +enum msg_type {MSG_STATUS,/* MSG_SQL, */MSG_INFORMATION,MSG_NOTICE,MSG_WARNING,MSG_ERROR,MSG_FATALERROR}; + +extern int _ShowMessage(const char *string, enum msg_type flag); + /* MSG_XX */ #define ShowMsg(string,flag) _ShowMessage(string,flag) - #define DisplayMsg(string,flag) _ShowMessage(string,flag) - #define ShowMessage(string,flag) _ShowMessage(string,flag) +// #define DisplayMsg(string,flag) _ShowMessage(string,flag) +// #define ShowMessage(string,flag) _ShowMessage(string,flag) /* MSG_STATUS */ #define ShowStatus(string) _ShowMessage(string,MSG_STATUS) - #define DisplayStatus(string) _ShowMessage(string,MSG_STATUS) +// #define DisplayStatus(string) _ShowMessage(string,MSG_STATUS) /* MSG_SQL*/ // #define ShowSQL(string) _ShowMessage(string,MSG_SQL) @@ -16,33 +22,29 @@ /* MSG_INFORMATION */ #define ShowInfo(string) _ShowMessage(string,MSG_INFORMATION) - #define DisplayInfo(string) _ShowMessage(string,MSG_INFORMATION) +// #define DisplayInfo(string) _ShowMessage(string,MSG_INFORMATION) // #define ShowInformation(string) _ShowMessage(string,MSG_INFORMATION) // #define DisplayInformation(string) _ShowMessage(string,MSG_INFORMATION) /* MSG_NOTICE */ #define ShowNotice(string) _ShowMessage(string,MSG_NOTICE) - #define DisplayNotice(string) _ShowMessage(string,MSG_NOTICE) +// #define DisplayNotice(string) _ShowMessage(string,MSG_NOTICE) /* */ #define ShowWarning(string) _ShowMessage(string,MSG_WARNING) - #define DisplayWarning(string) _ShowMessage(string,MSG_WARNING) +// #define DisplayWarning(string) _ShowMessage(string,MSG_WARNING) // #define Warn(string) _ShowMessage(string,MSG_WARNING) /* MSG_ERROR */ #define ShowError(string) _ShowMessage(string,MSG_ERROR) - #define DisplayError(string) _ShowMessage(string,MSG_ERROR) +// #define DisplayError(string) _ShowMessage(string,MSG_ERROR) // #define OutputError(string) _ShowMessage(string,MSG_ERROR) /* MSG_FATALERROR */ #define ShowFatalError(string) _ShowMessage(string,MSG_FATALERROR) - #define DisplayFatalError(string) _ShowMessage(string,MSG_ERROR) +// #define DisplayFatalError(string) _ShowMessage(string,MSG_ERROR) // #define Terminate(string) _ShowMessage(string,MSG_FATALERROR) // #define Kill(string) _ShowMessage(string,MSG_FATALERROR) // #define AbortEx(string) _ShowMessage(string,MSG_FATALERROR) -enum msg_type {MSG_STATUS,/* MSG_SQL, */MSG_INFORMATION,MSG_NOTICE,MSG_WARNING,MSG_ERROR,MSG_FATALERROR}; - -extern int _ShowMessage(const char *string, int flag); - #endif |