diff options
author | unknown <serg@serg.mysql.com> | 2001-09-21 18:38:17 +0200 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2001-09-21 18:38:17 +0200 |
commit | 48308b65437b7121a8d5d2846c184253ac039def (patch) | |
tree | 08ca15f4fbe3a0f6cdb2dc71820764685495c906 /include/ft_global.h | |
parent | f1ccb22146ed33aa2bb34e3f422a79cf6e8fdd4a (diff) | |
download | mariadb-git-48308b65437b7121a8d5d2846c184253ac039def.tar.gz |
Initial checkin of the new boolean fulltext search code
Diffstat (limited to 'include/ft_global.h')
-rw-r--r-- | include/ft_global.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ft_global.h b/include/ft_global.h index 415c0884989..aed5998f40a 100644 --- a/include/ft_global.h +++ b/include/ft_global.h @@ -53,8 +53,8 @@ void ft_free_stopwords(void); FT_DOCLIST * ft_init_search(void *, uint, byte *, uint, my_bool); int ft_read_next(FT_DOCLIST *, char *); #define ft_close_search(handler) my_free(((gptr)(handler)),MYF(0)) -#define ft_get_relevance(handler) ((handler)->doc[(handler)->curdoc].weight) -#define ft_get_docid(handler) ((handler)->doc[(handler)->curdoc].dpos) +#define ft_get_relevance(handler) (((FT_DOCLIST *)(handler))->doc[((FT_DOCLIST *)(handler))->curdoc].weight) +#define ft_get_docid(handler) (((FT_DOCLIST *)(handler))->doc[((FT_DOCLIST *)(handler))->curdoc].dpos) #define ft_reinit_search(handler) (((FT_DOCLIST *)(handler))->curdoc=-1) #ifdef __cplusplus |