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
141b6bfa
Commit
141b6bfa
authored
Apr 01, 2009
by
Timothy Smith
Browse files
Options
Browse Files
Download
Plain Diff
auto-merge -build into -bugteam
parents
9954aed1
d4ea27e8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
48 deletions
+54
-48
cmd-line-utils/libedit/makelist.sh
cmd-line-utils/libedit/makelist.sh
+2
-2
cmd-line-utils/libedit/readline.c
cmd-line-utils/libedit/readline.c
+1
-4
cmd-line-utils/libedit/readline/readline.h
cmd-line-utils/libedit/readline/readline.h
+1
-1
cmd-line-utils/libedit/vi.c
cmd-line-utils/libedit/vi.c
+2
-2
include/my_global.h
include/my_global.h
+35
-34
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+13
-5
No files found.
cmd-line-utils/libedit/makelist.sh
View file @
141b6bfa
...
...
@@ -84,7 +84,7 @@ case $FLAG in
cat
$FILES
|
$AWK
'
BEGIN {
printf("/* Automatically generated file, do not edit */\n");
printf("#include \"
sys
.h\"\n#include \"el.h\"\n");
printf("#include \"
config
.h\"\n#include \"el.h\"\n");
printf("private const struct el_bindings_t el_func_help[] = {\n");
low = "abcdefghijklmnopqrstuvwxyz_";
high = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_";
...
...
@@ -169,7 +169,7 @@ case $FLAG in
cat
$FILES
|
$AWK
'/el_action_t/ { print $3 }'
|
sort
|
$AWK
'
BEGIN {
printf("/* Automatically generated file, do not edit */\n");
printf("#include \"
sys
.h\"\n#include \"el.h\"\n");
printf("#include \"
config
.h\"\n#include \"el.h\"\n");
printf("private const el_func_t el_func[] = {");
maxlen = 80;
needn = 1;
...
...
cmd-line-utils/libedit/readline.c
View file @
141b6bfa
...
...
@@ -51,13 +51,10 @@
#else
#include "np/vis.h"
#endif
#ifdef HAVE_ALLOCA_H
#include <alloca.h>
#endif
#include "readline/readline.h"
#include "el.h"
#include "fcns.h"
/* for EL_NUM_FCNS */
#include "histedit.h"
#include "readline/readline.h"
#include "filecomplete.h"
void
rl_prep_terminal
(
int
);
...
...
cmd-line-utils/libedit/readline/readline.h
View file @
141b6bfa
...
...
@@ -66,7 +66,7 @@ typedef KEYMAP_ENTRY *Keymap;
#ifndef CTRL
#include <sys/ioctl.h>
#if !defined(__sun
__) && !defined(__hpux
__)
#if !defined(__sun
) && !defined(__hpux) && !defined(_AIX) && !defined(__QNXNTO__) && !defined(__USLC
__)
#include <sys/ttydefaults.h>
#endif
#ifndef CTRL
...
...
cmd-line-utils/libedit/vi.c
View file @
141b6bfa
...
...
@@ -914,14 +914,14 @@ vi_comment_out(EditLine *el, int c)
* NB: posix implies that we should enter insert mode, however
* this is against historical precedent...
*/
#if
def __weak_reference
#if
defined(__weak_reference) && !defined(__FreeBSD__)
extern
char
*
get_alias_text
(
const
char
*
)
__weak_reference
(
get_alias_text
);
#endif
protected
el_action_t
/*ARGSUSED*/
vi_alias
(
EditLine
*
el
,
int
c
)
{
#if
def __weak_reference
#if
defined(__weak_reference) && !defined(__FreeBSD__)
char
alias_name
[
3
];
char
*
alias_text
;
...
...
include/my_global.h
View file @
141b6bfa
...
...
@@ -486,40 +486,6 @@ typedef unsigned short ushort;
#define test_all_bits(a,b) (((a) & (b)) == (b))
#define set_bits(type, bit_count) (sizeof(type)*8 <= (bit_count) ? ~(type) 0 : ((((type) 1) << (bit_count)) - (type) 1))
#define array_elements(A) ((uint) (sizeof(A)/sizeof(A[0])))
#ifndef HAVE_RINT
/**
All integers up to this number can be represented exactly as double precision
values (DBL_MANT_DIG == 53 for IEEE 754 hardware).
*/
#define MAX_EXACT_INTEGER ((1LL << DBL_MANT_DIG) - 1)
/**
rint(3) implementation for platforms that do not have it.
Always rounds to the nearest integer with ties being rounded to the nearest
even integer to mimic glibc's rint() behavior in the "round-to-nearest"
FPU mode. Hardware-specific optimizations are possible (frndint on x86).
Unlike this implementation, hardware will also honor the FPU rounding mode.
*/
static
inline
double
rint
(
double
x
)
{
double
f
,
i
;
f
=
modf
(
x
,
&
i
);
/*
All doubles with absolute values > MAX_EXACT_INTEGER are even anyway,
no need to check it.
*/
if
(
x
>
0
.
0
)
i
+=
(
double
)
((
f
>
0
.
5
)
||
(
f
==
0
.
5
&&
i
<=
(
double
)
MAX_EXACT_INTEGER
&&
(
longlong
)
i
%
2
));
else
i
-=
(
double
)
((
f
<
-
0
.
5
)
||
(
f
==
-
0
.
5
&&
i
>=
(
double
)
-
MAX_EXACT_INTEGER
&&
(
longlong
)
i
%
2
));
return
i
;
}
#endif
/* HAVE_RINT */
/* Define some general constants */
#ifndef TRUE
...
...
@@ -1401,4 +1367,39 @@ do { doubleget_union _tmp; \
#define MY_INT64_NUM_DECIMAL_DIGITS 21
#ifndef HAVE_RINT
/**
All integers up to this number can be represented exactly as double precision
values (DBL_MANT_DIG == 53 for IEEE 754 hardware).
*/
#define MAX_EXACT_INTEGER ((1LL << DBL_MANT_DIG) - 1)
/**
rint(3) implementation for platforms that do not have it.
Always rounds to the nearest integer with ties being rounded to the nearest
even integer to mimic glibc's rint() behavior in the "round-to-nearest"
FPU mode. Hardware-specific optimizations are possible (frndint on x86).
Unlike this implementation, hardware will also honor the FPU rounding mode.
*/
static
inline
double
rint
(
double
x
)
{
double
f
,
i
;
f
=
modf
(
x
,
&
i
);
/*
All doubles with absolute values > MAX_EXACT_INTEGER are even anyway,
no need to check it.
*/
if
(
x
>
0
.
0
)
i
+=
(
double
)
((
f
>
0
.
5
)
||
(
f
==
0
.
5
&&
i
<=
(
double
)
MAX_EXACT_INTEGER
&&
(
longlong
)
i
%
2
));
else
i
-=
(
double
)
((
f
<
-
0
.
5
)
||
(
f
==
-
0
.
5
&&
i
>=
(
double
)
-
MAX_EXACT_INTEGER
&&
(
longlong
)
i
%
2
));
return
i
;
}
#endif
/* HAVE_RINT */
#endif
/* my_global_h */
support-files/mysql.spec.sh
View file @
141b6bfa
# Copyright (C) 2000-200
7 MySQL AB
# Copyright (C) 2000-200
8 MySQL AB, 2008 Sun Microsystems, Inc.
#
# 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
...
...
@@ -87,7 +87,7 @@ is intended for mission-critical, heavy-load production systems as well
as
for
embedding into mass-deployed software. MySQL is a trademark of
MySQL AB.
Copyright
(
C
)
2000-200
7 MySQL AB
Copyright
(
C
)
2000-200
8 MySQL AB, 2008 Sun Microsystems, Inc.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license.
...
...
@@ -109,7 +109,7 @@ is intended for mission-critical, heavy-load production systems as well
as
for
embedding into mass-deployed software. MySQL is a trademark of
MySQL AB.
Copyright
(
C
)
2000-200
7 MySQL AB
Copyright
(
C
)
2000-200
8 MySQL AB, 2008 Sun Microsystems, Inc.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license.
...
...
@@ -320,8 +320,12 @@ do
# We are in a subshell, so we can modify variables just for one run.
if
test
"
$servertype
"
!=
' '
then
CFLAGS
=
`
echo
$CFLAGS
|
sed
-e
's/-O[0-9]* //'
-e
's/-unroll2 //'
-e
's/-ip //'
`
CXXFLAGS
=
`
echo
$CXXFLAGS
|
sed
-e
's/-O[0-9]* //'
-e
's/-unroll2 //'
-e
's/-ip //'
`
CFLAGS
=
`
echo
"
$CFLAGS
"
|
\
sed
-e
's/ -O[0-9]* / /'
-e
's/ -unroll2 / /'
-e
's/ -ip / /'
\
-e
's/^ //'
-e
's/ $//'
`
CXXFLAGS
=
`
echo
"
$CXXFLAGS
"
|
\
sed
-e
's/ -O[0-9]* / /'
-e
's/ -unroll2 / /'
-e
's/ -ip / /'
\
-e
's/^ //'
-e
's/ $//'
`
fi
BuildMySQL
"
\
...
...
@@ -807,6 +811,10 @@ fi
# itself - note that they must be ordered by date (important when
# merging BK trees)
%changelog
*
Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com>
- Correct yesterday
's fix, so that it also works for the last flag.
* Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
- Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
...
...
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