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
Show 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 @@
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()
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 @@ Check that the above file is the right version for this program!",
}
/* read_texts */
/* Initiates error-messages used by my_func-library */
/**
Initiates error-messages used by my_func-library.
*/
static
void
init_myfunc_errs
()
{
...
...
sql/des_key_file.cc
View file @
56c88d4a
...
...
@@ -21,17 +21,18 @@
struct
st_des_keyschedule
des_keyschedule
[
10
];
uint
des_default_key
;
/*
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 ;)
#define des_cs &my_charset_latin1
/**
Load DES keys from plaintext file into
memory on MySQL server startup and on command FLUSH DES_KEY_FILE.
RETURN
@retval
0 ok
@retval
1 Error
*/
#define des_cs &my_charset_latin1
bool
load_des_key_file
(
const
char
*
file_name
)
...
...
sql/discover.cc
View file @
56c88d4a
...
...
@@ -14,29 +14,33 @@
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 <my_dir.h>
/*
Read the contents of a .frm file
/*
*
Read the contents of a .frm file
.
SYNOPSIS
readfrm()
frmdata and len are set to 0 on error.
name path to table-file "db/name"
frmdata frm data
len length of the read frmdata
@param
name path to table-file "db/name"
@param
frmdata frm data
@param
len length of the read frmdata
RETURN VALUES
@retval
0 ok
@retval
1 Could not open file
@retval
2 Could not stat file
3 Could not allocate data for read
Could not read file
frmdata and len are set to 0 on error
@retval
3 Could not allocate data for read. Could not read file
*/
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
to a frm file
SYNOPSIS
writefrm()
to a frm file.
name path to table-file "db/name"
frmdata frm data
len length of the frmdata
@param
name path to table-file "db/name"
@param
frmdata frm data
@param
len length of the frmdata
RETURN VALUES
@retval
0 ok
@retval
2 Could not write file
*/
...
...
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