Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
56c88d4a
Commit
56c88d4a
authored
Oct 09, 2007
by
cmiller@zippy.cornsilk.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doxygenize comments, a*.cc - field.cc .
parent
04296df3
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
313 additions
and
316 deletions
+313
-316
sql/derror.cc
sql/derror.cc
+24
-13
sql/des_key_file.cc
sql/des_key_file.cc
+10
-9
sql/discover.cc
sql/discover.cc
+28
-26
sql/field.cc
sql/field.cc
+251
-268
No files found.
sql/derror.cc
View file @
56c88d4a
...
@@ -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
This function can be called multiple times to reload the messages.
init_errmessage()
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
@retval
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
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
()
{
{
...
...
sql/des_key_file.cc
View file @
56c88d4a
...
@@ -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
0 ok
@retval
1 Error
0 ok
@retval
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
)
...
...
sql/discover.cc
View file @
56c88d4a
...
@@ -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
1 Could not open file
@retval
2 Could not stat
file
1 Could not open
file
3 Could not allocate data for read
@retval
Could not read
file
2 Could not stat
file
@retval
frmdata and len are set to 0 on error
3 Could not allocate data for read. Could not read file
*/
*/
int
readfrm
(
const
char
*
name
,
uchar
**
frmdata
,
size_t
*
len
)
int
readfrm
(
const
char
*
name
,
uchar
**
frmdata
,
size_t
*
len
)
...
@@ -87,18 +91,16 @@ int readfrm(const char *name, uchar **frmdata, size_t *len)
...
@@ -87,18 +91,16 @@ 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
2 Could not write file
@retval
2 Could not write file
*/
*/
int
writefrm
(
const
char
*
name
,
const
uchar
*
frmdata
,
size_t
len
)
int
writefrm
(
const
char
*
name
,
const
uchar
*
frmdata
,
size_t
len
)
...
...
sql/field.cc
View file @
56c88d4a
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment