Menu

#476 XmStringCreateLtoR has been deprecated.

v1.0_(example)
closed
nobody
1
2023-07-08
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.

     
  • Gerald J. Stueve

    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)

     
  • Tom Russo

    Tom Russo - 2023-07-08
    • status: open --> closed
    • Group: --> v1.0_(example)
     
  • Tom Russo

    Tom Russo - 2023-07-08

    The Xastir project no longer uses sourceforge for issue tracking and I am closing all open issues (all of which are very old).

    If this issue is still important, please open a new one on https://github.com/Xastir/Xastir.

     

Log in to post a comment.