Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#476 XmStringCreateLtoR has been deprecated.

open
nobody
1
2012-09-15
2006-07-12
Dan Brown
No

Per the linux man page, "This function is obsolete and
exists for compatibility with previous releases. It
is replaced by XmStringGenerate."

Xastir uses this in a bunch of different places.

Discussion

  • Curt Mills
    Curt Mills
    2006-07-12

    Logged In: YES
    user_id=448632

    XmStringGenerate is available in Motif 2.0 and later.
    Does anything run an earlier Motif these days? If not, we
    can switch. If so, we'll have to leave it as-is or check
    for the availability of the XmStringGenerate function in
    configure and do #ifdef's in the code based on that.

     
  • Curt Mills
    Curt Mills
    2006-07-12

    Logged In: YES
    user_id=448632

    We could change configure.ac to add:

    AC_CHECK_LIB([Xm], [XmStringGenerate])

    then decide which to use in the code, or we could just
    leave the code as-is until/unless XmStringCreateLtoR is
    removed from Motif, at which point we can switch to
    XmStringGenerate completely.

     
  • Logged In: YES
    user_id=15729
    Originator: NO

    wx_gui.c has an implementation of XmStringGenerate that was introduced in revision 1.53 in 2007. As no one has complained, it would suggest that we could convert everyone over if the need arises. A macro could be added to make the change immediately if XmStringCreateLtoR disappeared.

    define XmCreateLtoR(a, b) XmStringGenerate(a, b, XmCHARSET_TEXT, NULL)