As to #2, the "const" keyword in a function's argument list just means that the function or method won't modify the argument, not that it's a compile-time constant. So seeing "int somefunc(const char *string)" just means that somefunc() is promising not to modify its "string" argument. Unlike "const int answer = 42;" which *is* a compile-time constant.
<br><br><div class="gmail_quote">On Jan 8, 2008 1:59 PM, Indy Sams &lt;<a href="mailto:indy@driftsolutions.com">indy@driftsolutions.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Alain,<br><br> &nbsp; &nbsp; &nbsp;I don&#39;t know about #1, but for #2 just use (const char<br> &nbsp; &nbsp; &nbsp;*)yourLanguageVar (if your language doesn&#39;t do it for you in the<br> &nbsp; &nbsp; &nbsp;first place, typically char * can automatically be upgrade to
<br> &nbsp; &nbsp; &nbsp;const char * without any casting in C++)<br><br>Tuesday, January 8, 2008, 3:03:32 PM, you wrote:<br><br>AB&gt; Hello<br><br>AB&gt; I m member of Lincity-NG team, and we use physfs 1.0<br><br>AB&gt; 1/ We had problem on windows xp, with PHYSFS_getLastModTime
<br>AB&gt; it seemed to return something else than the expected date.<br>AB&gt; I don&#39;t have windows myself, so i cannot tell more, but i can ask<br>AB&gt; for details if needed.<br><br>AB&gt; 2/ PHYSFS_enumerateFiles() requires a const char argument, but
<br>AB&gt; we would like to test only the directory corresponding to the<br>AB&gt; language used, which is known at runtime, not at compile time.<br>AB&gt; I wonder how i could solve this without enumerating all languages
<br>AB&gt; (and they are still growing...:)<br><br>AB&gt; Thanks for your great job, and happy new year.<br>AB&gt; Alain<br><br><br>AB&gt; ---<br>AB&gt; To unsubscribe, send a blank email to <a href="mailto:physfs-unsubscribe@icculus.org">
physfs-unsubscribe@icculus.org</a><br>AB&gt; Mailing list archives: <a href="http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?4" target="_blank">http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?4</a><br><br><br><br>Best regards,<br>&nbsp;Indy Sams
<br>&nbsp;mailto:<a href="mailto:indy@driftsolutions.com">indy@driftsolutions.com</a><br><br>&nbsp;P.S. This is what part of the alphabet would look like if Q &amp; R were eliminated.<br><div><div></div><div class="Wj3C7c"><br><br>
---<br>To unsubscribe, send a blank email to <a href="mailto:physfs-unsubscribe@icculus.org">physfs-unsubscribe@icculus.org</a><br>Mailing list archives: <a href="http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?4" target="_blank">
http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?4</a><br><br><br></div></div></blockquote></div><br>