Doxygenize comments, a*.cc - field.cc .

parent 04296df3
...@@ -14,7 +14,12 @@ ...@@ -14,7 +14,12 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ 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 "mysql_priv.h"
#include "mysys_err.h" #include "mysys_err.h"
...@@ -23,20 +28,17 @@ static bool read_texts(const char *file_name,const char ***point, ...@@ -23,20 +28,17 @@ static bool read_texts(const char *file_name,const char ***point,
uint error_messages); uint error_messages);
static void init_myfunc_errs(void); static void init_myfunc_errs(void);
/* /**
Read messages from errorfile. Read messages from errorfile.
SYNOPSIS
init_errmessage()
DESCRIPTION
This function can be called multiple times to reload the messages. This function can be called multiple times to reload the messages.
If it fails to load the messages, it will fail softly by initializing 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 the errmesg pointer to an array of empty strings or by keeping the
old array if it exists. old array if it exists.
RETURN @retval
FALSE OK FALSE OK
@retval
TRUE Error TRUE Error
*/ */
...@@ -75,7 +77,14 @@ bool init_errmessage(void) ...@@ -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, static bool read_texts(const char *file_name,const char ***point,
uint error_messages) uint error_messages)
...@@ -178,7 +187,9 @@ Check that the above file is the right version for this program!", ...@@ -178,7 +187,9 @@ Check that the above file is the right version for this program!",
} /* read_texts */ } /* read_texts */
/* Initiates error-messages used by my_func-library */ /**
Initiates error-messages used by my_func-library.
*/
static void init_myfunc_errs() static void init_myfunc_errs()
{ {
......
...@@ -21,17 +21,18 @@ ...@@ -21,17 +21,18 @@
struct st_des_keyschedule des_keyschedule[10]; struct st_des_keyschedule des_keyschedule[10];
uint des_default_key; uint des_default_key;
/* #define des_cs &my_charset_latin1
Function which loads DES keys from plaintext file into memory on MySQL
server startup and on command FLUSH DES_KEY_FILE. /**
Blame tonu@spam.ee on bugs ;) Load DES keys from plaintext file into
memory on MySQL server startup and on command FLUSH DES_KEY_FILE.
RETURN @retval
0 ok 0 ok
@retval
1 Error 1 Error
*/ */
#define des_cs &my_charset_latin1
bool bool
load_des_key_file(const char *file_name) load_des_key_file(const char *file_name)
......
...@@ -14,29 +14,33 @@ ...@@ -14,29 +14,33 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/* Functions for discover of frm file from handler */ /**
@file
@brief
Functions for discover of frm file from handler
*/
#include "mysql_priv.h" #include "mysql_priv.h"
#include <my_dir.h> #include <my_dir.h>
/* /**
Read the contents of a .frm file Read the contents of a .frm file.
SYNOPSIS frmdata and len are set to 0 on error.
readfrm()
name path to table-file "db/name" @param name path to table-file "db/name"
frmdata frm data @param frmdata frm data
len length of the read frmdata @param len length of the read frmdata
RETURN VALUES @retval
0 ok 0 ok
@retval
1 Could not open file 1 Could not open file
@retval
2 Could not stat file 2 Could not stat file
3 Could not allocate data for read @retval
Could not read file 3 Could not allocate data for read. Could not read file
frmdata and len are set to 0 on error
*/ */
int readfrm(const char *name, uchar **frmdata, size_t *len) int readfrm(const char *name, uchar **frmdata, size_t *len)
...@@ -87,17 +91,15 @@ int readfrm(const char *name, uchar **frmdata, size_t *len) ...@@ -87,17 +91,15 @@ int readfrm(const char *name, uchar **frmdata, size_t *len)
/* /*
Write the content of a frm data pointer Write the content of a frm data pointer
to a frm file to a frm file.
SYNOPSIS
writefrm()
name path to table-file "db/name" @param name path to table-file "db/name"
frmdata frm data @param frmdata frm data
len length of the frmdata @param len length of the frmdata
RETURN VALUES @retval
0 ok 0 ok
@retval
2 Could not write file 2 Could not write file
*/ */
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment