Re: GTK2 Version

2010-09-19 Thread Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
Yes, that's what I mean. This allows module defined constants to replace macros in all cpp tests: macro module constant existence#if defined(foo) #if constant(Bar.foo) numeric #if foo#if Bar.foo The name of the constant needs to contain at least o

Re: GTK2 Version

2010-09-18 Thread Martin Bähr
of course there is something to see. you mean to say that #if GTK2.MINOR_VERSION >= 12 now works? that's great! greetings, martin.

GTK2 Version

2010-09-18 Thread Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
Ok, implemented. Problem solved. Nothing to see here. Move along please. :-)

GTK2 Version

2010-09-18 Thread Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
Hm, perhaps we should let A.B without constant() around mean lookup B in A instead? I don't think that currently means anything...

GTK2 Version

2010-09-18 Thread Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
Or I guess we _could_ modify the "constant()" cpp function so that it returns an actual value rather than just 1/0, but that would probably cause compatibility problems...

GTK2 Version

2010-09-18 Thread Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
Sorry for not reponding to this for a while. >Pike v7.8 release 469 running Hilfe v3.5 (Incremental Pike Frontend) >> GTK2.GTK_MINOR_VERSION; >(1) Result: 0 >> GTK2.MAJOR_VERSION; >(2) Result: 2 >> GTK2.MINOR_VERSION; >(3) Result: 20 >> GTK2.MICRO_VERSION; >(4) Result: 1 Ok, fine, but I can't use

Re: GTK2 Version

2010-08-31 Thread Lance Dillon
- Original Message > From: "Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum" ><10...@lyskom.lysator.liu.se> > To: pike-devel@lists.lysator.liu.se > Sent: Tue, August 31, 2010 7:50:02 PM > Subject: GTK2 Version > > Are the camel ca

GTK2 Version

2010-08-31 Thread Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum
Are the camel case just redundant copies of the first ones, or do they mean different things?

GTK2 Version

2010-08-31 Thread Lance Dillon
GTK2 version is now available as a constant with the following: Pike v7.8 release 469 running Hilfe v3.5 (Incremental Pike Frontend) > GTK2.GTK_MINOR_VERSION; (1) Result: 0 > GTK2.MAJOR_VERSION; (2) Result: 2 > GTK2.MINOR_VERSION; (3) Result: 20 > GTK2.MICRO_VERSION; (4) Resu