Hello community, here is the log from the commit of package dpic for openSUSE:Factory checked in at 2013-10-06 14:25:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dpic (Old) and /work/SRC/openSUSE:Factory/.dpic.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dpic" Changes: -------- --- /work/SRC/openSUSE:Factory/dpic/dpic.changes 2013-03-12 06:54:02.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.dpic.new/dpic.changes 2013-10-06 14:25:18.000000000 +0200 @@ -1,0 +2,6 @@ +Sat Oct 5 16:50:13 UTC 2013 - [email protected] + +- Update to version 2013.09.30 + * Better portability of the random() function + +------------------------------------------------------------------- @@ -8 +14 @@ -Sat Nov 24 21:47:38 UTC 2012 - [email protected] +Sat Nov 24 21:47:38 UTC 2012 - [email protected] @@ -20 +26 @@ -Thu Aug 16 06:44:35 UTC 2012 - [email protected] +Thu Aug 16 06:44:35 UTC 2012 - [email protected] @@ -26 +32 @@ -Mon Jul 16 18:55:51 UTC 2012 - [email protected] +Mon Jul 16 18:55:51 UTC 2012 - [email protected] @@ -32 +38 @@ -Sun Jun 24 19:58:29 UTC 2012 - [email protected] +Sun Jun 24 19:58:29 UTC 2012 - [email protected] @@ -37 +43 @@ -Sat Jun 2 18:35:11 UTC 2012 - [email protected] +Sat Jun 2 18:35:11 UTC 2012 - [email protected] @@ -42 +48 @@ -Fri Feb 17 16:01:54 UTC 2012 - [email protected] +Fri Feb 17 16:01:54 UTC 2012 - [email protected] @@ -48 +54 @@ -Thu Dec 8 13:18:46 UTC 2011 - [email protected] +Thu Dec 8 13:18:46 UTC 2011 - [email protected] @@ -59 +65 @@ -Fri Sep 23 18:01:34 UTC 2011 - [email protected] +Fri Sep 23 18:01:34 UTC 2011 - [email protected] @@ -71 +77 @@ -Thu Jun 16 17:41:05 UTC 2011 - [email protected] +Thu Jun 16 17:41:05 UTC 2011 - [email protected] @@ -77 +83 @@ -Fri Mar 18 13:51:14 UTC 2011 - [email protected] +Fri Mar 18 13:51:14 UTC 2011 - [email protected] @@ -83 +89 @@ -Sat Jan 1 10:29:52 UTC 2011 - [email protected] +Sat Jan 1 10:29:52 UTC 2011 - [email protected] @@ -89 +95 @@ -Thu Dec 9 17:56:18 UTC 2010 - [email protected] +Thu Dec 9 17:56:18 UTC 2010 - [email protected] Old: ---- dpic-2013.03.10.tar.gz New: ---- dpic-2013.09.30.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dpic.spec ++++++ --- /var/tmp/diff_new_pack.fcBT1D/_old 2013-10-06 14:25:19.000000000 +0200 +++ /var/tmp/diff_new_pack.fcBT1D/_new 2013-10-06 14:25:19.000000000 +0200 @@ -17,7 +17,7 @@ Name: dpic -Version: 2013.03.10 +Version: 2013.09.30 Release: 0 Summary: Pic language processor License: BSD-2-Clause and CC-BY-3.0 ++++++ dpic-2013.03.10.tar.gz -> dpic-2013.09.30.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dpic/CHANGES new/dpic/CHANGES --- old/dpic/CHANGES 2013-03-10 18:45:50.000000000 +0100 +++ new/dpic/CHANGES 2013-09-30 19:12:00.000000000 +0200 @@ -2,6 +2,7 @@ those shown correspond to changes (usually of documentation) not involving functionality. +2013 09 30 Better portability of the random() function 2013 03 09 Minor tweak to svg output 2013 02 27 dpic returns EXIT_FAILURE on fatal errors or (errcount > 0); warnings are not counted. Files old/dpic/doc/dpicdoc.pdf and new/dpic/doc/dpicdoc.pdf differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dpic/doc/quick.pic new/dpic/doc/quick.pic --- old/dpic/doc/quick.pic 2013-03-10 18:45:51.000000000 +0100 +++ new/dpic/doc/quick.pic 2013-09-30 19:12:00.000000000 +0200 @@ -1,7 +1,7 @@ .PS # Pic input begins with .PS -# cct_init Version 7.4.5: PSTricks m4 macro settings used. +# cct_init Version 7.7.1: PSTricks m4 macro settings. - # gen_init Version 7.4.5: PSTricks m4 macro settings used. + # gen_init Version 7.7.1: PSTricks m4 macro settings. define rpoint__ { @@ -39,7 +39,8 @@ move to Here+(((0.25*linewid))*(cos(rp_ang)),((0.25*linewid))*(sin(rp_ang))) { circle rad (0.25*linewid) at Here } - line from Here+(((0.25*linewid))*(cos(rp_ang)),((0.25*linewid))*(sin(rp_ang))) to Here+((rp_len/2)*(cos(rp_ang)),(rp_len/2)*(sin(rp_ang)))} + line from Here+(((0.25*linewid))*(cos(rp_ang)),((0.25*linewid))*(sin(rp_ang))) \ + to Here+((rp_len/2)*(cos(rp_ang)),(rp_len/2)*(sin(rp_ang)))} { [box invis wid (0.25*linewid)*2 ht (0.25*linewid)*2] at Here+((rp_len/2)*(cos(rp_ang)),(rp_len/2)*(sin(rp_ang))) } line to Here+((rp_len)*(cos(rp_ang)),(rp_len)*(sin(rp_ang))) invis ; {"$ -$" \ at last [].s rjust below }; {"$ v_s$" \ @@ -61,7 +62,8 @@ then to M4_xyO+((linewid/6/4)*(cos(rp_ang))+((linewid/6/4)*((-2)))*((-sin(rp_ang))),(linewid/6/4)*(sin(rp_ang))+((linewid/6/4)*((-2)))*(cos(rp_ang))) \ then to M4_xyO+(((linewid/6/4)*(3))*(cos(rp_ang))+((linewid/6/4)*((2)))*((-sin(rp_ang))),((linewid/6/4)*(3))*(sin(rp_ang))+((linewid/6/4)*((2)))*(cos(rp_ang))) \ then to M4_xyO+(((linewid/6/4)*(5))*(cos(rp_ang))+((linewid/6/4)*((-2)))*((-sin(rp_ang))),((linewid/6/4)*(5))*(sin(rp_ang))+((linewid/6/4)*((-2)))*(cos(rp_ang))) \ - then to M4_xyO+(((linewid/6/4)*(6))*(cos(rp_ang)),((linewid/6/4)*(6))*(sin(rp_ang))) then to last line.end + then to M4_xyO+(((linewid/6/4)*(6))*(cos(rp_ang)),((linewid/6/4)*(6))*(sin(rp_ang))) \ + then to last line.end [box invis ht linewid/6/4*2*2 wid linewid/6/4*6*2] at 2nd last line.c } @@ -77,9 +79,11 @@ { line to Here+((rp_len/2-linewid/3*0.3/2)*(cos(rp_ang)),(rp_len/2-linewid/3*0.3/2)*(sin(rp_ang))) - {line from Here+((-linewid/3/2)*((-sin(rp_ang))),(-linewid/3/2)*(cos(rp_ang))) to Here+((linewid/3/2)*((-sin(rp_ang))),(linewid/3/2)*(cos(rp_ang)))} + {line from Here+((-linewid/3/2)*((-sin(rp_ang))),(-linewid/3/2)*(cos(rp_ang))) \ + to Here+((linewid/3/2)*((-sin(rp_ang))),(linewid/3/2)*(cos(rp_ang)))} move to Here+((linewid/3*0.3)*(cos(rp_ang)),(linewid/3*0.3)*(sin(rp_ang))) - {line from Here+((-linewid/3/2)*((-sin(rp_ang))),(-linewid/3/2)*(cos(rp_ang))) to Here+((linewid/3/2)*((-sin(rp_ang))),(linewid/3/2)*(cos(rp_ang)))} + {line from Here+((-linewid/3/2)*((-sin(rp_ang))),(-linewid/3/2)*(cos(rp_ang))) \ + to Here+((linewid/3/2)*((-sin(rp_ang))),(linewid/3/2)*(cos(rp_ang)))} line to Here+((rp_len/2-linewid/3*0.3/2)*(cos(rp_ang)),(rp_len/2-linewid/3*0.3/2)*(sin(rp_ang))) } {[box invis wid linewid/3 ht linewid/3*0.3 ] at Here+((rp_len/2)*(cos(rp_ang)),(rp_len/2)*(sin(rp_ang)))} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dpic/dpic.c new/dpic/dpic.c --- old/dpic/dpic.c 2013-03-10 18:45:50.000000000 +0100 +++ new/dpic/dpic.c 2013-09-30 19:12:00.000000000 +0200 @@ -57,7 +57,7 @@ /* Some PC versions of p2c crash on Pascal const declarations at low levels. All consts should be in dp0.x */ -#define Version "dpic version 2013.03.10" +#define Version "dpic version 2013.09.30" /* UMBX distmax = 1E25; XBMU */ @@ -71,6 +71,13 @@ #define SVGPX 90 /* SVG pixels per inch */ /*UGH maxint = 2147483647; HGU*/ + +#define randmax SHORT_MAX +#if defined RAND_MAX +#undef randmax +#define randmax RAND_MAX +#endif + #define HASHLIM 7 /* Hash array len for variable names */ /* Parser constants */ @@ -1555,24 +1562,28 @@ /*H name H*/ /*G; asmname G*/ /*GH 'random' HG*/ -#if defined(__MSDOS__) || defined(__CYGWIN32__) || defined(RAND) +#if defined __MSDOS__ || defined __CYGWIN__ || defined RAND #undef random #define random() rand() #else extern long random(void); +#if !defined RAND_MAX +#undef randmax +#define randmax LONG_MAX +#endif #endif /*H name H*/ /*G; asmname G*/ /*GH 'srandom' HG*/ -#if defined(_POSIX_SOURCE) || defined(sun) +#if defined _POSIX_SOURCE || defined sun extern void srandom(unsigned s); -#elif defined(__MSDOS__) || defined(__CYGWIN32__) || defined(RAND) +#elif defined __MSDOS__ || defined __CYGWIN32__ || defined RAND extern void srand(unsigned s); #define srandom(x) srand((unsigned)(x)) -#elif defined(mips) -#elif defined(__APPLE__) -#elif defined(__OpenBSD__) +#elif defined mips +#elif defined __APPLE__ +#elif defined __OpenBSD__ extern void srand(unsigned int s); #else extern void srandom(int s); @@ -7305,13 +7316,13 @@ /* | "rand" "(" ")" random number between 0 and 1 */ case primary8: - WITH->xval = (double)random() / LONG_MAX; + WITH->xval = (double)random() / randmax; break; /* | "rand" "(" expression ")" */ case primary9: srandom((long)floor(attstack[newp + 2].xval + 0.5)); - WITH->xval = (double)random() / LONG_MAX; + WITH->xval = (double)random() / randmax; break; /* | "<func1>" "(" expression ")" */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dpic/p2c.h new/dpic/p2c.h --- old/dpic/p2c.h 2013-03-10 18:45:50.000000000 +0100 +++ new/dpic/p2c.h 2013-09-30 19:12:00.000000000 +0200 @@ -237,7 +237,7 @@ #endif typedef Signed char schar; -#if (!defined(_POSIX_SOURCE)) || defined(linux) +#if (!defined _POSIX_SOURCE) || defined linux typedef unsigned char uchar; #endif typedef unsigned char boolean; -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
