nanogui: Pending patches/bug/requests ... list available on the FTP
Subject:
Re: [nanogui] Pending patches/bug/requests ... list available on the FTP
From:
Alain Volmat ####@####.####
Date:
28 May 2005 09:52:34 +0100
Message-Id: <20050528085222.GB28707@pop.mail.yahoo.com>
> On Saturday 28 May 2005 08:50, Alain Volmat wrote:
> ...
> > I have to admit that it is the first time I hear about this constructor
> > attribute ... after a bit of googling I understand what it does and it
> > seems to be quite good for this case. However does using such attribute
> > will not make problem on some platform ? (I lack of information about it so
> > I can't really judge) If no, then I think since solution if much better
> > than the dirty #ifdef solution.
>
> Same here, that's why I'm not sure it's really better.
> Is microwindows also used with compilers other than gcc ? If yes, then it's
> probably no option.
There are still some borland, TC ... makefile in the source code. That's the
reason why I asked about other platform ... Even if I've not heared about
anybody using them recently, it might be a bit risky to use code that might
only work when compiled with gcc. Is that a new feature of gcc ? or is it
already here from quite a long time ? Adding a dependency on very recent gcc
is probably not the right way to go.
> In C++ it would be easy to do, simply put the following in any object file:
>
> class Fb8DriverInitializer
> {
> public:
> Fb8DriverInitializer()
> {global_driver_table_append(&fb8_driver_struct);};
> }
>
> Fb8DriverInitializer fb8DriverInitializer;
>
> When the program starts, the global variables will be initialized and this way
> automatically the constructors will be executed.
Yeah, I knew about C++ constructors/destructors and that's why I was surprised
to hear some similar feature in C. Thanks for pointing out this attribute. :D
Alain
>
> Bye
> Alex
> --
> Work: ####@####.#### - http://www.jenoptik-los.de
> Home: ####@####.#### - http://www.kde.org
> ####@####.#### - http://www.neundorf.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>
</quote>
_____________________________________________________________________________
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos !
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com