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
c9201f9f
Commit
c9201f9f
authored
Oct 08, 2009
by
Magnus Blåudd
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
8f7f8b5a
1ec86b21
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
49 deletions
+2
-49
include/my_sys.h
include/my_sys.h
+0
-1
mysys/CMakeLists.txt
mysys/CMakeLists.txt
+1
-1
mysys/Makefile.am
mysys/Makefile.am
+1
-1
mysys/mf_strip.c
mysys/mf_strip.c
+0
-45
sql/mysql_priv.h.pp
sql/mysql_priv.h.pp
+0
-1
No files found.
include/my_sys.h
View file @
c9201f9f
...
...
@@ -720,7 +720,6 @@ extern int wild_compare(const char *str,const char *wildstr,
extern
WF_PACK
*
wf_comp
(
char
*
str
);
extern
int
wf_test
(
struct
wild_file_pack
*
wf_pack
,
const
char
*
name
);
extern
void
wf_end
(
struct
wild_file_pack
*
buffer
);
extern
size_t
strip_sp
(
char
*
str
);
extern
my_bool
array_append_string_unique
(
const
char
*
str
,
const
char
**
array
,
size_t
size
);
extern
void
get_date
(
char
*
to
,
int
timeflag
,
time_t
use_time
);
...
...
mysys/CMakeLists.txt
View file @
c9201f9f
...
...
@@ -29,7 +29,7 @@ SET(MYSYS_SOURCES array.c charset-def.c charset.c checksum.c default.c default_
errors.c hash.c list.c md5.c mf_brkhant.c mf_cache.c mf_dirname.c mf_fn_ext.c
mf_format.c mf_getdate.c mf_iocache.c mf_iocache2.c mf_keycache.c
mf_keycaches.c mf_loadpath.c mf_pack.c mf_path.c mf_qsort.c mf_qsort2.c
mf_radix.c mf_same.c mf_sort.c mf_soundex.c mf_
strip.c mf_
arr_appstr.c mf_tempdir.c
mf_radix.c mf_same.c mf_sort.c mf_soundex.c mf_arr_appstr.c mf_tempdir.c
mf_tempfile.c mf_unixpath.c mf_wcomp.c mf_wfile.c mulalloc.c my_access.c
my_aes.c my_alarm.c my_alloc.c my_append.c my_bit.c my_bitmap.c my_chsize.c
my_clock.c my_compress.c my_conio.c my_copy.c my_crc32.c my_create.c my_delete.c
...
...
mysys/Makefile.am
View file @
c9201f9f
...
...
@@ -35,7 +35,7 @@ libmysys_a_SOURCES = my_init.c my_getwd.c mf_getdate.c my_mmap.c \
my_error.c errors.c my_div.c my_messnc.c
\
mf_format.c mf_same.c mf_dirname.c mf_fn_ext.c
\
my_symlink.c my_symlink2.c
\
mf_pack.c mf_unixpath.c mf_
strip.c mf_
arr_appstr.c
\
mf_pack.c mf_unixpath.c mf_arr_appstr.c
\
mf_wcomp.c mf_wfile.c my_gethwaddr.c
\
mf_qsort.c mf_qsort2.c mf_sort.c
\
ptr_cmp.c mf_radix.c queues.c my_getncpus.c
\
...
...
mysys/mf_strip.c
deleted
100644 → 0
View file @
8f7f8b5a
/* Copyright (C) 2000 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/* T|mmer en str{ng p{ slut_space */
#include "mysys_priv.h"
/*
strip_sp(char * str)
Strips end-space from string and returns new length.
*/
size_t
strip_sp
(
register
char
*
str
)
{
reg2
char
*
found
;
reg3
char
*
start
;
start
=
found
=
str
;
while
(
*
str
)
{
if
(
*
str
!=
' '
)
{
while
(
*++
str
&&
*
str
!=
' '
)
{};
if
(
!*
str
)
return
(
size_t
)
(
str
-
start
);
/* Return stringlength */
}
found
=
str
;
while
(
*++
str
==
' '
)
{};
}
*
found
=
'\0'
;
/* Stripp at first space */
return
(
size_t
)
(
found
-
start
);
}
/* strip_sp */
sql/mysql_priv.h.pp
View file @
c9201f9f
...
...
@@ -773,7 +773,6 @@ extern int wild_compare(const char *str,const char *wildstr,
extern
WF_PACK
*
wf_comp
(
char
*
str
);
extern
int
wf_test
(
struct
wild_file_pack
*
wf_pack
,
const
char
*
name
);
extern
void
wf_end
(
struct
wild_file_pack
*
buffer
);
extern
size_t
strip_sp
(
char
*
str
);
extern
my_bool
array_append_string_unique
(
const
char
*
str
,
const
char
**
array
,
size_t
size
);
extern
void
get_date
(
char
*
to
,
int
timeflag
,
time_t
use_time
);
...
...
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