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
9cfa1def
Commit
9cfa1def
authored
Jan 02, 2006
by
knielsen@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use C++ style (//) comments in C source (breaks compilation on aix52).
parent
df52ae2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
client/mysqlslap.c
client/mysqlslap.c
+4
-4
No files found.
client/mysqlslap.c
View file @
9cfa1def
...
@@ -278,7 +278,7 @@ int main(int argc, char **argv)
...
@@ -278,7 +278,7 @@ int main(int argc, char **argv)
}
}
}
}
/
/ Main interations loop
/
* Main interations loop */
for
(
eptr
=
engine_statements
;
eptr
;
eptr
=
eptr
->
next
)
for
(
eptr
=
engine_statements
;
eptr
;
eptr
=
eptr
->
next
)
{
{
if
(
!
opt_silent
)
if
(
!
opt_silent
)
...
@@ -1287,7 +1287,7 @@ parse_delimiter(const char *script, statement **stmt, char delm)
...
@@ -1287,7 +1287,7 @@ parse_delimiter(const char *script, statement **stmt, char delm)
statement
**
sptr
=
stmt
;
statement
**
sptr
=
stmt
;
statement
*
tmp
;
statement
*
tmp
;
uint
length
=
strlen
(
script
);
uint
length
=
strlen
(
script
);
uint
count
=
0
;
/
/ We know that there is always one
uint
count
=
0
;
/
* We know that there is always one */
DBUG_PRINT
(
"info"
,
(
"Parsing %s
\n
"
,
script
));
DBUG_PRINT
(
"info"
,
(
"Parsing %s
\n
"
,
script
));
...
@@ -1322,7 +1322,7 @@ parse_delimiter(const char *script, statement **stmt, char delm)
...
@@ -1322,7 +1322,7 @@ parse_delimiter(const char *script, statement **stmt, char delm)
uint
uint
parse_comma
(
const
char
*
string
,
uint
**
range
)
parse_comma
(
const
char
*
string
,
uint
**
range
)
{
{
uint
count
=
1
,
x
;
/
/ We know that there is always one
uint
count
=
1
,
x
;
/
* We know that there is always one */
char
*
retstr
;
char
*
retstr
;
char
*
ptr
=
(
char
*
)
string
;
char
*
ptr
=
(
char
*
)
string
;
uint
*
nptr
;
uint
*
nptr
;
...
@@ -1330,7 +1330,7 @@ parse_comma(const char *string, uint **range)
...
@@ -1330,7 +1330,7 @@ parse_comma(const char *string, uint **range)
for
(;
*
ptr
;
ptr
++
)
for
(;
*
ptr
;
ptr
++
)
if
(
*
ptr
==
','
)
count
++
;
if
(
*
ptr
==
','
)
count
++
;
/
/ One extra spot for the NULL
/
* One extra spot for the NULL */
nptr
=
*
range
=
(
uint
*
)
my_malloc
(
sizeof
(
uint
)
*
(
count
+
1
),
MYF
(
MY_ZEROFILL
));
nptr
=
*
range
=
(
uint
*
)
my_malloc
(
sizeof
(
uint
)
*
(
count
+
1
),
MYF
(
MY_ZEROFILL
));
ptr
=
(
char
*
)
string
;
ptr
=
(
char
*
)
string
;
...
...
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