#472 Replacing deprecated functions

bugfix
closed-accepted
puredata (385)
5
2012-12-16
2012-11-15
Anonymous
No

vexp_fun.c currently uses the old BSD-style functions drem and finite. These functions have been removed from XCode 4.4 and later, so that the expr~ family of externals fails to compile now. This patch replaces drem with remainder and finite with isfinite, which should work everywhere.

Discussion

  • Nobody/Anonymous

    vexp_fun.c patch

     
  • Hans-Christoph Steiner

    • labels: 680703 --> puredata
    • assigned_to: nobody --> millerpuckette
     
  • Hans-Christoph Steiner

    Makes sense to me. remainder() is the C99 replacement for drem(), and isfinite() is the C99 replacement for finite(). C99 marks drem() and finite() as deprecated.

     
  • Miller Puckette

    Miller Puckette - 2012-12-04
    • status: open --> open-accepted
     
  • Miller Puckette

    Miller Puckette - 2012-12-04

    accepted for 0.44

     
  • Miller Puckette

    Miller Puckette - 2012-12-15
    • status: open-accepted --> pending-accepted
     
  • IOhannes m zmölnig

    • status: pending-accepted --> closed-accepted
     


Anonymous

Cancel  Add attachments