Revision: 6929
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6929&view=rev
Author:   mdboom
Date:     2009-02-23 17:43:26 +0000 (Mon, 23 Feb 2009)

Log Message:
-----------
Merged revisions 6927-6928 via svnmerge from 
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v0_98_5_maint

........
  r6927 | mdboom | 2009-02-23 12:30:07 -0500 (Mon, 23 Feb 2009) | 2 lines
  
  Add credit to Allen Haldane in comments.
........
  r6928 | mdboom | 2009-02-23 12:38:35 -0500 (Mon, 23 Feb 2009) | 2 lines
  
  C++ standards compliance for use with Sun C++ compiler.  These should be 
equivalent to what was there before on gcc.
........

Modified Paths:
--------------
    trunk/matplotlib/CXX/Extensions.hxx
    trunk/matplotlib/agg24/include/agg_alpha_mask_u8.h
    trunk/matplotlib/src/path_converters.h

Property Changed:
----------------
    trunk/matplotlib/
    trunk/matplotlib/doc/pyplots/README
    trunk/matplotlib/doc/sphinxext/gen_gallery.py
    trunk/matplotlib/doc/sphinxext/gen_rst.py


Property changes on: trunk/matplotlib
___________________________________________________________________
Modified: svnmerge-integrated
   - /branches/v0_91_maint:1-6428 /branches/v0_98_5_maint:1-6925
   + /branches/v0_91_maint:1-6428 /branches/v0_98_5_maint:1-6928
Modified: svn:mergeinfo
   - /branches/v0_91_maint:5753-5771
/branches/v0_98_5_maint:6581,6585,6587,6589-6609,6614,6616,6625,6652,6660-6662,6672-6673,6714-6715,6717-6732,6752-6754,6761-6773,6781,6792,6800,6802,6805,6809,6811,6822,6827,6850,6854,6856,6859,6861-6873,6883-6884,6886,6890-6891,6906-6909,6911-6912,6915-6916,6918,6920-6925
   + /branches/v0_91_maint:5753-5771
/branches/v0_98_5_maint:6581,6585,6587,6589-6609,6614,6616,6625,6652,6660-6662,6672-6673,6714-6715,6717-6732,6752-6754,6761-6773,6781,6792,6800,6802,6805,6809,6811,6822,6827,6850,6854,6856,6859,6861-6873,6883-6884,6886,6890-6891,6906-6909,6911-6912,6915-6916,6918,6920-6925,6927-6928

Modified: trunk/matplotlib/CXX/Extensions.hxx
===================================================================
--- trunk/matplotlib/CXX/Extensions.hxx 2009-02-23 17:38:35 UTC (rev 6928)
+++ trunk/matplotlib/CXX/Extensions.hxx 2009-02-23 17:43:26 UTC (rev 6929)
@@ -203,7 +203,7 @@
     {
         typedef PyObject *(*method_varargs_call_handler_t)( PyObject *_self, 
PyObject *_args );
         typedef PyObject *(*method_keyword_call_handler_t)( PyObject *_self, 
PyObject *_args, PyObject *_dict );
-    };
+    }
 
     template<class T>
     class MethodDefExt : public PyMethodDef

Modified: trunk/matplotlib/agg24/include/agg_alpha_mask_u8.h
===================================================================
--- trunk/matplotlib/agg24/include/agg_alpha_mask_u8.h  2009-02-23 17:38:35 UTC 
(rev 6928)
+++ trunk/matplotlib/agg24/include/agg_alpha_mask_u8.h  2009-02-23 17:43:26 UTC 
(rev 6929)
@@ -2,8 +2,8 @@
 // Anti-Grain Geometry - Version 2.4
 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
 //
-// Permission to copy, use, modify, sell and distribute this software 
-// is granted provided this copyright notice appears in all copies. 
+// Permission to copy, use, modify, sell and distribute this software
+// is granted provided this copyright notice appears in all copies.
 // This software is provided "as is" without express or implied
 // warranty, and with no claim as to its suitability for any purpose.
 //
@@ -30,15 +30,15 @@
     {
         static unsigned calculate(const int8u* p) { return *p; }
     };
-    
 
+
     //=====================================================rgb_to_gray_mask_u8
     template<unsigned R, unsigned G, unsigned B>
     struct rgb_to_gray_mask_u8
     {
-        static unsigned calculate(const int8u* p) 
-        { 
-            return (p[R]*77 + p[G]*150 + p[B]*29) >> 8; 
+        static unsigned calculate(const int8u* p)
+        {
+            return (p[R]*77 + p[G]*150 + p[B]*29) >> 8;
         }
     };
 
@@ -50,7 +50,7 @@
         typedef int8u cover_type;
         typedef alpha_mask_u8<Step, Offset, MaskF> self_type;
         enum cover_scale_e
-        { 
+        {
             cover_shift = 8,
             cover_none  = 0,
             cover_full  = 255
@@ -64,12 +64,12 @@
         MaskF& mask_function() { return m_mask_function; }
         const MaskF& mask_function() const { return m_mask_function; }
 
-        
+
         //--------------------------------------------------------------------
         cover_type pixel(int x, int y) const
         {
-            if(x >= 0 && y >= 0 && 
-               x < (int)m_rbuf->width() && 
+            if(x >= 0 && y >= 0 &&
+               x < (int)m_rbuf->width() &&
                y < (int)m_rbuf->height())
             {
                 return (cover_type)m_mask_function.calculate(
@@ -81,13 +81,13 @@
         //--------------------------------------------------------------------
         cover_type combine_pixel(int x, int y, cover_type val) const
         {
-            if(x >= 0 && y >= 0 && 
-               x < (int)m_rbuf->width() && 
+            if(x >= 0 && y >= 0 &&
+               x < (int)m_rbuf->width() &&
                y < (int)m_rbuf->height())
             {
-                return (cover_type)((cover_full + val * 
+                return (cover_type)((cover_full + val *
                                      m_mask_function.calculate(
-                                        m_rbuf->row_ptr(y) + x * Step + 
Offset)) >> 
+                                        m_rbuf->row_ptr(y) + x * Step + 
Offset)) >>
                                      cover_shift);
             }
             return 0;
@@ -112,7 +112,7 @@
             if(x < 0)
             {
                 count += x;
-                if(count <= 0) 
+                if(count <= 0)
                 {
                     memset(dst, 0, num_pix * sizeof(cover_type));
                     return;
@@ -126,7 +126,7 @@
             {
                 int rest = x + count - xmax - 1;
                 count -= rest;
-                if(count <= 0) 
+                if(count <= 0)
                 {
                     memset(dst, 0, num_pix * sizeof(cover_type));
                     return;
@@ -162,7 +162,7 @@
             if(x < 0)
             {
                 count += x;
-                if(count <= 0) 
+                if(count <= 0)
                 {
                     memset(dst, 0, num_pix * sizeof(cover_type));
                     return;
@@ -176,7 +176,7 @@
             {
                 int rest = x + count - xmax - 1;
                 count -= rest;
-                if(count <= 0) 
+                if(count <= 0)
                 {
                     memset(dst, 0, num_pix * sizeof(cover_type));
                     return;
@@ -187,8 +187,8 @@
             const int8u* mask = m_rbuf->row_ptr(y) + x * Step + Offset;
             do
             {
-                *covers = (cover_type)((cover_full + (*covers) * 
-                                       m_mask_function.calculate(mask)) >> 
+                *covers = (cover_type)((cover_full + (*covers) *
+                                       m_mask_function.calculate(mask)) >>
                                        cover_shift);
                 ++covers;
                 mask += Step;
@@ -214,7 +214,7 @@
             if(y < 0)
             {
                 count += y;
-                if(count <= 0) 
+                if(count <= 0)
                 {
                     memset(dst, 0, num_pix * sizeof(cover_type));
                     return;
@@ -228,7 +228,7 @@
             {
                 int rest = y + count - ymax - 1;
                 count -= rest;
-                if(count <= 0) 
+                if(count <= 0)
                 {
                     memset(dst, 0, num_pix * sizeof(cover_type));
                     return;
@@ -263,7 +263,7 @@
             if(y < 0)
             {
                 count += y;
-                if(count <= 0) 
+                if(count <= 0)
                 {
                     memset(dst, 0, num_pix * sizeof(cover_type));
                     return;
@@ -277,7 +277,7 @@
             {
                 int rest = y + count - ymax - 1;
                 count -= rest;
-                if(count <= 0) 
+                if(count <= 0)
                 {
                     memset(dst, 0, num_pix * sizeof(cover_type));
                     return;
@@ -288,8 +288,8 @@
             const int8u* mask = m_rbuf->row_ptr(y) + x * Step + Offset;
             do
             {
-                *covers = (cover_type)((cover_full + (*covers) * 
-                                       m_mask_function.calculate(mask)) >> 
+                *covers = (cover_type)((cover_full + (*covers) *
+                                       m_mask_function.calculate(mask)) >>
                                        cover_shift);
                 ++covers;
                 mask += m_rbuf->stride();
@@ -302,11 +302,11 @@
         alpha_mask_u8(const self_type&);
         const self_type& operator = (const self_type&);
 
-        rendering_buffer* m_rbuf;
+        agg::rendering_buffer* m_rbuf;
         MaskF             m_mask_function;
     };
-    
 
+
     typedef alpha_mask_u8<1, 0> alpha_mask_gray8;   //----alpha_mask_gray8
 
     typedef alpha_mask_u8<3, 0> alpha_mask_rgb24r;  //----alpha_mask_rgb24r
@@ -354,7 +354,7 @@
         typedef int8u cover_type;
         typedef amask_no_clip_u8<Step, Offset, MaskF> self_type;
         enum cover_scale_e
-        { 
+        {
             cover_shift = 8,
             cover_none  = 0,
             cover_full  = 255
@@ -376,13 +376,13 @@
                                    m_rbuf->row_ptr(y) + x * Step + Offset);
         }
 
-        
+
         //--------------------------------------------------------------------
         cover_type combine_pixel(int x, int y, cover_type val) const
         {
-            return (cover_type)((cover_full + val * 
+            return (cover_type)((cover_full + val *
                                  m_mask_function.calculate(
-                                    m_rbuf->row_ptr(y) + x * Step + Offset)) 
>> 
+                                    m_rbuf->row_ptr(y) + x * Step + Offset)) >>
                                  cover_shift);
         }
 
@@ -407,8 +407,8 @@
             const int8u* mask = m_rbuf->row_ptr(y) + x * Step + Offset;
             do
             {
-                *dst = (cover_type)((cover_full + (*dst) * 
-                                    m_mask_function.calculate(mask)) >> 
+                *dst = (cover_type)((cover_full + (*dst) *
+                                    m_mask_function.calculate(mask)) >>
                                     cover_shift);
                 ++dst;
                 mask += Step;
@@ -436,8 +436,8 @@
             const int8u* mask = m_rbuf->row_ptr(y) + x * Step + Offset;
             do
             {
-                *dst = (cover_type)((cover_full + (*dst) * 
-                                    m_mask_function.calculate(mask)) >> 
+                *dst = (cover_type)((cover_full + (*dst) *
+                                    m_mask_function.calculate(mask)) >>
                                     cover_shift);
                 ++dst;
                 mask += m_rbuf->stride();
@@ -449,11 +449,11 @@
         amask_no_clip_u8(const self_type&);
         const self_type& operator = (const self_type&);
 
-        rendering_buffer* m_rbuf;
+        agg::rendering_buffer* m_rbuf;
         MaskF             m_mask_function;
     };
-    
 
+
     typedef amask_no_clip_u8<1, 0> amask_no_clip_gray8;   
//----amask_no_clip_gray8
 
     typedef amask_no_clip_u8<3, 0> amask_no_clip_rgb24r;  
//----amask_no_clip_rgb24r


Property changes on: trunk/matplotlib/doc/pyplots/README
___________________________________________________________________
Modified: svn:mergeinfo
   - 
/branches/v0_98_5_maint/doc/pyplots/README:6581,6585,6587,6589-6609,6614,6616,6625,6652,6660-6662,6672-6673,6714-6715,6717-6732,6752-6754,6761-6773,6781,6792,6800,6802,6805,6822,6827,6850,6854,6856,6859,6861-6873,6883-6884,6886,6890-6891,6911-6912,6915-6916,6918,6920-6925
   + 
/branches/v0_98_5_maint/doc/pyplots/README:6581,6585,6587,6589-6609,6614,6616,6625,6652,6660-6662,6672-6673,6714-6715,6717-6732,6752-6754,6761-6773,6781,6792,6800,6802,6805,6822,6827,6850,6854,6856,6859,6861-6873,6883-6884,6886,6890-6891,6911-6912,6915-6916,6918,6920-6925,6927-6928


Property changes on: trunk/matplotlib/doc/sphinxext/gen_gallery.py
___________________________________________________________________
Modified: svn:mergeinfo
   - /branches/v0_91_maint/doc/_templates/gen_gallery.py:5753-5771
/branches/v0_98_5_maint/doc/sphinxext/gen_gallery.py:6660-6662,6672-6673,6714-6715,6717-6732,6752-6754,6761-6773,6781,6792,6800,6802,6805,6822,6827,6850,6854,6856,6859,6861-6873,6883-6884,6886,6890-6891,6911-6912,6915-6916,6918,6920-6925
   + /branches/v0_91_maint/doc/_templates/gen_gallery.py:5753-5771
/branches/v0_98_5_maint/doc/sphinxext/gen_gallery.py:6660-6662,6672-6673,6714-6715,6717-6732,6752-6754,6761-6773,6781,6792,6800,6802,6805,6822,6827,6850,6854,6856,6859,6861-6873,6883-6884,6886,6890-6891,6911-6912,6915-6916,6918,6920-6925,6927-6928


Property changes on: trunk/matplotlib/doc/sphinxext/gen_rst.py
___________________________________________________________________
Modified: svn:mergeinfo
   - /branches/v0_91_maint/doc/examples/gen_rst.py:5753-5771
/branches/v0_98_5_maint/doc/sphinxext/gen_rst.py:6714-6715,6717-6732,6752-6754,6761-6773,6781,6792,6800,6802,6805,6822,6827,6850,6854,6856,6859,6861-6873,6883-6884,6886,6890-6891,6911-6912,6915-6916,6918,6920-6925
   + /branches/v0_91_maint/doc/examples/gen_rst.py:5753-5771
/branches/v0_98_5_maint/doc/sphinxext/gen_rst.py:6714-6715,6717-6732,6752-6754,6761-6773,6781,6792,6800,6802,6805,6822,6827,6850,6854,6856,6859,6861-6873,6883-6884,6886,6890-6891,6911-6912,6915-6916,6918,6920-6925,6927-6928

Modified: trunk/matplotlib/src/path_converters.h
===================================================================
--- trunk/matplotlib/src/path_converters.h      2009-02-23 17:38:35 UTC (rev 
6928)
+++ trunk/matplotlib/src/path_converters.h      2009-02-23 17:43:26 UTC (rev 
6929)
@@ -515,15 +515,15 @@
            the last line. Once it gets too big, the lines cannot be
            combined. */
 
-        /* This code was originally written by someone else (John
-           Hunter?) and I have modified to work in-place -- meaning
-           not creating an entirely new path list each time.  In order
-           to do that without too much additional code complexity, it
-           keeps a small queue around so that multiple points can be
-           emitted in a single call, and those points will be popped
-           from the queue in subsequent calls.  The following block
-           will empty the queue before proceeding to the main loop
-           below.  -- Michael Droettboom */
+        /* This code was originally written by Allan Haldane and I
+           have modified to work in-place -- meaning not creating an
+           entirely new path list each time.  In order to do that
+           without too much additional code complexity, it keeps a
+           small queue around so that multiple points can be emitted
+           in a single call, and those points will be popped from the
+           queue in subsequent calls.  The following block will empty
+           the queue before proceeding to the main loop below.
+           -- Michael Droettboom */
 
         if (queue_flush(&cmd, x, y)) {
             return cmd;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to