diff options
author | unknown <paul@snake-hub.snake.net> | 2005-09-10 12:31:57 -0500 |
---|---|---|
committer | unknown <paul@snake-hub.snake.net> | 2005-09-10 12:31:57 -0500 |
commit | 7845a81a5f31beff86137f2cc0d744e734b9d2ad (patch) | |
tree | 2bf2b042a15fe903aab16e86851ba1b915f87c5c /extra/comp_err.c | |
parent | b5622d49ebc8651bb79326937881d03df7a6794a (diff) | |
download | mariadb-git-7845a81a5f31beff86137f2cc0d744e734b9d2ad.tar.gz |
comp_err.c:
Fix some comments.
extra/comp_err.c:
Fix some comments.
Diffstat (limited to 'extra/comp_err.c')
-rw-r--r-- | extra/comp_err.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/extra/comp_err.c b/extra/comp_err.c index 85833999d5c..b322be2b8ed 100644 --- a/extra/comp_err.c +++ b/extra/comp_err.c @@ -51,7 +51,7 @@ uint file_pos[MAX_ROWS]; const char *empty_string= ""; /* For empty states */ /* - Default values for command line options. See getopt structure for defintions + Default values for command line options. See getopt structure for definitions for these. */ @@ -227,7 +227,7 @@ static int create_header_files(struct errors *error_head) { /* generating mysqld_error.h - fprintf() will automaticly add \r on windows + fprintf() will automatically add \r on windows */ fprintf(er_definef, "#define %s %d\n", tmp_error->er_name, tmp_error->d_code); @@ -518,14 +518,14 @@ static uint parse_error_offset(char *str) } -/* Parsing of the default language line. e.g. "default-lanuage eng" */ +/* Parsing of the default language line. e.g. "default-language eng" */ static char *parse_default_language(char *str) { char *slang; DBUG_ENTER("parse_default_language"); - /* skipping the "default_language" keyword */ + /* skipping the "default-language" keyword */ str= find_end_of_word(str); /* skipping space(s) and/or tabs after the keyword */ str= skip_delimiters(str); @@ -556,7 +556,7 @@ static char *parse_default_language(char *str) /* - For given error finds message on given language, if does not exist, + For given error, finds message in given language; if does not exist, returns english. */ @@ -697,7 +697,7 @@ static struct errors *parse_error_string(char *str, int er_count) DBUG_ENTER("parse_error_string"); DBUG_PRINT("enter", ("str: %s", str)); - /* create a new a element */ + /* create a new element */ new_error= (struct errors *) my_malloc(sizeof(*new_error), MYF(MY_WME)); if (my_init_dynamic_array(&new_error->msg, sizeof(struct message), 0, 0)) @@ -762,7 +762,7 @@ static struct errors *parse_error_string(char *str, int er_count) /* - Parsing the string with charset/full lang name/short lang name; + Parsing the string with full lang name/short lang name/charset; returns pointer to the language structure */ @@ -814,7 +814,7 @@ static struct languages *parse_charset_string(char *str) DBUG_RETURN(0); /* Fatal error */ DBUG_PRINT("info", ("charset: %s", new_lang->charset)); - /* skipping space, tub or "," */ + /* skipping space, tab or "," */ str= skip_delimiters(str); } while (*str != ';' && *str); |