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
b3e95086
Commit
b3e95086
authored
Jul 31, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix function pointer type mismatch
parent
e023f9a4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
32 deletions
+32
-32
storage/innobase/fts/fts0pars.cc
storage/innobase/fts/fts0pars.cc
+8
-8
storage/innobase/fts/fts0pars.y
storage/innobase/fts/fts0pars.y
+8
-8
storage/xtradb/fts/fts0pars.cc
storage/xtradb/fts/fts0pars.cc
+8
-8
storage/xtradb/fts/fts0pars.y
storage/xtradb/fts/fts0pars.y
+8
-8
No files found.
storage/innobase/fts/fts0pars.cc
View file @
b3e95086
...
...
@@ -87,7 +87,7 @@ extern int fts_lexer(YYSTYPE*, fts_lexer_t*);
extern
int
fts_blexer
(
YYSTYPE
*
,
yyscan_t
);
extern
int
fts_tlexer
(
YYSTYPE
*
,
yyscan_t
);
typedef
int
(
*
fts_scan
)();
extern
int
ftserror
(
const
char
*
p
);
...
...
@@ -102,8 +102,8 @@ extern int ftserror(const char* p);
#define YYTOKENFREE(token) fts_ast_string_free((token))
typedef
int
(
*
fts_scanner_alt
)(
YYSTYPE
*
val
,
yyscan_t
yyscanner
);
typedef
int
(
*
fts_scanner
)();
typedef
int
(
*
fts_scanner
)(
YYSTYPE
*
val
,
yyscan_t
yyscanner
);
struct
fts_lexer_t
{
fts_scanner
scanner
;
...
...
@@ -1950,7 +1950,7 @@ fts_lexer_create(
reinterpret_cast
<
const
char
*>
(
query
),
static_cast
<
int
>
(
query_len
),
fts_lexer
->
yyscanner
);
fts_lexer
->
scanner
=
reinterpret_cast
<
fts_scan
>
(
fts_blexer
)
;
fts_lexer
->
scanner
=
fts_blexer
;
/* FIXME: Debugging */
/* fts0bset_debug(1 , fts_lexer->yyscanner); */
}
else
{
...
...
@@ -1959,7 +1959,7 @@ fts_lexer_create(
reinterpret_cast
<
const
char
*>
(
query
),
static_cast
<
int
>
(
query_len
),
fts_lexer
->
yyscanner
);
fts_lexer
->
scanner
=
reinterpret_cast
<
fts_scan
>
(
fts_tlexer
)
;
fts_lexer
->
scanner
=
fts_tlexer
;
}
return
(
fts_lexer
);
...
...
@@ -1973,7 +1973,7 @@ fts_lexer_free(
/*===========*/
fts_lexer_t
*
fts_lexer
)
{
if
(
fts_lexer
->
scanner
==
(
fts_scan
)
fts_blexer
)
{
if
(
fts_lexer
->
scanner
==
fts_blexer
)
{
fts0blex_destroy
(
fts_lexer
->
yyscanner
);
}
else
{
fts0tlex_destroy
(
fts_lexer
->
yyscanner
);
...
...
@@ -1991,9 +1991,9 @@ fts_lexer(
YYSTYPE
*
val
,
fts_lexer_t
*
fts_lexer
)
{
fts_scanner
_alt
func_ptr
;
fts_scanner
func_ptr
;
func_ptr
=
(
fts_scanner_alt
)
fts_lexer
->
scanner
;
func_ptr
=
fts_lexer
->
scanner
;
return
(
func_ptr
(
val
,
fts_lexer
->
yyscanner
));
}
...
...
storage/innobase/fts/fts0pars.y
View file @
b3e95086
...
...
@@ -35,7 +35,7 @@ extern int fts_lexer(YYSTYPE*, fts_lexer_t*);
extern int fts_blexer(YYSTYPE*, yyscan_t);
extern int fts_tlexer(YYSTYPE*, yyscan_t);
typedef int (*fts_scan)();
extern int ftserror(const char* p);
...
...
@@ -48,8 +48,8 @@ extern int ftserror(const char* p);
#define YYPARSE_PARAM state
#define YYLEX_PARAM ((fts_ast_state_t*) state)->lexer
typedef int (*fts_scanner_alt)(YYSTYPE* val, yyscan_t yyscanner);
typedef int (*fts_scanner)();
typedef int (*fts_scanner)(
YYSTYPE* val, yyscan_t yyscanner
);
struct fts_lexer_struct {
fts_scanner scanner;
...
...
@@ -238,13 +238,13 @@ fts_lexer_create(
if (boolean_mode) {
fts0blex_init(&fts_lexer->yyscanner);
fts0b_scan_bytes((char*) query, query_len, fts_lexer->yyscanner);
fts_lexer->scanner =
(fts_scan)
fts_blexer;
fts_lexer->scanner = fts_blexer;
/* FIXME: Debugging */
/* fts0bset_debug(1 , fts_lexer->yyscanner); */
} else {
fts0tlex_init(&fts_lexer->yyscanner);
fts0t_scan_bytes((char*) query, query_len, fts_lexer->yyscanner);
fts_lexer->scanner =
(fts_scan)
fts_tlexer;
fts_lexer->scanner = fts_tlexer;
}
return(fts_lexer);
...
...
@@ -258,7 +258,7 @@ fts_lexer_free(
/*===========*/
fts_lexer_t* fts_lexer)
{
if (fts_lexer->scanner ==
(fts_scan)
fts_blexer) {
if (fts_lexer->scanner == fts_blexer) {
fts0blex_destroy(fts_lexer->yyscanner);
} else {
fts0tlex_destroy(fts_lexer->yyscanner);
...
...
@@ -276,9 +276,9 @@ fts_lexer(
YYSTYPE* val,
fts_lexer_t* fts_lexer)
{
fts_scanner
_alt
func_ptr;
fts_scanner func_ptr;
func_ptr =
(fts_scanner_alt)
fts_lexer->scanner;
func_ptr = fts_lexer->scanner;
return(func_ptr(val, fts_lexer->yyscanner));
}
...
...
storage/xtradb/fts/fts0pars.cc
View file @
b3e95086
...
...
@@ -87,7 +87,7 @@ extern int fts_lexer(YYSTYPE*, fts_lexer_t*);
extern
int
fts_blexer
(
YYSTYPE
*
,
yyscan_t
);
extern
int
fts_tlexer
(
YYSTYPE
*
,
yyscan_t
);
typedef
int
(
*
fts_scan
)();
extern
int
ftserror
(
const
char
*
p
);
...
...
@@ -102,8 +102,8 @@ extern int ftserror(const char* p);
#define YYTOKENFREE(token) fts_ast_string_free((token))
typedef
int
(
*
fts_scanner_alt
)(
YYSTYPE
*
val
,
yyscan_t
yyscanner
);
typedef
int
(
*
fts_scanner
)();
typedef
int
(
*
fts_scanner
)(
YYSTYPE
*
val
,
yyscan_t
yyscanner
);
struct
fts_lexer_t
{
fts_scanner
scanner
;
...
...
@@ -1950,7 +1950,7 @@ fts_lexer_create(
reinterpret_cast
<
const
char
*>
(
query
),
static_cast
<
int
>
(
query_len
),
fts_lexer
->
yyscanner
);
fts_lexer
->
scanner
=
reinterpret_cast
<
fts_scan
>
(
fts_blexer
)
;
fts_lexer
->
scanner
=
fts_blexer
;
/* FIXME: Debugging */
/* fts0bset_debug(1 , fts_lexer->yyscanner); */
}
else
{
...
...
@@ -1959,7 +1959,7 @@ fts_lexer_create(
reinterpret_cast
<
const
char
*>
(
query
),
static_cast
<
int
>
(
query_len
),
fts_lexer
->
yyscanner
);
fts_lexer
->
scanner
=
reinterpret_cast
<
fts_scan
>
(
fts_tlexer
)
;
fts_lexer
->
scanner
=
fts_tlexer
;
}
return
(
fts_lexer
);
...
...
@@ -1973,7 +1973,7 @@ fts_lexer_free(
/*===========*/
fts_lexer_t
*
fts_lexer
)
{
if
(
fts_lexer
->
scanner
==
(
fts_scan
)
fts_blexer
)
{
if
(
fts_lexer
->
scanner
==
fts_blexer
)
{
fts0blex_destroy
(
fts_lexer
->
yyscanner
);
}
else
{
fts0tlex_destroy
(
fts_lexer
->
yyscanner
);
...
...
@@ -1991,9 +1991,9 @@ fts_lexer(
YYSTYPE
*
val
,
fts_lexer_t
*
fts_lexer
)
{
fts_scanner
_alt
func_ptr
;
fts_scanner
func_ptr
;
func_ptr
=
(
fts_scanner_alt
)
fts_lexer
->
scanner
;
func_ptr
=
fts_lexer
->
scanner
;
return
(
func_ptr
(
val
,
fts_lexer
->
yyscanner
));
}
...
...
storage/xtradb/fts/fts0pars.y
View file @
b3e95086
...
...
@@ -35,7 +35,7 @@ extern int fts_lexer(YYSTYPE*, fts_lexer_t*);
extern int fts_blexer(YYSTYPE*, yyscan_t);
extern int fts_tlexer(YYSTYPE*, yyscan_t);
typedef int (*fts_scan)();
extern int ftserror(const char* p);
...
...
@@ -48,8 +48,8 @@ extern int ftserror(const char* p);
#define YYPARSE_PARAM state
#define YYLEX_PARAM ((fts_ast_state_t*) state)->lexer
typedef int (*fts_scanner_alt)(YYSTYPE* val, yyscan_t yyscanner);
typedef int (*fts_scanner)();
typedef int (*fts_scanner)(
YYSTYPE* val, yyscan_t yyscanner
);
struct fts_lexer_struct {
fts_scanner scanner;
...
...
@@ -238,13 +238,13 @@ fts_lexer_create(
if (boolean_mode) {
fts0blex_init(&fts_lexer->yyscanner);
fts0b_scan_bytes((char*) query, query_len, fts_lexer->yyscanner);
fts_lexer->scanner =
(fts_scan)
fts_blexer;
fts_lexer->scanner = fts_blexer;
/* FIXME: Debugging */
/* fts0bset_debug(1 , fts_lexer->yyscanner); */
} else {
fts0tlex_init(&fts_lexer->yyscanner);
fts0t_scan_bytes((char*) query, query_len, fts_lexer->yyscanner);
fts_lexer->scanner =
(fts_scan)
fts_tlexer;
fts_lexer->scanner = fts_tlexer;
}
return(fts_lexer);
...
...
@@ -258,7 +258,7 @@ fts_lexer_free(
/*===========*/
fts_lexer_t* fts_lexer)
{
if (fts_lexer->scanner ==
(fts_scan)
fts_blexer) {
if (fts_lexer->scanner == fts_blexer) {
fts0blex_destroy(fts_lexer->yyscanner);
} else {
fts0tlex_destroy(fts_lexer->yyscanner);
...
...
@@ -276,9 +276,9 @@ fts_lexer(
YYSTYPE* val,
fts_lexer_t* fts_lexer)
{
fts_scanner
_alt
func_ptr;
fts_scanner func_ptr;
func_ptr =
(fts_scanner_alt)
fts_lexer->scanner;
func_ptr = fts_lexer->scanner;
return(func_ptr(val, fts_lexer->yyscanner));
}
...
...
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