#26 nl() and nonl() return incorrect values (win32)

closed-fixed
None
5
2005-12-31
2003-03-02
No

In pdcurses.h, the functions nl() and nonl() are defined
as:

#define nl() (SP->autocr = TRUE)
#define nonl() (SP->autocr = FALSE)

Suggest that these be modified to:

#define nl() (SP->autocr = TRUE, OK)
#define nl() (SP->autocr = FALSE, OK)

instead, so that the correct return value is given.

This was tested in the latest PDCurses 2.6 release.

Discussion

  • Mark Hessling

    Mark Hessling - 2003-12-26
    • assigned_to: nobody --> rexx
     
  • Mark Hessling

    Mark Hessling - 2003-12-26
    • status: open --> pending
     
  • Mark Hessling

    Mark Hessling - 2003-12-26

    Logged In: YES
    user_id=86185

    Updated. Will be available in next release.

     
  • William McBrine

    William McBrine - 2005-12-09
    • status: pending --> pending-fixed
     
  • William McBrine

    William McBrine - 2005-12-31
    • status: pending-fixed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks