Always using strlen(s); should be fine. The compiler will optimize it out
for a literal string anyway.


On Fri, Apr 18, 2014 at 4:39 PM, Keith Packard <[email protected]> wrote:

> Alan Coopersmith <[email protected]> writes:
>
> > They work, as long as you only ever pass a literal string to them, not a
> > pointer.
>
> Right, but there's no type safety in that.
>
> > Seems like a reasonable simplification in the server - hard to use from
> other
> > modules (libXfont, drivers, etc.) until you're sure you'll only ever be
> used
> > with a server recognizing that.
>
> So, presumably a macro in some convenient header file would still be
> useful for external consumers.
>
> --
> [email protected]
>
> _______________________________________________
> [email protected]: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>



-- 
  Jasper
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to