[poppler] poppler and TeX Live -- request for a few modifications
William Bader
williambader at hotmail.com
Tue Mar 6 14:06:01 PST 2012
Peter,
This is an example of tokenizing.
$ cat testtoken.c
#include <stdio.h>
#define MY_VERSION 10.20.30
#define TOKENIZE(token) #token
#define STRINGIZE(token) TOKENIZE(token)
int main()
{
printf("Tokenized version string '%s'\n", STRINGIZE(MY_VERSION));
return 0;
}
$ cc -Wall testtoken.c
$ a.out
Tokenized version string '10.20.30'
$
> Date: Tue, 6 Mar 2012 09:03:05 +0100
> From: peb at mppmu.mpg.de
> To: aacid at kde.org
> CC: poppler at lists.freedesktop.org
> Subject: Re: [poppler] poppler and TeX Live -- request for a few modifications
>
> On Sun, 4 Mar 2012, Albert Astals Cid wrote:
>
> >> I just see that poppler-config.h in the brand new 0.19.0 now defines
> >> POPPLER_VERSION. Thanks. This is, however, #define'd as 0.19.0 and not as
> >> "0.19.0". Is this a mistake or intentional?
> >
> > This is intentional.
> >
> >> I don't see any use for that
> >> other than immediate stringification,
> >
> > People can use it for ifdefs, tokenizing, etc
>
> Hi Albert,
>
> I see the use in ifdefs but don't understand the tokenizing, etc. Could you
> give an example?
>
> >> PLEASE FIXIT
> >
> > PLEASE DON'T SHOUT.
>
> Sorry.
>
> Regards
> Peter Breitenlohner <peb at mppmu.mpg.de>
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20120306/d5c931fd/attachment.htm>
More information about the poppler
mailing list