[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: f_basic.c



  User: ahvezda 
  Date: 07/02/10 16:25:34

  Modified:    .        f_basic.c o_arc_basic.c
  Log:
  Fixed a bunch of compiler warnings.  Updated some of the man pages a little.
  
  
  
  
  Revision  Changes    Path
  1.20      +1 -0      eda/geda/gaf/libgeda/src/f_basic.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: f_basic.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/f_basic.c,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -b -r1.19 -r1.20
  --- f_basic.c	15 Jul 2006 17:00:51 -0000	1.19
  +++ f_basic.c	10 Feb 2007 21:25:34 -0000	1.20
  @@ -25,6 +25,7 @@
   #endif
   
   #include <sys/param.h>
  +#include <limits.h>
   #include <stdlib.h>
   #include <time.h>
   #include <sys/types.h>
  
  
  
  1.33      +7 -7      eda/geda/gaf/libgeda/src/o_arc_basic.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_arc_basic.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/o_arc_basic.c,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -b -r1.32 -r1.33
  --- o_arc_basic.c	17 Jan 2007 00:08:53 -0000	1.32
  +++ o_arc_basic.c	10 Feb 2007 21:25:34 -0000	1.33
  @@ -1582,25 +1582,25 @@
       color = image_black;
     }
   
  -  // libgd angles are in opposite sense to gschem's internal angles
  -  // Also, gschem's "end_angle" is actually the sweep of the arc, not absolute angle
  +  /* libgd angles are in opposite sense to gschem's internal angles */
  +  /* Also, gschem's "end_angle" is actually the sweep of the arc, not absolute angle */
   
  -  // Intialise {start|end}_angle to the start of gschem's sweep
  +  /* Intialise {start|end}_angle to the start of gschem's sweep */
     start_angle = -o_current->arc->start_angle;
     end_angle   = -o_current->arc->start_angle;
   
  -  // libgd always sweeps arcs clockwise so we either update
  -  // the start_angle, or end_angle as appropriate
  +  /* libgd always sweeps arcs clockwise so we either update */
  +  /* the start_angle, or end_angle as appropriate */
     if ( o_current->arc->end_angle > 0 )
       start_angle -= o_current->arc->end_angle;
     else
       end_angle -= o_current->arc->end_angle;
   
  -  // Ensure each angle is within 0-359. Negative angles make libgd blow up.
  +  /* Ensure each angle is within 0-359. Negative angles make libgd blow up. */
     start_angle = ( start_angle < 0 ) ? 360 - ( (-start_angle) % 360 ) : start_angle % 360;
     end_angle =   ( end_angle   < 0 ) ? 360 - ( (-end_angle  ) % 360 ) : end_angle   % 360;
   
  -  // libgd docs state that end angle should always be larger than start_angle
  +  /* libgd docs state that end angle should always be larger than start_angle */
     if (end_angle < start_angle)
       end_angle += 360;
   
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs