<div dir="ltr">Always using strlen(s); should be fine. The compiler will optimize it out for a literal string anyway.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 18, 2014 at 4:39 PM, Keith Packard <span dir="ltr"><<a href="mailto:keithp@keithp.com" target="_blank">keithp@keithp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">Alan Coopersmith <<a href="mailto:alan.coopersmith@oracle.com">alan.coopersmith@oracle.com</a>> writes:<br>

<br>
> They work, as long as you only ever pass a literal string to them, not a<br>
> pointer.<br>
<br>
</div>Right, but there's no type safety in that.<br>
<div class=""><br>
> Seems like a reasonable simplification in the server - hard to use from other<br>
> modules (libXfont, drivers, etc.) until you're sure you'll only ever be used<br>
> with a server recognizing that.<br>
<br>
</div>So, presumably a macro in some convenient header file would still be<br>
useful for external consumers.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<a href="mailto:keith.packard@intel.com">keith.packard@intel.com</a><br>
</font></span><br>_______________________________________________<br>
<a href="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</a>: X.Org development<br>
Archives: <a href="http://lists.x.org/archives/xorg-devel" target="_blank">http://lists.x.org/archives/xorg-devel</a><br>
Info: <a href="http://lists.x.org/mailman/listinfo/xorg-devel" target="_blank">http://lists.x.org/mailman/listinfo/xorg-devel</a><br></blockquote></div><br><br clear="all"><br>-- <br>  Jasper<br>
</div>