<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Peter,<br>This is an example of tokenizing.<br>$ cat testtoken.c<br>#include <stdio.h><br>#define MY_VERSION 10.20.30<br>#define TOKENIZE(token) #token<br>#define STRINGIZE(token) TOKENIZE(token)<br>int main()<br>{<br> printf("Tokenized version string '%s'\n", STRINGIZE(MY_VERSION));<br> return 0;<br>}<br>$ cc -Wall testtoken.c<br>$ a.out<br>Tokenized version string '10.20.30'<br>$<br><br><div><div id="SkyDrivePlaceholder"></div>> Date: Tue, 6 Mar 2012 09:03:05 +0100<br>> From: peb@mppmu.mpg.de<br>> To: aacid@kde.org<br>> CC: poppler@lists.freedesktop.org<br>> Subject: Re: [poppler] poppler and TeX Live -- request for a few modifications<br>> <br>> On Sun, 4 Mar 2012, Albert Astals Cid wrote:<br>> <br>> >> I just see that poppler-config.h in the brand new 0.19.0 now defines<br>> >> POPPLER_VERSION. Thanks. This is, however, #define'd as 0.19.0 and not as<br>> >> "0.19.0". Is this a mistake or intentional?<br>> ><br>> > This is intentional.<br>> ><br>> >> I don't see any use for that<br>> >> other than immediate stringification,<br>> ><br>> > People can use it for ifdefs, tokenizing, etc<br>> <br>> Hi Albert,<br>> <br>> I see the use in ifdefs but don't understand the tokenizing, etc. Could you<br>> give an example?<br>> <br>> >> PLEASE FIXIT<br>> ><br>> > PLEASE DON'T SHOUT.<br>> <br>> Sorry.<br>> <br>> Regards<br>> Peter Breitenlohner <peb@mppmu.mpg.de><br>> _______________________________________________<br>> poppler mailing list<br>> poppler@lists.freedesktop.org<br>> http://lists.freedesktop.org/mailman/listinfo/poppler<br></div>                                            </div></body>
</html>