Index: trunk/src/box.h =================================================================== --- trunk/src/box.h (revision 13325) +++ trunk/src/box.h (revision 13326) @@ -98,7 +98,6 @@ /* to avoid overflow, we calculate centers this way */ #define PCB_BOX_CENTER_X(b) ((b).X1 + ((b).X2 - (b).X1)/2) #define PCB_BOX_CENTER_Y(b) ((b).Y1 + ((b).Y2 - (b).Y1)/2) -/* some useful box utilities. */ #define PCB_BOX_MOVE_LOWLEVEL(b,dx,dy) \ { \ Index: trunk/src/draw.h =================================================================== --- trunk/src/draw.h (revision 13325) +++ trunk/src/draw.h (revision 13326) @@ -30,9 +30,6 @@ #include "config.h" #include "hid.h" -/* --------------------------------------------------------------------------- - * some useful values of our widgets - */ typedef struct { /* holds information about output window */ pcb_hid_gc_t drillGC, /* drill and foreground; */ fgGC, /* changed from some routines */ Index: trunk/src/move.h =================================================================== --- trunk/src/move.h (revision 13325) +++ trunk/src/move.h (revision 13326) @@ -29,9 +29,7 @@ #include "config.h" -/* --------------------------------------------------------------------------- - * some useful transformation macros and constants - */ +/*** Transformation macros and constants ***/ #define PCB_MOVE(xs,ys,deltax,deltay) \ { \ ((xs) += (deltax)); \ Index: trunk/src/rotate.h =================================================================== --- trunk/src/rotate.h (revision 13325) +++ trunk/src/rotate.h (revision 13326) @@ -30,9 +30,7 @@ #include "config.h" #include "global_typedefs.h" -/* --------------------------------------------------------------------------- - * some useful transformation macros and constants - */ +/*** Transformation macros ***/ #define PCB_COORD_ROTATE90(x,y,x0,y0,n) \ do { \ pcb_coord_t dx = (x)-(x0), \ Index: trunk/src_plugins/export_gcode/auxiliary.h =================================================================== --- trunk/src_plugins/export_gcode/auxiliary.h (revision 13325) +++ trunk/src_plugins/export_gcode/auxiliary.h (revision 13326) @@ -43,11 +43,11 @@ } /* ---------------------------------------------------------------------- */ -/* some useful macros. Note: the "mod" macro works correctly for +/* Note: the "mod" function works correctly for negative a. Also note that the test for a>=n, while redundant, speeds up the mod function by 70% in the average case (significant since the program spends about 16% of its time here - or 40% - without the test). The "floordiv" macro returns the largest integer + without the test). The "floordiv" function returns the largest integer <= a/n, and again this works correctly for negative a, as long as a,n are integers and n>0. */