summaryrefslogtreecommitdiff
path: root/sql/derror.cc
diff options
context:
space:
mode:
authorunknown <cmiller@zippy.cornsilk.net>2007-10-09 17:56:32 -0400
committerunknown <cmiller@zippy.cornsilk.net>2007-10-09 17:56:32 -0400
commit39062b7e4ee782ca7853808a1c006846ae027263 (patch)
treed399e6e6253a6b14ea4e758cc36017d34eaedb39 /sql/derror.cc
parent6859d8b8c73ea323dc6fd2f381f9d228c33d93de (diff)
downloadmariadb-git-39062b7e4ee782ca7853808a1c006846ae027263.tar.gz
Doxygenize comments, a*.cc - field.cc .
sql/derror.cc: Doxygenize comments. sql/des_key_file.cc: Doxygenize comments. sql/discover.cc: Doxygenize comments. sql/field.cc: Doxygenize comments.
Diffstat (limited to 'sql/derror.cc')
-rw-r--r--sql/derror.cc37
1 files changed, 24 insertions, 13 deletions
diff --git a/sql/derror.cc b/sql/derror.cc
index 3b67e0f5bf0..a8cfa00ad1d 100644
--- a/sql/derror.cc
+++ b/sql/derror.cc
@@ -14,7 +14,12 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
-/* Read language depeneded messagefile */
+/**
+ @file
+
+ @brief
+ Read language depeneded messagefile
+*/
#include "mysql_priv.h"
#include "mysys_err.h"
@@ -23,20 +28,17 @@ static bool read_texts(const char *file_name,const char ***point,
uint error_messages);
static void init_myfunc_errs(void);
-/*
+/**
Read messages from errorfile.
- SYNOPSIS
- init_errmessage()
+ This function can be called multiple times to reload the messages.
+ If it fails to load the messages, it will fail softly by initializing
+ the errmesg pointer to an array of empty strings or by keeping the
+ old array if it exists.
- DESCRIPTION
- This function can be called multiple times to reload the messages.
- If it fails to load the messages, it will fail softly by initializing
- the errmesg pointer to an array of empty strings or by keeping the
- old array if it exists.
-
- RETURN
+ @retval
FALSE OK
+ @retval
TRUE Error
*/
@@ -75,7 +77,14 @@ bool init_errmessage(void)
}
- /* Read text from packed textfile in language-directory */
+/**
+ Read text from packed textfile in language-directory.
+
+ If we can't read messagefile then it's panic- we can't continue.
+
+ @todo
+ Convert the character set to server system character set
+*/
static bool read_texts(const char *file_name,const char ***point,
uint error_messages)
@@ -178,7 +187,9 @@ err1:
} /* read_texts */
- /* Initiates error-messages used by my_func-library */
+/**
+ Initiates error-messages used by my_func-library.
+*/
static void init_myfunc_errs()
{