[fpc-devel] Mysql without macros

Mattias Gärtner nc-gaertnma at netcologne.de
Fri Nov 14 11:56:18 CET 2008


Zitat von Michael Van Canneyt <michael at freepascal.org>:

>
>
> On Fri, 14 Nov 2008, Mattias Gärtner wrote:
>
> > Hi,
> >
> > The mysqlconn.inc uses macros. This is unnecessary and has some
> disadvantages.
>
> Namely, the lazarus codetools get confused :-)

... and the users, that (mis)uses this code as example for coding.
I think it is a great FPC feature, that the most native and platform independent
language allows to code without macros (not only in theory).


> > Here is a patch that replaces the macros with simple type aliases.
>
> Good idea...
>
> > As far as I can see mysqlconn.inc is the same for fpc 2.3.1 and fpc 2.2.x,
> > so the patch should work for both.
>
> Applied, and will merge to 2.2.3 so it gets included in 2.2.4.
>
> That is, after I finished merging all my other patches...

thanks,
Mattias




More information about the fpc-devel mailing list