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
9ec4ca9c
Commit
9ec4ca9c
authored
Oct 09, 2001
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get rid of comp() macro - CMP is already in place
parent
6b6b69c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
include/my_global.h
include/my_global.h
+1
-1
myisam/ft_boolean_search.c
myisam/ft_boolean_search.c
+2
-2
myisam/mi_search.c
myisam/mi_search.c
+0
-2
No files found.
include/my_global.h
View file @
9ec4ca9c
...
...
@@ -276,7 +276,7 @@ typedef unsigned int uint;
typedef
unsigned
short
ushort
;
#endif
#define
comp(a,b) (((a) < (b)) ? -1 : ((a) > (b)) ? 1 : 0
)
#define
CMP(a,b) (((a) < (b)) ? -1 : ((a) == (b)) ? 0 : 1
)
#define sgn(a) (((a) < 0) ? -1 : ((a) > 0) ? 1 : 0)
#define swap(t,a,b) { register t dummy; dummy = a; a = b; b = dummy; }
#define test(a) ((a) ? 1 : 0)
...
...
myisam/ft_boolean_search.c
View file @
9ec4ca9c
...
...
@@ -87,9 +87,9 @@ typedef struct st_ft_info {
int
FTB_WORD_cmp
(
void
*
v
,
byte
*
a
,
byte
*
b
)
{
/* ORDER BY docid, ndepth DESC */
int
i
=
comp
(((
FTB_WORD
*
)
a
)
->
docid
,
((
FTB_WORD
*
)
b
)
->
docid
);
int
i
=
CMP
(((
FTB_WORD
*
)
a
)
->
docid
,
((
FTB_WORD
*
)
b
)
->
docid
);
if
(
!
i
)
i
=
comp
(((
FTB_WORD
*
)
b
)
->
ndepth
,((
FTB_WORD
*
)
a
)
->
ndepth
);
i
=
CMP
(((
FTB_WORD
*
)
b
)
->
ndepth
,((
FTB_WORD
*
)
a
)
->
ndepth
);
return
i
;
}
...
...
myisam/mi_search.c
View file @
9ec4ca9c
...
...
@@ -19,8 +19,6 @@
#include "fulltext.h"
#include "m_ctype.h"
#define CMP(a,b) (a<b ? -1 : a == b ? 0 : 1)
static
my_bool
_mi_get_prev_key
(
MI_INFO
*
info
,
MI_KEYDEF
*
keyinfo
,
uchar
*
page
,
uchar
*
key
,
uchar
*
keypos
,
uint
*
return_key_length
);
...
...
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