On 10/ 4/16 07:48 PM, Ashe Goulding wrote:
Is it safe to regard it as const char?

Since it's declared as const char, yes:

#ifndef _Xconst
#define _Xconst const
#endif /* _Xconst */

extern Display *XOpenDisplay(
    _Xconst char*       /* display_name */
);

(The ifdef used to be much more complicated, since libX11 was written before
 all compilers had support for const, but since we no longer support pre-C89
 compilers, it got simplified to this years back.)

--
        -Alan Coopersmith-              alan.coopersm...@oracle.com
         Oracle Solaris Engineering - http://blogs.oracle.com/alanc
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Reply via email to