Thanks for your comments!
In any case extern declarations like this should be avoided, much better to
only have the declaration in one place in some *.h file.
I agree. Currently, we have:
mysql_priv.h:
#ifndef MYSQL_CLIENT
...
void *sql_alloc(size_t);
...
Alexi1952 alexi1...@yandex.ru writes:
Thanks for your comments!
In any case extern declarations like this should be avoided, much better to
only have the declaration in one place in some *.h file.
I agree. Currently, we have:
mysql_priv.h:
#ifndef MYSQL_CLIENT
...
I need to use sql_string.* and sql_list.* in MYSQL_CLIENT context
(mysqlbinlog.cc).
sql_list.h refers to sql_alloc() function which originally has THD dependent
implementation:
mysql_priv.h:
#ifndef MYSQL_CLIENT
...
(1)void *sql_alloc(size_t);
...
#endif
3 matches
Mail list logo