#74 make versions into macros for easier use

wishlist
closed-accepted
puredata (385)
7
2006-08-14
2006-01-29
No

This patch makes PD_BUGFIX_VERSION and PD_TEST_VERSION
macros in m_pd.h and builds pd_version in s_main.s
using those macros.

Having all four parts of the version defined as macros
will make it much easier to use the version numbers,
like for example, a [version] object or [;pd get
version( message.

Discussion

  • Hans-Christoph Steiner

    • priority: 5 --> 7
     
  • Hans-Christoph Steiner

    Logged In: YES
    user_id=27104

    the original patch did not put the version into
    doc/1.manual/1.introduction.txt, which is used as the "About
    Pd" page. The second patch fixes that, and moved the
    PD_VERSION replacement to the "make install" target rather
    than happening dynamically in menu_opentext(). This means
    that it is no longer necessary to send the pdgui the
    version, since that's the only place that it was used. So
    pd_myversion and related elements are removed from u_main.tk
    in this patch.

    This stuff is included in Pd-extended and makes the version
    numbers MUCH easier to handle. I've spent quite a bit of
    time figuring out regexps to parse out the ever changing
    format of pd_version, so this fix should make things much
    easier for anyone who wants to dynamically use the pd
    version number.

     
  • Miller Puckette

    Miller Puckette - 2006-08-14

    Logged In: YES
    user_id=313747

    modified to avoid the effete asprintf() call, then took for 0.40

     
  • IOhannes m zmölnig

    • status: open --> closed-accepted
     


Anonymous

Cancel  Add attachments





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

Sign up for the SourceForge newsletter:





No, thanks