[PD-cvs] packages/patches complete_version_defines-0.39.2.patch, 1.1, 1.2

Hans-Christoph Steiner eighthave at users.sourceforge.net
Mon Mar 13 22:34:51 CET 2006


Update of /cvsroot/pure-data/packages/patches
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3623/patches

Modified Files:
	complete_version_defines-0.39.2.patch 
Log Message:
changed to use sprintf since asprintf doesn't exist on Windows

Index: complete_version_defines-0.39.2.patch
===================================================================
RCS file: /cvsroot/pure-data/packages/patches/complete_version_defines-0.39.2.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** complete_version_defines-0.39.2.patch	22 Feb 2006 06:13:49 -0000	1.1
--- complete_version_defines-0.39.2.patch	13 Mar 2006 21:34:48 -0000	1.2
***************
*** 10,14 ****
   * WARRANTIES, see the file, "LICENSE.txt," in this distribution.  */
   
! -char pd_version[] = "Pd version 0.39-2\n";
  -char pd_compiletime[] = __TIME__;
  -char pd_compiledate[] = __DATE__;
--- 10,14 ----
   * WARRANTIES, see the file, "LICENSE.txt," in this distribution.  */
   
! -char pd_version[] = "Pd version 0.39-2\n"
  -char pd_compiletime[] = __TIME__;
  -char pd_compiledate[] = __DATE__;
***************
*** 21,25 ****
   #endif
   
! +char *pd_version;
  +char pd_compiletime[] = __TIME__;
  +char pd_compiledate[] = __DATE__;
--- 21,25 ----
   #endif
   
! +char pd_version[256];
  +char pd_compiletime[] = __TIME__;
  +char pd_compiledate[] = __DATE__;
***************
*** 33,37 ****
       sys_afterargparse();                    /* post-argparse settings */
  +	/* build version string from defines in m_pd.h */
! +	asprintf(&pd_version, "Pd version %d.%d-%d%s\n",PD_MAJOR_VERSION,
  +			PD_MINOR_VERSION,PD_BUGFIX_VERSION,PD_TEST_VERSION); 
       if (sys_verbose || sys_version) fprintf(stderr, "%scompiled %s %s\n",
--- 33,37 ----
       sys_afterargparse();                    /* post-argparse settings */
  +	/* build version string from defines in m_pd.h */
! +	sprintf(pd_version, "Pd version %d.%d-%d%s\n",PD_MAJOR_VERSION,
  +			PD_MINOR_VERSION,PD_BUGFIX_VERSION,PD_TEST_VERSION); 
       if (sys_verbose || sys_version) fprintf(stderr, "%scompiled %s %s\n",





More information about the Pd-cvs mailing list