namespace: reserved C++ keyword

Nirgal <[email protected]> Sat, 11 Feb 2012 17:45:23 +0000
Newsgroups gmane.comp.db.mdb-tools.devel
Message-ID <[email protected]>
On Thursday 09 February 2012 09:37:09 Dobrov Grigoriy wrote:
> (...) 
> The problem is that I am trying to include mdbtools.h header in my C++
> project and compiler fails in line 495:
> extern void mdb_print_schema(MdbHandle *mdb, FILE *outfile, char *tabname,
> char *namespace, guint32 export_options);
> 
> The fail happens because  'namespace'  is a  keyword in C++ so the C++
> compiler doesn't expect it to occur in the middle of function declaration.
> I understand that C-programmers aren't obliged to think about C++ keywords
> so it seems to me that it's more reasonable to patch the header in debian
> package, of course, if you are not against the idea to help c++ developers

I renamed namespace into dbnamespace.
See https://github.com/brianb/mdbtools/commit/7634e329c740825c97652175bcad16a1a58688ae

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/