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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
75dda825
Commit
75dda825
authored
Mar 18, 2004
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed compiler warning
Changed _XXX to _MY_XXX to solve conflict problem on Mac OS X
parent
2b16cf78
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
50 deletions
+42
-50
include/m_ctype.h
include/m_ctype.h
+19
-28
include/mysql.h
include/mysql.h
+1
-1
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+1
-1
mysys/charset2html.c
mysys/charset2html.c
+8
-8
regex/regcomp.c
regex/regcomp.c
+12
-12
sql-common/client.c
sql-common/client.c
+1
-0
No files found.
include/m_ctype.h
View file @
75dda825
...
...
@@ -340,23 +340,14 @@ uint my_instr_mb(struct charset_info_st *,
extern
my_bool
my_parse_charset_xml
(
const
char
*
bug
,
uint
len
,
int
(
*
add
)(
CHARSET_INFO
*
cs
));
#undef _U
#undef _L
#undef _NMR
#undef _SPC
#undef _PNT
#undef _CTR
#undef _B
#undef _X
#define _U 01
/* Upper case */
#define _L 02
/* Lower case */
#define _NMR 04
/* Numeral (digit) */
#define _SPC 010
/* Spacing character */
#define _PNT 020
/* Punctuation */
#define _CTR 040
/* Control character */
#define _B 0100
/* Blank */
#define _X 0200
/* heXadecimal digit */
#define _MY_U 01
/* Upper case */
#define _MY_L 02
/* Lower case */
#define _MY_NMR 04
/* Numeral (digit) */
#define _MY_SPC 010
/* Spacing character */
#define _MY_PNT 020
/* Punctuation */
#define _MY_CTR 040
/* Control character */
#define _MY_B 0100
/* Blank */
#define _MY_X 0200
/* heXadecimal digit */
#define my_isascii(c) (!((c) & ~0177))
...
...
@@ -365,17 +356,17 @@ extern my_bool my_parse_charset_xml(const char *bug, uint len,
#define my_toprint(c) ((c) | 64)
#define my_toupper(s,c) (char) ((s)->to_upper[(uchar) (c)])
#define my_tolower(s,c) (char) ((s)->to_lower[(uchar) (c)])
#define my_isalpha(s, c) (((s)->ctype+1)[(uchar) (c)] & (_
U |
_L))
#define my_isupper(s, c) (((s)->ctype+1)[(uchar) (c)] & _U)
#define my_islower(s, c) (((s)->ctype+1)[(uchar) (c)] & _L)
#define my_isdigit(s, c) (((s)->ctype+1)[(uchar) (c)] & _NMR)
#define my_isxdigit(s, c) (((s)->ctype+1)[(uchar) (c)] & _X)
#define my_isalnum(s, c) (((s)->ctype+1)[(uchar) (c)] & (_
U | _L |
_NMR))
#define my_isspace(s, c) (((s)->ctype+1)[(uchar) (c)] & _SPC)
#define my_ispunct(s, c) (((s)->ctype+1)[(uchar) (c)] & _PNT)
#define my_isprint(s, c) (((s)->ctype+1)[(uchar) (c)] & (_
PNT | _U | _L | _NMR |
_B))
#define my_isgraph(s, c) (((s)->ctype+1)[(uchar) (c)] & (_
PNT | _U | _L |
_NMR))
#define my_iscntrl(s, c) (((s)->ctype+1)[(uchar) (c)] & _CTR)
#define my_isalpha(s, c) (((s)->ctype+1)[(uchar) (c)] & (_
MY_U | _MY
_L))
#define my_isupper(s, c) (((s)->ctype+1)[(uchar) (c)] & _
MY_
U)
#define my_islower(s, c) (((s)->ctype+1)[(uchar) (c)] & _
MY_
L)
#define my_isdigit(s, c) (((s)->ctype+1)[(uchar) (c)] & _
MY_
NMR)
#define my_isxdigit(s, c) (((s)->ctype+1)[(uchar) (c)] & _
MY_
X)
#define my_isalnum(s, c) (((s)->ctype+1)[(uchar) (c)] & (_
MY_U | _MY_L | _MY
_NMR))
#define my_isspace(s, c) (((s)->ctype+1)[(uchar) (c)] & _
MY_
SPC)
#define my_ispunct(s, c) (((s)->ctype+1)[(uchar) (c)] & _
MY_
PNT)
#define my_isprint(s, c) (((s)->ctype+1)[(uchar) (c)] & (_
MY_PNT | _MY_U | _MY_L | _MY_NMR | _MY
_B))
#define my_isgraph(s, c) (((s)->ctype+1)[(uchar) (c)] & (_
MY_PNT | _MY_U | _MY_L | _MY
_NMR))
#define my_iscntrl(s, c) (((s)->ctype+1)[(uchar) (c)] & _
MY_
CTR)
/* Some macros that should be cleaned up a little */
#define my_isvar(s,c) (my_isalnum(s,c) || (c) == '_')
...
...
include/mysql.h
View file @
75dda825
...
...
@@ -590,7 +590,7 @@ typedef struct st_mysql_methods
int
(
*
unbuffered_fetch
)(
MYSQL
*
mysql
,
char
**
row
);
void
(
*
free_embedded_thd
)(
MYSQL
*
mysql
);
const
char
*
(
*
read_statistics
)(
MYSQL
*
mysql
);
int
(
*
next_result
)(
MYSQL
*
mysql
);
my_bool
(
*
next_result
)(
MYSQL
*
mysql
);
int
(
*
read_change_user_result
)(
MYSQL
*
mysql
,
char
*
buff
,
const
char
*
passwd
);
#endif
}
MYSQL_METHODS
;
...
...
libmysqld/lib_sql.cc
View file @
75dda825
...
...
@@ -246,7 +246,7 @@ static MYSQL_RES * emb_mysql_store_result(MYSQL *mysql)
return
mysql_store_result
(
mysql
);
}
int
emb_next_result
(
MYSQL
*
mysql
)
my_bool
emb_next_result
(
MYSQL
*
mysql
)
{
THD
*
thd
=
(
THD
*
)
mysql
->
thd
;
DBUG_ENTER
(
"emb_next_result"
);
...
...
mysys/charset2html.c
View file @
75dda825
...
...
@@ -84,14 +84,14 @@ static void print_cs(CHARSET_INFO *cs)
printf
(
"<TD>%02X"
,
ch
[
i
].
srt
);
printf
(
"<TD>%s%s%s%s%s%s%s%s"
,
ch
[
i
].
ctp
&
_U
?
"U"
:
""
,
ch
[
i
].
ctp
&
_L
?
"L"
:
""
,
ch
[
i
].
ctp
&
_NMR
?
"N"
:
""
,
ch
[
i
].
ctp
&
_SPC
?
"S"
:
""
,
ch
[
i
].
ctp
&
_PNT
?
"P"
:
""
,
ch
[
i
].
ctp
&
_CTR
?
"C"
:
""
,
ch
[
i
].
ctp
&
_B
?
"B"
:
""
,
ch
[
i
].
ctp
&
_X
?
"X"
:
""
);
ch
[
i
].
ctp
&
_
MY_
U
?
"U"
:
""
,
ch
[
i
].
ctp
&
_
MY_
L
?
"L"
:
""
,
ch
[
i
].
ctp
&
_
MY_
NMR
?
"N"
:
""
,
ch
[
i
].
ctp
&
_
MY_
SPC
?
"S"
:
""
,
ch
[
i
].
ctp
&
_
MY_
PNT
?
"P"
:
""
,
ch
[
i
].
ctp
&
_
MY_
CTR
?
"C"
:
""
,
ch
[
i
].
ctp
&
_
MY_
B
?
"B"
:
""
,
ch
[
i
].
ctp
&
_
MY_
X
?
"X"
:
""
);
printf
(
"<TD>&#%d;"
,
ch
[
i
].
uni
);
printf
(
"<TD>&#%d;"
,
ch
[
i
].
low
);
...
...
regex/regcomp.c
View file @
75dda825
...
...
@@ -36,18 +36,18 @@ struct parse {
static
char
nuls
[
10
];
/* place to point scanner in event of error */
struct
cclass
cclasses
[
CCLASS_LAST
+
1
]
=
{
{
"alnum"
,
""
,
""
,
_
U
|
_L
|
_NMR
},
{
"alpha"
,
""
,
""
,
_
U
|
_L
},
{
"blank"
,
""
,
""
,
_B
},
{
"cntrl"
,
""
,
""
,
_CTR
},
{
"digit"
,
""
,
""
,
_NMR
},
{
"graph"
,
""
,
""
,
_
PNT
|
_U
|
_L
|
_NMR
},
{
"lower"
,
""
,
""
,
_L
},
{
"print"
,
""
,
""
,
_
PNT
|
_U
|
_L
|
_NMR
|
_B
},
{
"punct"
,
""
,
""
,
_PNT
},
{
"space"
,
""
,
""
,
_SPC
},
{
"upper"
,
""
,
""
,
_U
},
{
"xdigit"
,
""
,
""
,
_X
},
{
"alnum"
,
""
,
""
,
_
MY_U
|
_MY_L
|
_MY
_NMR
},
{
"alpha"
,
""
,
""
,
_
MY_U
|
_MY
_L
},
{
"blank"
,
""
,
""
,
_
MY_
B
},
{
"cntrl"
,
""
,
""
,
_
MY_
CTR
},
{
"digit"
,
""
,
""
,
_
MY_
NMR
},
{
"graph"
,
""
,
""
,
_
MY_PNT
|
_MY_U
|
_MY_L
|
_MY
_NMR
},
{
"lower"
,
""
,
""
,
_
MY_
L
},
{
"print"
,
""
,
""
,
_
MY_PNT
|
_MY_U
|
_MY_L
|
_MY_NMR
|
_MY
_B
},
{
"punct"
,
""
,
""
,
_
MY_
PNT
},
{
"space"
,
""
,
""
,
_
MY_
SPC
},
{
"upper"
,
""
,
""
,
_
MY_
U
},
{
"xdigit"
,
""
,
""
,
_
MY_
X
},
{
NULL
,
NULL
,
NULL
,
0
}
};
...
...
sql-common/client.c
View file @
75dda825
...
...
@@ -2233,6 +2233,7 @@ void STDCALL mysql_close(MYSQL *mysql)
DBUG_VOID_RETURN
;
}
static
my_bool
cli_read_query_result
(
MYSQL
*
mysql
)
{
uchar
*
pos
;
...
...
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