dbTalk Databases Forums  

Question about change in query.h

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Question about change in query.h in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris Frey
 
Posts: n/a

Default Question about change in query.h - 05-10-2005 , 05:19 PM






I'm reading through the diffs from 1.7.32 to 1.7.33 and noticed the
following change in lib/query.h:

@@ -11,13 +30,11 @@
#include <mysql.h>

#define mysql_query_define1(RETURN, FUNC) \
- RETURN FUNC () {return FUNC (def);} \
RETURN FUNC (const char* str); \
RETURN FUNC (parms &p);\
mysql_query_define0(RETURN,FUNC) \

#define mysql_query_define2(FUNC) \
- template <class T1> void FUNC (T1 &con, query_reset r = RESET_QUERY) {FUNC (c
on, def,r);} \
template <class T1> void FUNC (T1 &con, const char* str); \
template <class T1> void FUNC (T1 &con, parms &p, query_reset r = RESET_QUERY
);\
template <class T1> void FUNC (T1 &con, ss a)\

Just curious why those two functions were removed?

Thanks,
- Chris


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: Question about change in query.h - 05-11-2005 , 04:20 PM






Chris Frey wrote:
Quote:
Just curious why those two functions were removed?
They weren't removed. Doxygen isn't smart enough to unwind macros by
itself to find a function declaration, so I decided to "expand" the
first element of each of those macros into the body of the class so
there was something to attach Doxygen comments to. If you look at the
rest of the diffs in that file, you'll see several new member
declarations that replace what used to be generated by those macros.

Thanks for keeping an eye out, though.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Chris Frey
 
Posts: n/a

Default Re: Question about change in query.h - 05-11-2005 , 05:24 PM



On Wed, May 11, 2005 at 03:20:13PM -0600, Warren Young wrote:
Quote:
Chris Frey wrote:
Just curious why those two functions were removed?

They weren't removed. Doxygen isn't smart enough to unwind macros by
itself to find a function declaration, so I decided to "expand" the
first element of each of those macros into the body of the class so
Whoops, should have seen that. Thanks :-)

- Chris


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.