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
113e499b
Commit
113e499b
authored
Mar 06, 2003
by
lenz@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Changed C++-style comments to C-style comments to make IBM compiler happy
parent
daeb0319
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
23 deletions
+23
-23
client/mysqldump.c
client/mysqldump.c
+1
-1
client/mysqlshow.c
client/mysqlshow.c
+1
-1
strings/ctype-bin.c
strings/ctype-bin.c
+8
-8
strings/ctype-mb.c
strings/ctype-mb.c
+9
-9
strings/t_ctype.h
strings/t_ctype.h
+4
-4
No files found.
client/mysqldump.c
View file @
113e499b
...
...
@@ -1480,7 +1480,7 @@ static ulong find_set(TYPELIB *lib, const char *x, uint length,
uint
find
;
char
buff
[
255
];
*
err_pos
=
0
;
/
/ No error yet
*
err_pos
=
0
;
/
* No error yet */
while
(
end
>
x
&&
my_isspace
(
system_charset_info
,
end
[
-
1
]))
end
--
;
...
...
client/mysqlshow.c
View file @
113e499b
...
...
@@ -89,7 +89,7 @@ int main(int argc, char **argv)
}
*
to
=
*
pos
;
}
*
to
=
*
pos
;
/
/ just to copy a '\0' if '\\' was used
*
to
=
*
pos
;
/
* just to copy a '\0' if '\\' was used */
}
if
(
first_argument_uses_wildcards
)
wild
=
argv
[
--
argc
];
...
...
strings/ctype-bin.c
View file @
113e499b
...
...
@@ -200,7 +200,7 @@ static int my_wildcmp_bin(CHARSET_INFO *cs,
const
char
*
wildstr
,
const
char
*
wildend
,
int
escape
,
int
w_one
,
int
w_many
)
{
int
result
=
-
1
;
/
/ Not found, using wildcards
int
result
=
-
1
;
/
* Not found, using wildcards */
while
(
wildstr
!=
wildend
)
{
...
...
@@ -214,15 +214,15 @@ static int my_wildcmp_bin(CHARSET_INFO *cs,
}
if
(
wildstr
==
wildend
)
{
return
(
str
!=
str_end
);
/
/ Match if both are at end
return
(
str
!=
str_end
);
/
* Match if both are at end */
}
result
=
1
;
/
/ Found an anchor char
result
=
1
;
/
* Found an anchor char */
}
if
(
*
wildstr
==
w_one
)
{
do
{
if
(
str
==
str_end
)
/
/ Skip one char if possible
if
(
str
==
str_end
)
/
* Skip one char if possible */
return
(
result
);
str
++
;
}
while
(
*++
wildstr
==
w_one
&&
wildstr
!=
wildend
);
...
...
@@ -230,7 +230,7 @@ static int my_wildcmp_bin(CHARSET_INFO *cs,
break
;
}
if
(
*
wildstr
==
w_many
)
{
/
/ Found w_many
{
/
* Found w_many */
char
cmp
;
wildstr
++
;
...
...
@@ -248,11 +248,11 @@ static int my_wildcmp_bin(CHARSET_INFO *cs,
str
++
;
continue
;
}
break
;
/
/ Not a wild character
break
;
/
* Not a wild character */
}
if
(
wildstr
==
wildend
)
{
return
(
0
);
/
/ Ok if w_many is last
return
(
0
);
/
* Ok if w_many is last */
}
if
(
str
==
str_end
)
{
...
...
@@ -261,7 +261,7 @@ static int my_wildcmp_bin(CHARSET_INFO *cs,
if
((
cmp
=
*
wildstr
)
==
escape
&&
wildstr
+
1
!=
wildend
)
cmp
=
*++
wildstr
;
wildstr
++
;
/
/ This is compared trough cmp
wildstr
++
;
/
* This is compared trough cmp */
do
{
while
(
str
!=
str_end
&&
*
str
!=
cmp
)
...
...
strings/ctype-mb.c
View file @
113e499b
...
...
@@ -161,7 +161,7 @@ int my_wildcmp_mb(CHARSET_INFO *cs,
const
char
*
wildstr
,
const
char
*
wildend
,
int
escape
,
int
w_one
,
int
w_many
)
{
int
result
=
-
1
;
/
/ Not found, using wildcards
int
result
=
-
1
;
/
* Not found, using wildcards */
bool
use_mb_flag
=
use_mb
(
cs
);
...
...
@@ -182,16 +182,16 @@ int my_wildcmp_mb(CHARSET_INFO *cs,
}
else
if
(
str
==
str_end
||
likeconv
(
cs
,
*
wildstr
++
)
!=
likeconv
(
cs
,
*
str
++
))
return
(
1
);
/
/ No match
return
(
1
);
/
* No match */
if
(
wildstr
==
wildend
)
return
(
str
!=
str_end
);
/
/ Match if both are at end
result
=
1
;
/
/ Found an anchor char
return
(
str
!=
str_end
);
/
* Match if both are at end */
result
=
1
;
/
* Found an anchor char */
}
if
(
*
wildstr
==
w_one
)
{
do
{
if
(
str
==
str_end
)
/
/ Skip one char if possible
if
(
str
==
str_end
)
/
* Skip one char if possible */
return
(
result
);
INC_PTR
(
cs
,
str
,
str_end
);
}
while
(
++
wildstr
<
wildend
&&
*
wildstr
==
w_one
);
...
...
@@ -199,7 +199,7 @@ int my_wildcmp_mb(CHARSET_INFO *cs,
break
;
}
if
(
*
wildstr
==
w_many
)
{
/
/ Found w_many
{
/
* Found w_many */
uchar
cmp
;
const
char
*
mb
=
wildstr
;
int
mblen
=
0
;
...
...
@@ -217,10 +217,10 @@ int my_wildcmp_mb(CHARSET_INFO *cs,
INC_PTR
(
cs
,
str
,
str_end
);
continue
;
}
break
;
/
/ Not a wild character
break
;
/
* Not a wild character */
}
if
(
wildstr
==
wildend
)
return
(
0
);
/
/ Ok if w_many is last
return
(
0
);
/
* Ok if w_many is last */
if
(
str
==
str_end
)
return
-
1
;
...
...
@@ -231,7 +231,7 @@ int my_wildcmp_mb(CHARSET_INFO *cs,
LINT_INIT
(
mblen
);
if
(
use_mb_flag
)
mblen
=
my_ismbchar
(
cs
,
wildstr
,
wildend
);
INC_PTR
(
cs
,
wildstr
,
wildend
);
/
/ This is compared trough cmp
INC_PTR
(
cs
,
wildstr
,
wildend
);
/
* This is compared trough cmp */
cmp
=
likeconv
(
cs
,
cmp
);
do
{
...
...
strings/t_ctype.h
View file @
113e499b
...
...
@@ -40,7 +40,7 @@ typedef unsigned char tchar;
#define IGNORE 0
/
/ level 1 symbols & order
/
* level 1 symbols & order */
enum
l1_symbols
{
L1_08
=
TOT_LEVELS
,
L1_18
,
...
...
@@ -142,7 +142,7 @@ enum l1_symbols {
L1_SARA_AI_MAIMALAI
};
/
/ level 2 symbols & order
/
* level 2 symbols & order */
enum
l2_symbols
{
L2_BLANK
=
TOT_LEVELS
,
L2_THAII
,
...
...
@@ -156,7 +156,7 @@ enum l2_symbols {
L2_TONE4
};
/
/ level 3 symbols & order
/
* level 3 symbols & order */
enum
l3_symbols
{
L3_BLANK
=
TOT_LEVELS
,
L3_SPACE
,
...
...
@@ -201,7 +201,7 @@ enum l3_symbols {
L3_V_LINE
};
/
/ level 4 symbols & order
/
* level 4 symbols & order */
enum
l4_symbols
{
L4_BLANK
=
TOT_LEVELS
,
L4_MIN
,
...
...
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