Index: trunk/src/board.c =================================================================== --- trunk/src/board.c (revision 13665) +++ trunk/src/board.c (revision 13666) @@ -109,7 +109,7 @@ pcb_font_create_default(ptr); - return (ptr); + return ptr; } #include "defpcb_internal.c" Index: trunk/src/buffer.c =================================================================== --- trunk/src/buffer.c (revision 13665) +++ trunk/src/buffer.c (revision 13666) @@ -708,7 +708,7 @@ printf(" .... Leaving CopyPastebufferToLayout.\n"); #endif - return (changed); + return changed; } void pcb_buffer_set_number(int Number) Index: trunk/src/change.c =================================================================== --- trunk/src/change.c (revision 13665) +++ trunk/src/change.c (revision 13666) @@ -463,7 +463,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* ---------------------------------------------------------------------- @@ -485,7 +485,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* ---------------------------------------------------------------------- @@ -510,7 +510,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* -------------------------------------------------------------------------- @@ -532,7 +532,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* ---------------------------------------------------------------------- @@ -551,7 +551,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* ---------------------------------------------------------------------- @@ -570,7 +570,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* ---------------------------------------------------------------------- @@ -589,7 +589,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* ---------------------------------------------------------------------- @@ -608,7 +608,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } #if 0 @@ -628,7 +628,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* ---------------------------------------------------------------------- @@ -647,7 +647,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } #endif @@ -667,7 +667,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* ---------------------------------------------------------------------- @@ -689,7 +689,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* ---------------------------------------------------------------------- @@ -711,7 +711,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } @@ -731,7 +731,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* ---------------------------------------------------------------------- @@ -750,7 +750,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* ---------------------------------------------------------------------- @@ -769,7 +769,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* ---------------------------------------------------------------------- @@ -788,7 +788,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* ---------------------------------------------------------------------- @@ -807,7 +807,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* ---------------------------------------------------------------------- @@ -829,7 +829,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* ---------------------------------------------------------------------- @@ -850,7 +850,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } @@ -873,7 +873,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* --------------------------------------------------------------------------- @@ -895,7 +895,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* --------------------------------------------------------------------------- @@ -917,7 +917,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* --------------------------------------------------------------------------- @@ -939,7 +939,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } @@ -965,7 +965,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* --------------------------------------------------------------------------- @@ -987,7 +987,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* --------------------------------------------------------------------------- @@ -1010,7 +1010,7 @@ if (incundo) pcb_undo_inc_serial(); } - return (change); + return change; } /* --------------------------------------------------------------------------- @@ -1032,7 +1032,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (change); + return change; } /* --------------------------------------------------------------------------- @@ -1339,7 +1339,7 @@ pcb_undo_inc_serial(); } pcb_draw(); - return (Ptr3); + return Ptr3; } return NULL; } Index: trunk/src/copy.c =================================================================== --- trunk/src/copy.c (revision 13665) +++ trunk/src/copy.c (revision 13666) @@ -71,5 +71,5 @@ /* the subroutines add the objects to the undo-list */ ptr = pcb_object_operation(&CopyFunctions, &ctx, Type, Ptr1, Ptr2, Ptr3); pcb_undo_inc_serial(); - return (ptr); + return ptr; } Index: trunk/src/font.c =================================================================== --- trunk/src/font.c (revision 13665) +++ trunk/src/font.c (revision 13666) @@ -218,7 +218,7 @@ line->Point2.X = X2; line->Point2.Y = Y2; line->Thickness = Thickness; - return (line); + return line; } pcb_poly_t *pcb_font_new_poly_in_sym(pcb_symbol_t *Symbol, int num_points) Index: trunk/src/insert.c =================================================================== --- trunk/src/insert.c (revision 13665) +++ trunk/src/insert.c (revision 13666) @@ -75,7 +75,7 @@ ptr = pcb_object_operation(&InsertFunctions, &ctx, Type, Ptr1, Ptr2, Ptr3); if (ptr != NULL) pcb_undo_inc_serial(); - return (ptr); + return ptr; } pcb_point_t *pcb_adjust_insert_point(void) Index: trunk/src/layer_vis.c =================================================================== --- trunk/src/layer_vis.c (revision 13665) +++ trunk/src/layer_vis.c (revision 13666) @@ -125,7 +125,7 @@ done:; /* update control panel and exit */ pcb_event(PCB_EVENT_LAYERVIS_CHANGED, NULL); - return (changed); + return changed; } /* --------------------------------------------------------------------------- Index: trunk/src/library.c =================================================================== --- trunk/src/library.c (revision 13665) +++ trunk/src/library.c (revision 13666) @@ -127,7 +127,7 @@ menu->Style = NULL; else menu->Style = pcb_strdup(style); - return (menu); + return menu; } /* --------------------------------------------------------------------------- @@ -140,5 +140,5 @@ entry->ListEntry = pcb_strdup_null(conn); entry->ListEntry_dontfree = 0; - return (entry); + return entry; } Index: trunk/src/main.c =================================================================== --- trunk/src/main.c (revision 13665) +++ trunk/src/main.c (revision 13666) @@ -602,5 +602,5 @@ pcb_main_uninit(); - return (0); + return 0; } Index: trunk/src/move.c =================================================================== --- trunk/src/move.c (revision 13665) +++ trunk/src/move.c (revision 13666) @@ -237,7 +237,7 @@ pcb_draw_inhibit_dec(); pcb_draw(); - return (ptr2); + return ptr2; } void *pcb_move_obj_to_layer(int Type, void *Ptr1, void *Ptr2, void *Ptr3, pcb_layer_t *Target, pcb_bool enmasse) @@ -265,5 +265,5 @@ changed = pcb_selected_operation(PCB, PCB->Data, &MoveToLayerFunctions, &ctx, pcb_true, PCB_TYPEMASK_ALL); /* passing pcb_true to above operation causes Undoserial to auto-increment */ - return (changed); + return changed; } Index: trunk/src/netlist_act.c =================================================================== --- trunk/src/netlist_act.c (revision 13665) +++ trunk/src/netlist_act.c (revision 13666) @@ -310,7 +310,7 @@ if (re_sei_errno(regex) != 0) { pcb_message(PCB_MSG_ERROR, _("regexp error: %s\n"), re_error_str(re_sei_errno(regex))); re_sei_free(regex); - return (1); + return 1; } } } Index: trunk/src/obj_arc.c =================================================================== --- trunk/src/obj_arc.c (revision 13665) +++ trunk/src/obj_arc.c (revision 13666) @@ -211,7 +211,7 @@ PCB_END_LOOP; Arc = pcb_arc_alloc(Layer); if (!Arc) - return (Arc); + return Arc; Arc->ID = pcb_create_ID_get(); Arc->Flags = Flags; @@ -224,7 +224,7 @@ Arc->StartAngle = sa; Arc->Delta = dir; pcb_add_arc_on_layer(Layer, Arc); - return (Arc); + return Arc; } static pcb_arc_t *pcb_arc_copy_meta(pcb_arc_t *dst, pcb_arc_t *src) @@ -346,7 +346,7 @@ PCB_SET_PARENT(arc, layer, lay); - return (arc); + return arc; } /* changes the size of an arc */ @@ -366,7 +366,7 @@ pcb_r_insert_entry(Layer->arc_tree, (pcb_box_t *) Arc, 0); pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_ARC, Layer, Arc); pcb_arc_invalidate_draw(Layer, Arc); - return (Arc); + return Arc; } return NULL; } @@ -395,7 +395,7 @@ pcb_r_insert_entry(Layer->arc_tree, (pcb_box_t *) Arc, 0); pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_ARC, Layer, Arc); pcb_arc_invalidate_draw(Layer, Arc); - return (Arc); + return Arc; } return NULL; } @@ -432,7 +432,7 @@ pcb_r_insert_entry(Layer->arc_tree, (pcb_box_t *) Arc, 0); pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_ARC, Layer, Arc); pcb_arc_invalidate_draw(Layer, Arc); - return (Arc); + return Arc; } return NULL; } @@ -470,7 +470,7 @@ pcb_r_insert_entry(Layer->arc_tree, (pcb_box_t *) Arc, 0); pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_ARC, Layer, Arc); pcb_arc_invalidate_draw(Layer, Arc); - return (Arc); + return Arc; } return NULL; } @@ -492,7 +492,7 @@ pcb_undo_add_obj_to_clear_poly(PCB_TYPE_ARC, Layer, Arc, Arc, pcb_true); } pcb_arc_invalidate_draw(Layer, Arc); - return (Arc); + return Arc; } /* sets the clearance flag of an arc */ @@ -520,11 +520,11 @@ Arc->Y + ctx->copy.DeltaY, Arc->Width, Arc->Height, Arc->StartAngle, Arc->Delta, Arc->Thickness, Arc->Clearance, pcb_flag_mask(Arc->Flags, PCB_FLAG_FOUND)); if (!arc) - return (arc); + return arc; pcb_arc_copy_meta(arc, Arc); pcb_arc_invalidate_draw(Layer, arc); pcb_undo_add_obj_to_create(PCB_TYPE_ARC, Layer, arc, arc); - return (arc); + return arc; } /* moves an arc */ @@ -597,7 +597,7 @@ pcb_draw(); } if (ctx->move.dst_layer == Layer) - return (Arc); + return Arc; pcb_undo_add_obj_to_move_to_layer(PCB_TYPE_ARC, Layer, Arc, Arc); pcb_poly_restore_to_poly(PCB->Data, PCB_TYPE_ARC, Layer, Arc); if (Layer->meta.real.vis) @@ -607,7 +607,7 @@ if (ctx->move.dst_layer->meta.real.vis) pcb_arc_invalidate_draw(ctx->move.dst_layer, newone); pcb_draw(); - return (newone); + return newone; } /* destroys an arc from a layer */ @@ -713,7 +713,7 @@ pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_ARC, Layer, Arc); pcb_arc_invalidate_draw(Layer, Arc); pcb_draw(); - return (Arc); + return Arc; } void *pcb_arcop_rotate(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_arc_t *Arc) Index: trunk/src/obj_elem.c =================================================================== --- trunk/src/obj_elem.c (revision 13665) +++ trunk/src/obj_elem.c (revision 13666) @@ -511,7 +511,7 @@ } } PCB_END_LOOP; - return (change); + return change; } /* changes the layout-name of an element */ @@ -587,7 +587,7 @@ /* abort on error */ if (!Dest) - return (Dest); + return Dest; PCB_ELEMENT_PCB_LINE_LOOP(Src); { @@ -621,7 +621,7 @@ Dest->MarkY = Src->MarkY + dy; pcb_element_bbox(Data, Dest, pcb_font(PCB, 0, 1)); - return (Dest); + return Dest; } /* creates an new element; memory is allocated if needed */ @@ -654,7 +654,7 @@ printf(" .... Leaving CreateNewElement.\n"); #endif - return (Element); + return Element; } /* creates a new arc in an element */ @@ -952,7 +952,7 @@ /* if this is not our string, put back the blown character */ if (start != temp) *Name = c; - return (temp); + return temp; } @@ -963,7 +963,7 @@ pcb_bool unique = pcb_true; /* null strings are ok */ if (!Name || !*Name) - return (Name); + return Name; for (;;) { PCB_ELEMENT_LOOP(Data); @@ -976,7 +976,7 @@ } PCB_END_LOOP; if (unique) - return (Name); + return Name; unique = pcb_true; } } @@ -1314,7 +1314,7 @@ } PCB_END_LOOP; } - return (element); + return element; } /* moves a element to buffer without allocating memory for pins/names */ @@ -1391,7 +1391,7 @@ } PCB_END_LOOP; if (changed) - return (Element); + return Element; else return NULL; } @@ -1423,7 +1423,7 @@ } PCB_END_LOOP; if (changed) - return (Element); + return Element; else return NULL; } @@ -1481,7 +1481,7 @@ PCB_END_LOOP; if (changed) - return (Element); + return Element; else return NULL; } @@ -1520,7 +1520,7 @@ pcb_elem_invalidate_draw(Element); } if (changed) - return (Element); + return Element; return NULL; } @@ -1544,7 +1544,7 @@ } PCB_END_LOOP; pcb_elem_name_invalidate_draw(Element); - return (Element); + return Element; } return NULL; } @@ -1590,7 +1590,7 @@ ans = pcb_padop_change_square(ctx, Element, pad); } PCB_END_LOOP; - return (ans); + return ans; } /* sets the square flag of all pins on an element */ @@ -1610,7 +1610,7 @@ ans = pcb_padop_set_square(ctx, Element, pad); } PCB_END_LOOP; - return (ans); + return ans; } /* clears the square flag of all pins on an element */ @@ -1630,7 +1630,7 @@ ans = pcb_padop_clear_square(ctx, Element, pad); } PCB_END_LOOP; - return (ans); + return ans; } /* changes the octagon flags of all pins of an element */ @@ -1706,7 +1706,7 @@ #ifdef DEBUG printf(" ... Leaving pcb_elemop_copy.\n"); #endif - return (element); + return element; } /* moves all names of an element to a new position */ @@ -1737,7 +1737,7 @@ } PCB_END_LOOP; } - return (Element); + return Element; } /* moves an element */ @@ -1763,7 +1763,7 @@ } if (didDraw) pcb_draw(); - return (Element); + return Element; } /* destroys a element */ @@ -1818,7 +1818,7 @@ pcb_element_rotate90(PCB->Data, Element, ctx->rotate.center_x, ctx->rotate.center_y, ctx->rotate.number); pcb_elem_invalidate_draw(Element); pcb_draw(); - return (Element); + return Element; } /* ---------------------------------------------------------------------- @@ -1836,7 +1836,7 @@ PCB_END_LOOP; pcb_elem_name_invalidate_draw(Element); pcb_draw(); - return (Element); + return Element; } /*** draw ***/ Index: trunk/src/obj_line.c =================================================================== --- trunk/src/obj_line.c (revision 13665) +++ trunk/src/obj_line.c (revision 13666) @@ -206,7 +206,7 @@ Line = pcb_line_alloc(Layer); if (!Line) - return (Line); + return Line; Line->ID = pcb_create_ID_get(); Line->Flags = Flags; PCB_FLAG_CLEAR(PCB_FLAG_RAT, Line); @@ -219,7 +219,7 @@ Line->Point2.Y = Y2; Line->Point2.ID = pcb_create_ID_get(); pcb_add_line_on_layer(Layer, Line); - return (Line); + return Line; } static pcb_line_t *pcb_line_copy_meta(pcb_line_t *dst, pcb_line_t *src) @@ -370,7 +370,7 @@ PCB_SET_PARENT(line, layer, lay); - return (line); + return line; } /* changes the size of a line */ @@ -390,7 +390,7 @@ pcb_r_insert_entry(Layer->line_tree, (pcb_box_t *) Line, 0); pcb_poly_clear_from_poly(ctx->chgsize.pcb->Data, PCB_TYPE_LINE, Layer, Line); pcb_line_invalidate_draw(Layer, Line); - return (Line); + return Line; } return NULL; } @@ -419,7 +419,7 @@ pcb_r_insert_entry(Layer->line_tree, (pcb_box_t *) Line, 0); pcb_poly_clear_from_poly(ctx->chgsize.pcb->Data, PCB_TYPE_LINE, Layer, Line); pcb_line_invalidate_draw(Layer, Line); - return (Line); + return Line; } return NULL; } @@ -431,7 +431,7 @@ Layer = Layer; Line->Number = ctx->chgname.new_name; - return (old); + return old; } /* changes the clearance flag of a line */ @@ -451,7 +451,7 @@ pcb_poly_clear_from_poly(ctx->chgsize.pcb->Data, PCB_TYPE_LINE, Layer, Line); } pcb_line_invalidate_draw(Layer, Line); - return (Line); + return Line; } /* sets the clearance flag of a line */ @@ -480,11 +480,11 @@ Line->Point2.X + ctx->copy.DeltaX, Line->Point2.Y + ctx->copy.DeltaY, Line->Thickness, Line->Clearance, pcb_flag_mask(Line->Flags, PCB_FLAG_FOUND)); if (!line) - return (line); + return line; pcb_line_copy_meta(line, Line); pcb_line_invalidate_draw(Layer, line); pcb_undo_add_obj_to_create(PCB_TYPE_LINE, Layer, line, line); - return (line); + return line; } /* moves a line */ @@ -541,7 +541,7 @@ pcb_line_invalidate_draw(Layer, Line); pcb_draw(); } - return (Line); + return Line; } else { /* must be a rat */ @@ -555,7 +555,7 @@ pcb_rat_invalidate_draw((pcb_rat_t *) Line); pcb_draw(); } - return (Line); + return Line; } } @@ -650,7 +650,7 @@ pcb_draw(); } if (ctx->move.dst_layer == Layer) - return (Line); + return Line; pcb_undo_add_obj_to_move_to_layer(PCB_TYPE_LINE, Layer, Line, Line); if (Layer->meta.real.vis) @@ -665,7 +665,7 @@ if (!PCB->ViaOn || ctx->move.more_to_come || pcb_layer_get_group_(Layer) == pcb_layer_get_group_(ctx->move.dst_layer) || !(pcb_layer_flags(PCB, pcb_layer_id(PCB->Data, Layer)) & PCB_LYT_COPPER) || !(pcb_layer_flags_(ctx->move.dst_layer) & PCB_LYT_COPPER)) - return (newone); + return newone; /* consider via at Point1 */ sb.X1 = newone->Point1.X - newone->Thickness / 2; sb.X2 = newone->Point1.X + newone->Thickness / 2; @@ -691,7 +691,7 @@ pcb_r_search(Layer->line_tree, &sb, NULL, moveline_callback, &info, NULL); } pcb_draw(); - return (newone); + return newone; } /* destroys a line from a layer */ @@ -922,7 +922,7 @@ /* creation call adds it to the rtree */ } pcb_draw(); - return (line); + return line; } void *pcb_lineop_change_flag(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) Index: trunk/src/obj_pad.c =================================================================== --- trunk/src/obj_pad.c (revision 13665) +++ trunk/src/obj_pad.c (revision 13666) @@ -99,7 +99,7 @@ PCB_FLAG_CLEAR(PCB_FLAG_WARN, pad); pad->ID = pcb_create_ID_get(); pad->Element = Element; - return (pad); + return pad; } pcb_pad_t *pcb_element_pad_new_rect(pcb_element_t *Element, pcb_coord_t X1, pcb_coord_t Y1, pcb_coord_t X2, pcb_coord_t Y2, pcb_coord_t Clearance, pcb_coord_t Mask, const char *Name, const char *Number, pcb_flag_t Flags) @@ -281,7 +281,7 @@ pcb_element_bbox(PCB->Data, Element, pcb_font(PCB, 0, 1)); pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_PAD, Element, Pad); pcb_pad_invalidate_draw(Pad); - return (Pad); + return Pad; } return NULL; } @@ -328,7 +328,7 @@ } else Pad->Name = ctx->chgname.new_name; - return (old); + return old; } /* changes the number of a pad */ @@ -344,7 +344,7 @@ } else Pad->Number = ctx->chgname.new_name; - return (old); + return old; } /* changes the square flag of a pad */ @@ -360,7 +360,7 @@ pcb_undo_add_obj_to_clear_poly(PCB_TYPE_PAD, Element, Pad, Pad, pcb_true); pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_PAD, Element, Pad); pcb_pad_invalidate_draw(Pad); - return (Pad); + return Pad; } /* sets the square flag of a pad */ @@ -399,7 +399,7 @@ Pad->Mask = value; pcb_element_bbox(PCB->Data, Element, pcb_font(PCB, 0, 1)); pcb_pad_invalidate_draw(Pad); - return (Pad); + return Pad; } return NULL; } Index: trunk/src/obj_pinvia.c =================================================================== --- trunk/src/obj_pinvia.c (revision 13665) +++ trunk/src/obj_pinvia.c (revision 13666) @@ -114,7 +114,7 @@ Via = pcb_via_alloc(Data); if (!Via) - return (Via); + return Via; /* copy values */ Via->X = X; Via->Y = Y; @@ -144,7 +144,7 @@ } pcb_add_via(Data, Via); - return (Via); + return Via; } static pcb_pin_t *pcb_via_copy_meta(pcb_pin_t *dst, pcb_pin_t *src) @@ -224,7 +224,7 @@ conf_core.editor.grid_unit->allow, pin->DrillingHole, DrillingHole); } - return (pin); + return pin; } @@ -432,7 +432,7 @@ pcb_r_insert_entry(PCB->Data->via_tree, (pcb_box_t *) Via, 0); pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_VIA, Via, Via); pcb_via_invalidate_draw(Via); - return (Via); + return Via; } return NULL; } @@ -457,7 +457,7 @@ } pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_VIA, Via, Via); pcb_via_invalidate_draw(Via); - return (Via); + return Via; } return NULL; } @@ -482,7 +482,7 @@ } pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_PIN, Element, Pin); pcb_pin_invalidate_draw(Pin); - return (Pin); + return Pin; } return NULL; } @@ -514,7 +514,7 @@ pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_VIA, Via, Via); pcb_via_invalidate_draw(Via); Via->Element = NULL; - return (Via); + return Via; } @@ -538,7 +538,7 @@ pcb_element_bbox(PCB->Data, Element, pcb_font(PCB, 0, 1)); pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_PIN, Element, Pin); pcb_pin_invalidate_draw(Pin); - return (Pin); + return Pin; } return NULL; } @@ -568,7 +568,7 @@ pcb_element_bbox(PCB->Data, Element, pcb_font(PCB, 0, 1)); pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_PIN, Element, Pin); pcb_pin_invalidate_draw(Pin); - return (Pin); + return Pin; } /* changes the name of a via */ @@ -583,7 +583,7 @@ } else Via->Name = ctx->chgname.new_name; - return (old); + return old; } /* changes the name of a pin */ @@ -599,7 +599,7 @@ } else Pin->Name = ctx->chgname.new_name; - return (old); + return old; } /* changes the number of a pin */ @@ -615,7 +615,7 @@ } else Pin->Number = ctx->chgname.new_name; - return (old); + return old; } @@ -637,7 +637,7 @@ pcb_undo_add_obj_to_clear_poly(PCB_TYPE_VIA, NULL, Via, Via, pcb_true); pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_VIA, NULL, Via); pcb_via_invalidate_draw(Via); - return (Via); + return Via; } /* changes the square flag of a pin */ @@ -658,7 +658,7 @@ pcb_undo_add_obj_to_clear_poly(PCB_TYPE_PIN, Element, Pin, Pin, pcb_true); pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_PIN, Element, Pin); pcb_pin_invalidate_draw(Pin); - return (Pin); + return Pin; } /* sets the square flag of a pin */ @@ -692,7 +692,7 @@ pcb_undo_add_obj_to_clear_poly(PCB_TYPE_VIA, Via, Via, Via, pcb_true); pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_VIA, Via, Via); pcb_via_invalidate_draw(Via); - return (Via); + return Via; } /* sets the octagon flag of a via */ @@ -726,7 +726,7 @@ pcb_undo_add_obj_to_clear_poly(PCB_TYPE_PIN, Element, Pin, Pin, pcb_true); pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_PIN, Element, Pin); pcb_pin_invalidate_draw(Pin); - return (Pin); + return Pin; } /* sets the octagon flag of a pin */ @@ -796,7 +796,7 @@ Pin->Mask = value; pcb_element_bbox(PCB->Data, Element, pcb_font(PCB, 0, 1)); pcb_pin_invalidate_draw(Pin); - return (Pin); + return Pin; } return NULL; } @@ -816,7 +816,7 @@ pcb_pin_bbox(Via); pcb_r_insert_entry(PCB->Data->via_tree, &Via->BoundingBox, 0); pcb_via_invalidate_draw(Via); - return (Via); + return Via; } return NULL; } @@ -829,10 +829,10 @@ via = pcb_via_new(PCB->Data, Via->X + ctx->copy.DeltaX, Via->Y + ctx->copy.DeltaY, Via->Thickness, Via->Clearance, Via->Mask, Via->DrillingHole, Via->Name, pcb_flag_mask(Via->Flags, PCB_FLAG_FOUND)); if (!via) - return (via); + return via; pcb_via_invalidate_draw(via); pcb_undo_add_obj_to_create(PCB_TYPE_VIA, via, via, via); - return (via); + return via; } /* moves a via */ Index: trunk/src/obj_poly.c =================================================================== --- trunk/src/obj_poly.c (revision 13665) +++ trunk/src/obj_poly.c (revision 13666) @@ -201,7 +201,7 @@ { pcb_poly_t *polygon = pcb_poly_new(Layer, Clearance, Flags); if (!polygon) - return (polygon); + return polygon; pcb_poly_point_new(polygon, X1, Y1); pcb_poly_point_new(polygon, X2, Y1); @@ -209,7 +209,7 @@ pcb_poly_point_new(polygon, X1, Y2); pcb_add_poly_on_layer(Layer, polygon); - return (polygon); + return polygon; } pcb_poly_t *pcb_poly_new_from_poly(pcb_layer_t *Layer, pcb_poly_t *src, pcb_coord_t offs, pcb_coord_t Clearance, pcb_flag_t Flags) @@ -221,7 +221,7 @@ pcb_poly_t *polygon = pcb_poly_new(Layer, Clearance, Flags); if (!polygon) - return (polygon); + return polygon; it.pa = src->Clipped; pcb_poly_island_first(src, &it); @@ -233,7 +233,7 @@ pcb_poly_contours_free(&it.cntr); pcb_add_poly_on_layer(Layer, polygon); - return (polygon); + return polygon; } @@ -260,7 +260,7 @@ polygon->Clipped = NULL; polygon->NoHoles = NULL; polygon->NoHolesValid = 0; - return (polygon); + return polygon; } static pcb_poly_t *pcb_poly_copy_meta(pcb_poly_t *dst, pcb_poly_t *src) @@ -308,7 +308,7 @@ point->X = X; point->Y = Y; point->ID = pcb_create_ID_get(); - return (point); + return point; } /* creates a new hole in a polygon */ @@ -335,7 +335,7 @@ pcb_poly_bbox(Dest); Dest->Flags = Src->Flags; PCB_FLAG_CLEAR(PCB_FLAG_FOUND, Dest); - return (Dest); + return Dest; } static double poly_area(pcb_point_t *points, pcb_cardinal_t n_points) @@ -395,7 +395,7 @@ pcb_r_insert_entry(layer->polygon_tree, (pcb_box_t *) polygon, 0); PCB_FLAG_CLEAR(PCB_FLAG_FOUND | ctx->buffer.extraflg, polygon); - return (polygon); + return polygon; } @@ -420,7 +420,7 @@ PCB_SET_PARENT(polygon, layer, lay); pcb_poly_ppclear(polygon); - return (polygon); + return polygon; } /* Handle attempts to change the clearance of a polygon. */ @@ -448,7 +448,7 @@ PCB_FLAG_TOGGLE(PCB_FLAG_CLEARPOLY, Polygon); pcb_poly_init_clip(PCB->Data, Layer, Polygon); pcb_poly_invalidate_draw(Layer, Polygon); - return (Polygon); + return Polygon; } /* inserts a point into a polygon */ @@ -587,7 +587,7 @@ pcb_draw(); } pcb_poly_ppclear(Polygon); - return (Point); + return Point; } /* moves a polygon between layers; lowlevel routines */ @@ -640,7 +640,7 @@ return NULL; } if (Layer == ctx->move.dst_layer) - return (Polygon); + return Polygon; pcb_undo_add_obj_to_move_to_layer(PCB_TYPE_POLY, Layer, Polygon, Polygon); if (Layer->meta.real.vis) pcb_poly_invalidate_erase(Polygon); @@ -658,7 +658,7 @@ pcb_poly_invalidate_draw(ctx->move.dst_layer, newone); pcb_draw(); } - return (newone); + return newone; } @@ -707,7 +707,7 @@ pcb_r_insert_entry(Layer->polygon_tree, (pcb_box_t *) Polygon, 0); pcb_poly_init_clip(PCB->Data, Layer, Polygon); pcb_poly_ppclear(Polygon); - return (Polygon); + return Polygon; } /* removes a polygon from a layer */ @@ -850,7 +850,7 @@ pcb_poly_invalidate_draw(Layer, polygon); pcb_undo_add_obj_to_create(PCB_TYPE_POLY, Layer, polygon, polygon); pcb_poly_ppclear(polygon); - return (polygon); + return polygon; } void *pcb_polyop_rotate90(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_poly_t *Polygon) Index: trunk/src/obj_rat.c =================================================================== --- trunk/src/obj_rat.c (revision 13665) +++ trunk/src/obj_rat.c (revision 13666) @@ -77,7 +77,7 @@ pcb_rat_t *Line = pcb_rat_alloc(Data); if (!Line) - return (Line); + return Line; Line->ID = pcb_create_ID_get(); Line->Flags = Flags; @@ -95,7 +95,7 @@ if (!Data->rat_tree) Data->rat_tree = pcb_r_create_tree(NULL, 0, 0); pcb_r_insert_entry(Data->rat_tree, &Line->BoundingBox, 0); - return (Line); + return Line; } /* DeleteRats - deletes rat lines only @@ -121,7 +121,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (changed); + return changed; } @@ -173,7 +173,7 @@ } pcb_undo_move_obj_to_remove(PCB_TYPE_RATLINE, Rat, Rat, Rat); pcb_draw(); - return (newone); + return newone; } /* move a rat to a layer: convert it into a layer line */ @@ -192,7 +192,7 @@ pcb_undo_move_obj_to_remove(PCB_TYPE_RATLINE, Rat, Rat, Rat); pcb_line_invalidate_draw(ctx->move.dst_layer, newone); pcb_draw(); - return (newone); + return newone; } /* destroys a rat */ Index: trunk/src/obj_subc.c =================================================================== --- trunk/src/obj_subc.c (revision 13665) +++ trunk/src/obj_subc.c (revision 13666) @@ -944,7 +944,7 @@ pcb_text_dyn_bbox_update(sc->data); - return (sc); + return sc; } extern pcb_opfunc_t ClipFunctions, MoveFunctions, MoveFunctions_noclip, Rotate90Functions, RotateFunctions, ChgFlagFunctions, ChangeSizeFunctions, ChangeClearSizeFunctions, Change1stSizeFunctions, Change2ndSizeFunctions; Index: trunk/src/operation.c =================================================================== --- trunk/src/operation.c (revision 13665) +++ trunk/src/operation.c (revision 13666) @@ -331,5 +331,5 @@ if (Reset && changed) pcb_undo_inc_serial(); - return (changed); + return changed; } Index: trunk/src/plug_footprint.c =================================================================== --- trunk/src/plug_footprint.c (revision 13665) +++ trunk/src/plug_footprint.c (revision 13666) @@ -419,7 +419,7 @@ return 0; } - return (1); + return 1; } int pcb_fp_rehash(pcb_fplibrary_t *l) Index: trunk/src/plug_import.c =================================================================== --- trunk/src/plug_import.c (revision 13665) +++ trunk/src/plug_import.c (revision 13666) @@ -91,7 +91,7 @@ if (!filename) { pcb_message(PCB_MSG_ERROR, "Error: need a file name for pcb_import_netlist()\n"); - return (1); /* nothing to do */ + return 1; /* nothing to do */ } fp = pcb_fopen(filename, "r"); Index: trunk/src/plug_io.c =================================================================== --- trunk/src/plug_io.c (revision 13665) +++ trunk/src/plug_io.c (revision 13666) @@ -505,7 +505,7 @@ pcb_gui->log("Loading file %s took %f seconds of CPU time\n", new_filename, elapsed); #endif - return (0); + return 0; } free(new_filename); @@ -525,7 +525,7 @@ /* release unused memory */ pcb_board_remove(newPCB); - return (1); + return 1; } @@ -643,7 +643,7 @@ if ((fp = pcb_fopen(Filename, "w")) == NULL) pcb_open_error_message(Filename); } - return (fp); + return fp; } /* --------------------------------------------------------------------------- Index: trunk/src/rats.c =================================================================== --- trunk/src/rats.c (revision 13665) +++ trunk/src/rats.c (revision 13666) @@ -326,7 +326,7 @@ /* clear all visit marks */ clear_drc_flag(0); - return (Wantlist); + return Wantlist; } /* @@ -501,7 +501,7 @@ } PCB_END_LOOP; vtp0_uninit(&generic); - return (warn); + return warn; } static void gather_subnet_objs(pcb_data_t *data, pcb_netlist_t *Netl, pcb_net_t *a) @@ -625,7 +625,7 @@ Warned |= CheckShorts(a->Connection[0].menu); } pcb_reset_conns(pcb_false); - return (Warned); + return Warned; } /* --------------------------------------------------------------------------- @@ -783,7 +783,7 @@ pcb_conn_lookup_uninit(); pcb_conn_lookup_init(); } - return (changed); + return changed; } pcb_bool @@ -1075,7 +1075,7 @@ strcpy(name, PCB_UNKNOWN(parent)); strcat(name, "-"); strcat(name, PCB_UNKNOWN(num)); - return (name); + return name; } /* --------------------------------------------------------------------------- Index: trunk/src/remove.c =================================================================== --- trunk/src/remove.c (revision 13665) +++ trunk/src/remove.c (revision 13666) @@ -107,7 +107,7 @@ ctx.remove.destroy_target = NULL; ptr = pcb_object_operation(&RemoveFunctions, &ctx, Type, Ptr1, Ptr2, Ptr3); - return (ptr); + return ptr; } void *pcb_destroy_object(pcb_data_t *Target, int Type, void *Ptr1, void *Ptr2, void *Ptr3) Index: trunk/src/rotate.c =================================================================== --- trunk/src/rotate.c (revision 13665) +++ trunk/src/rotate.c (revision 13666) @@ -116,7 +116,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (ptr2); + return ptr2; } void *pcb_obj_rotate(int Type, void *Ptr1, void *Ptr2, void *Ptr3, pcb_coord_t X, pcb_coord_t Y, pcb_angle_t angle) @@ -141,7 +141,7 @@ pcb_draw(); pcb_undo_inc_serial(); } - return (ptr2); + return ptr2; } void pcb_screen_obj_rotate90(pcb_coord_t X, pcb_coord_t Y, unsigned Steps) Index: trunk/src/rtree.c =================================================================== --- trunk/src/rtree.c (revision 13665) +++ trunk/src/rtree.c (revision 13666) @@ -697,7 +697,7 @@ sort_node(node); adjust_bounds(new_node); sort_node(new_node); - return (new_node); + return new_node; } /* split a node according to clusters Index: trunk/src/search.c =================================================================== --- trunk/src/search.c (revision 13665) +++ trunk/src/search.c (revision 13666) @@ -1214,13 +1214,13 @@ if (Type & PCB_TYPE_RATLINE && PCB->RatOn && SearchRatLineByLocation(objst, req_flag, (pcb_rat_t **) Result1, (pcb_rat_t **) Result2, (pcb_rat_t **) Result3)) - return (PCB_TYPE_RATLINE); + return PCB_TYPE_RATLINE; if (Type & PCB_TYPE_VIA && SearchViaByLocation(objst, req_flag, (pcb_pin_t **) Result1, (pcb_pin_t **) Result2, (pcb_pin_t **) Result3)) - return (PCB_TYPE_VIA); + return PCB_TYPE_VIA; if (Type & PCB_TYPE_PSTK && SearchPadstackByLocation(objst, req_flag, (pcb_pstk_t **) Result1, (pcb_pstk_t **) Result2, (pcb_pstk_t **) Result3)) - return (PCB_TYPE_PSTK); + return PCB_TYPE_PSTK; if (Type & PCB_TYPE_PIN && SearchPinByLocation(objst, req_flag, (pcb_element_t **) pr1, (pcb_pin_t **) pr2, (pcb_pin_t **) pr3)) HigherAvail = PCB_TYPE_PIN; @@ -1267,29 +1267,29 @@ if ((HigherAvail & (PCB_TYPE_PIN | PCB_TYPE_PAD)) == 0 && Type & PCB_TYPE_POLY_POINT && SearchPointByLocation(Type, objst, req_flag, (pcb_layer_t **) Result1, (pcb_poly_t **) Result2, (pcb_point_t **) Result3)) - return (PCB_TYPE_POLY_POINT); + return PCB_TYPE_POLY_POINT; if ((HigherAvail & (PCB_TYPE_PIN | PCB_TYPE_PAD)) == 0 && Type & PCB_TYPE_LINE_POINT && SearchLinePointByLocation(objst, req_flag, (pcb_layer_t **) Result1, (pcb_line_t **) Result2, (pcb_point_t **) Result3)) - return (PCB_TYPE_LINE_POINT); + return PCB_TYPE_LINE_POINT; if ((HigherAvail & (PCB_TYPE_PIN | PCB_TYPE_PAD)) == 0 && Type & PCB_TYPE_ARC_POINT && SearchArcPointByLocation(objst, req_flag, (pcb_layer_t **) Result1, (pcb_arc_t **) Result2, (int **) Result3)) - return (PCB_TYPE_ARC_POINT); + return PCB_TYPE_ARC_POINT; if ((HigherAvail & (PCB_TYPE_PIN | PCB_TYPE_PAD)) == 0 && Type & PCB_TYPE_LINE && SearchLineByLocation(objst, req_flag, (pcb_layer_t **) Result1, (pcb_line_t **) Result2, (pcb_line_t **) Result3)) - return (PCB_TYPE_LINE); + return PCB_TYPE_LINE; if ((HigherAvail & (PCB_TYPE_PIN | PCB_TYPE_PAD)) == 0 && Type & PCB_TYPE_ARC && SearchArcByLocation(objst, req_flag, (pcb_layer_t **) Result1, (pcb_arc_t **) Result2, (pcb_arc_t **) Result3)) - return (PCB_TYPE_ARC); + return PCB_TYPE_ARC; if ((HigherAvail & (PCB_TYPE_PIN | PCB_TYPE_PAD)) == 0 && Type & PCB_TYPE_TEXT && SearchTextByLocation(objst, req_flag, (pcb_layer_t **) Result1, (pcb_text_t **) Result2, (pcb_text_t **) Result3)) - return (PCB_TYPE_TEXT); + return PCB_TYPE_TEXT; if (Type & PCB_TYPE_POLY && SearchPolygonByLocation(objst, req_flag, (pcb_layer_t **) Result1, (pcb_poly_t **) Result2, (pcb_poly_t **) Result3)) { @@ -1299,10 +1299,10 @@ if (HigherBound < area) break; else - return (PCB_TYPE_POLY); + return PCB_TYPE_POLY; } else - return (PCB_TYPE_POLY); + return PCB_TYPE_POLY; } } } @@ -1311,7 +1311,7 @@ *Result1 = r1; *Result2 = r2; *Result3 = r3; - return (PCB_TYPE_PIN); + return PCB_TYPE_PIN; } if (HigherAvail & PCB_TYPE_PAD) { @@ -1318,7 +1318,7 @@ *Result1 = r1; *Result2 = r2; *Result3 = r3; - return (PCB_TYPE_PAD); + return PCB_TYPE_PAD; } if (HigherAvail & PCB_TYPE_ELEMENT_NAME) { @@ -1325,7 +1325,7 @@ *Result1 = r1; *Result2 = r2; *Result3 = r3; - return (PCB_TYPE_ELEMENT_NAME); + return PCB_TYPE_ELEMENT_NAME; } if (HigherAvail & PCB_TYPE_ELEMENT) { @@ -1332,7 +1332,7 @@ *Result1 = r1; *Result2 = r2; *Result3 = r3; - return (PCB_TYPE_ELEMENT); + return PCB_TYPE_ELEMENT; } if (HigherAvail & PCB_TYPE_SUBC) { @@ -1339,30 +1339,30 @@ *Result1 = r1; *Result2 = r2; *Result3 = r3; - return (PCB_TYPE_SUBC); + return PCB_TYPE_SUBC; } /* search the 'invisible objects' last */ if (!PCB->InvisibleObjectsOn) - return (PCB_TYPE_NONE); + return PCB_TYPE_NONE; if (Type & PCB_TYPE_PAD && SearchPadByLocation(objst, req_flag, (pcb_element_t **) Result1, (pcb_pad_t **) Result2, (pcb_pad_t **) Result3, pcb_true)) - return (PCB_TYPE_PAD); + return PCB_TYPE_PAD; if (Type & PCB_TYPE_ELEMENT_NAME && SearchElementNameByLocation(objst, req_flag, (pcb_element_t **) Result1, (pcb_text_t **) Result2, (pcb_text_t **) Result3, pcb_true)) - return (PCB_TYPE_ELEMENT_NAME); + return PCB_TYPE_ELEMENT_NAME; if (Type & PCB_TYPE_ELEMENT && SearchElementByLocation(objst, req_flag, (pcb_element_t **) Result1, (pcb_element_t **) Result2, (pcb_element_t **) Result3, pcb_true)) - return (PCB_TYPE_ELEMENT); + return PCB_TYPE_ELEMENT; if (Type & PCB_TYPE_SUBC && PCB->SubcOn && SearchSubcByLocation(objst, req_flag, (pcb_subc_t **) Result1, (pcb_subc_t **) Result2, (pcb_subc_t **) Result3, pcb_true)) - return (PCB_TYPE_SUBC); + return PCB_TYPE_SUBC; - return (PCB_TYPE_NONE); + return PCB_TYPE_NONE; } int pcb_search_obj_by_location(unsigned long Type, void **Result1, void **Result2, void **Result3, pcb_coord_t X, pcb_coord_t Y, pcb_coord_t Radius) @@ -1408,19 +1408,19 @@ if (line->ID == ID) { *Result1 = (void *) layer; *Result2 = *Result3 = (void *) line; - return (PCB_TYPE_LINE); + return PCB_TYPE_LINE; } if (line->Point1.ID == ID) { *Result1 = (void *) layer; *Result2 = (void *) line; *Result3 = (void *) &line->Point1; - return (PCB_TYPE_LINE_POINT); + return PCB_TYPE_LINE_POINT; } if (line->Point2.ID == ID) { *Result1 = (void *) layer; *Result2 = (void *) line; *Result3 = (void *) &line->Point2; - return (PCB_TYPE_LINE_POINT); + return PCB_TYPE_LINE_POINT; } } PCB_ENDALL_LOOP; @@ -1431,7 +1431,7 @@ if (arc->ID == ID) { *Result1 = (void *) layer; *Result2 = *Result3 = (void *) arc; - return (PCB_TYPE_ARC); + return PCB_TYPE_ARC; } } PCB_ENDALL_LOOP; @@ -1443,7 +1443,7 @@ if (text->ID == ID) { *Result1 = (void *) layer; *Result2 = *Result3 = (void *) text; - return (PCB_TYPE_TEXT); + return PCB_TYPE_TEXT; } } PCB_ENDALL_LOOP; @@ -1455,7 +1455,7 @@ if (polygon->ID == ID) { *Result1 = (void *) layer; *Result2 = *Result3 = (void *) polygon; - return (PCB_TYPE_POLY); + return PCB_TYPE_POLY; } if (type == PCB_TYPE_POLY_POINT) PCB_POLY_POINT_LOOP(polygon); @@ -1464,7 +1464,7 @@ *Result1 = (void *) layer; *Result2 = (void *) polygon; *Result3 = (void *) point; - return (PCB_TYPE_POLY_POINT); + return PCB_TYPE_POLY_POINT; } } PCB_END_LOOP; @@ -1477,7 +1477,7 @@ { if (via->ID == ID) { *Result1 = *Result2 = *Result3 = (void *) via; - return (PCB_TYPE_VIA); + return PCB_TYPE_VIA; } } PCB_END_LOOP; @@ -1499,19 +1499,19 @@ { if (line->ID == ID) { *Result1 = *Result2 = *Result3 = (void *) line; - return (PCB_TYPE_RATLINE); + return PCB_TYPE_RATLINE; } if (line->Point1.ID == ID) { *Result1 = (void *) NULL; *Result2 = (void *) line; *Result3 = (void *) &line->Point1; - return (PCB_TYPE_LINE_POINT); + return PCB_TYPE_LINE_POINT; } if (line->Point2.ID == ID) { *Result1 = (void *) NULL; *Result2 = (void *) line; *Result3 = (void *) &line->Point2; - return (PCB_TYPE_LINE_POINT); + return PCB_TYPE_LINE_POINT; } } PCB_END_LOOP; @@ -1541,7 +1541,7 @@ { if (element->ID == ID) { *Result1 = *Result2 = *Result3 = (void *) element; - return (PCB_TYPE_ELEMENT); + return PCB_TYPE_ELEMENT; } if (type == PCB_TYPE_ELEMENT_LINE) PCB_ELEMENT_PCB_LINE_LOOP(element); @@ -1549,7 +1549,7 @@ if (line->ID == ID) { *Result1 = (void *) element; *Result2 = *Result3 = (void *) line; - return (PCB_TYPE_ELEMENT_LINE); + return PCB_TYPE_ELEMENT_LINE; } } PCB_END_LOOP; @@ -1559,7 +1559,7 @@ if (arc->ID == ID) { *Result1 = (void *) element; *Result2 = *Result3 = (void *) arc; - return (PCB_TYPE_ELEMENT_ARC); + return PCB_TYPE_ELEMENT_ARC; } } PCB_END_LOOP; @@ -1569,7 +1569,7 @@ if (text->ID == ID) { *Result1 = (void *) element; *Result2 = *Result3 = (void *) text; - return (PCB_TYPE_ELEMENT_NAME); + return PCB_TYPE_ELEMENT_NAME; } } PCB_END_LOOP; @@ -1579,7 +1579,7 @@ if (pin->ID == ID) { *Result1 = (void *) element; *Result2 = *Result3 = (void *) pin; - return (PCB_TYPE_PIN); + return PCB_TYPE_PIN; } } PCB_END_LOOP; @@ -1589,7 +1589,7 @@ if (pad->ID == ID) { *Result1 = (void *) element; *Result2 = *Result3 = (void *) pad; - return (PCB_TYPE_PAD); + return PCB_TYPE_PAD; } } PCB_END_LOOP; @@ -1596,7 +1596,7 @@ } PCB_END_LOOP; - return (PCB_TYPE_NONE); + return PCB_TYPE_NONE; } int pcb_search_obj_by_id(pcb_data_t *Base, void **Result1, void **Result2, void **Result3, int ID, int type) @@ -1643,7 +1643,7 @@ int ans; ans = pcb_search_obj_by_location(Type, Result1, Result2, Result3, X, Y, PCB->Grid / 2); - return (ans); + return ans; } int pcb_lines_intersect(pcb_coord_t ax1, pcb_coord_t ay1, pcb_coord_t ax2, pcb_coord_t ay2, pcb_coord_t bx1, pcb_coord_t by1, pcb_coord_t bx2, pcb_coord_t by2) Index: trunk/src/select.c =================================================================== --- trunk/src/select.c (revision 13665) +++ trunk/src/select.c (revision 13666) @@ -214,7 +214,7 @@ } pcb_draw(); pcb_undo_inc_serial(); - return (changed); + return changed; } static void fix_box_dir(pcb_box_t *Box, int force_pos) @@ -679,7 +679,7 @@ } } PCB_END_LOOP; - return (changed); + return changed; } /* --------------------------------------------------------------------------- @@ -883,5 +883,5 @@ free(pat); if (pattern_copy != NULL) free(pattern_copy); - return (changed); + return changed; } Index: trunk/src/undo.c =================================================================== --- trunk/src/undo.c (revision 13665) +++ trunk/src/undo.c (revision 13666) @@ -238,7 +238,7 @@ */ pcb_bool pcb_undoing(void) { - return (Locked); + return Locked; } uundo_serial_t pcb_undo_serial(void) Index: trunk/src_plugins/autoplace/autoplace.c =================================================================== --- trunk/src_plugins/autoplace/autoplace.c (revision 13665) +++ trunk/src_plugins/autoplace/autoplace.c (revision 13666) @@ -984,5 +984,5 @@ pcb_redraw(); } vtp0_uninit(&Selected); - return (changed); + return changed; } Index: trunk/src_plugins/autoroute/autoroute.c =================================================================== --- trunk/src_plugins/autoroute/autoroute.c (revision 13665) +++ trunk/src_plugins/autoroute/autoroute.c (revision 13666) @@ -4747,5 +4747,5 @@ #if defined (ROUTE_DEBUG) aabort = 0; #endif - return (changed); + return changed; } Index: trunk/src_plugins/export_bom/bom.c =================================================================== --- trunk/src_plugins/export_bom/bom.c (revision 13665) +++ trunk/src_plugins/export_bom/bom.c (revision 13666) @@ -123,7 +123,7 @@ newlist->str = pcb_strdup(str); if (list == NULL) - return (newlist); + return newlist; cur = list; while (cur->next != NULL) @@ -131,7 +131,7 @@ cur->next = newlist; - return (list); + return list; } static BomList *bom_insert(char *refdes, char *descr, char *value, BomList * bom) @@ -150,7 +150,7 @@ newlist->value = pcb_strdup(value); newlist->num = 1; newlist->refdes = string_insert(refdes, NULL); - return (newlist); + return newlist; } /* search and see if we already have used one of these @@ -181,7 +181,7 @@ newlist->refdes = string_insert(refdes, NULL); } - return (bom); + return bom; } @@ -258,7 +258,7 @@ fclose(fp); - return (0); + return 0; } static void bom_do_export(pcb_hid_attr_val_t * options) Index: trunk/src_plugins/export_dsn/dsn.c =================================================================== --- trunk/src_plugins/export_dsn/dsn.c (revision 13665) +++ trunk/src_plugins/export_dsn/dsn.c (revision 13666) @@ -674,7 +674,7 @@ fclose(fp); - return (0); + return 0; } Index: trunk/src_plugins/export_ipcd356/ipcd356.c =================================================================== --- trunk/src_plugins/export_ipcd356/ipcd356.c (revision 13665) +++ trunk/src_plugins/export_ipcd356/ipcd356.c (revision 13666) @@ -391,7 +391,7 @@ if (IPCD356_SanityCheck()) { /* Check for invalid names + numbers. */ pcb_message(PCB_MSG_ERROR, "IPCD356: aborting on the sanity check.\n"); - return (1); + return 1; } sprintf(net, "%s.ipc", PCB->Name); @@ -565,10 +565,10 @@ PCB_ELEMENT_LOOP(PCB->Data); if (element->Name[1].TextString == '\0') { pcb_message(PCB_MSG_ERROR, "Error: Found unnamed element. All elements need to be named to create an IPC-D-356 netlist.\n"); - return (1); + return 1; } PCB_END_LOOP; /* Element. */ - return (0); + return 0; } static void IPCD356_do_export(pcb_hid_attr_val_t * options) Index: trunk/src_plugins/export_xy/xy.c =================================================================== --- trunk/src_plugins/export_xy/xy.c (revision 13665) +++ trunk/src_plugins/export_xy/xy.c (revision 13666) @@ -736,7 +736,7 @@ fclose(fp); - return (0); + return 0; } #include "default_templ.h" Index: trunk/src_plugins/import_edif/edif.c =================================================================== --- trunk/src_plugins/import_edif/edif.c (revision 13665) +++ trunk/src_plugins/import_edif/edif.c (revision 13666) @@ -5650,7 +5650,7 @@ } break; } - return (wlk); + return wlk; } /* * Context hash table. @@ -5683,7 +5683,7 @@ } break; } - return (wlk); + return wlk; } /* * Token stacking variables. @@ -5987,7 +5987,7 @@ } return (wlk->Token->Code); } - return (0); + return 0; } /* * Match context: @@ -6039,7 +6039,7 @@ owk->u.Used = NULL; return (wlk->Context->Code); } - return (0); + return 0; } /* * PopC: @@ -6126,7 +6126,7 @@ else { yytext[1] = '\0'; Stack(yytext,c); - return (c); + return c; } break; /* @@ -6139,7 +6139,7 @@ yytext[--l] = '\0'; yylval.s = strcpy((char *)Malloc(l + 1),yytext); Stack(yytext,EDIF_TOK_INT); - return (EDIF_TOK_INT); + return EDIF_TOK_INT; /* * Grab an identifier, see if the current context enables * it with a specific token value. @@ -6151,11 +6151,11 @@ yytext[--l] = '\0'; if (CSP->Context->Token && (c = MatchToken(yytext))){ Stack(yytext,c); - return (c); + return c; } yylval.s = strcpy((char *)Malloc(l + 1),yytext); Stack(yytext, EDIF_TOK_IDENT); - return (EDIF_TOK_IDENT); + return EDIF_TOK_IDENT; /* * Scan until you find the start of an identifier, discard * any whitespace found. On no identifier, return a '('. @@ -6183,11 +6183,11 @@ yytext[--l] = '\0'; if ( (c = MatchContext(yytext)) ){ Stack(yytext,c); - return (c); + return c; } yylval.s = strcpy((char *)Malloc(l + 1),yytext); Stack(yytext, EDIF_TOK_KEYWORD); - return (EDIF_TOK_KEYWORD); + return EDIF_TOK_KEYWORD; /* * Suck up string characters but once resolved they should * be deposited in the string bucket because they can be @@ -6201,7 +6201,7 @@ else if (c == '"' || c == EOF){ yylval.s = FormString(); Stack(yylval.s, EDIF_TOK_STR); - return (EDIF_TOK_STR); + return EDIF_TOK_STR; } else if (c == '%') s = L_ASCIICHAR; else Index: trunk/src_plugins/import_edif/edif.y =================================================================== --- trunk/src_plugins/import_edif/edif.y (revision 13665) +++ trunk/src_plugins/import_edif/edif.y (revision 13666) @@ -3862,7 +3862,7 @@ } break; } - return (wlk); + return wlk; } /* * Context hash table. @@ -3895,7 +3895,7 @@ } break; } - return (wlk); + return wlk; } /* * Token stacking variables. @@ -4199,7 +4199,7 @@ } return (wlk->Token->Code); } - return (0); + return 0; } /* * Match context: @@ -4251,7 +4251,7 @@ owk->u.Used = NULL; return (wlk->Context->Code); } - return (0); + return 0; } /* * PopC: @@ -4338,7 +4338,7 @@ else { yytext[1] = '\0'; Stack(yytext,c); - return (c); + return c; } break; /* @@ -4351,7 +4351,7 @@ yytext[--l] = '\0'; yylval.s = strcpy((char *)Malloc(l + 1),yytext); Stack(yytext,EDIF_TOK_INT); - return (EDIF_TOK_INT); + return EDIF_TOK_INT; /* * Grab an identifier, see if the current context enables * it with a specific token value. @@ -4363,11 +4363,11 @@ yytext[--l] = '\0'; if (CSP->Context->Token && (c = MatchToken(yytext))){ Stack(yytext,c); - return (c); + return c; } yylval.s = strcpy((char *)Malloc(l + 1),yytext); Stack(yytext, EDIF_TOK_IDENT); - return (EDIF_TOK_IDENT); + return EDIF_TOK_IDENT; /* * Scan until you find the start of an identifier, discard * any whitespace found. On no identifier, return a '('. @@ -4395,11 +4395,11 @@ yytext[--l] = '\0'; if ( (c = MatchContext(yytext)) ){ Stack(yytext,c); - return (c); + return c; } yylval.s = strcpy((char *)Malloc(l + 1),yytext); Stack(yytext, EDIF_TOK_KEYWORD); - return (EDIF_TOK_KEYWORD); + return EDIF_TOK_KEYWORD; /* * Suck up string characters but once resolved they should * be deposited in the string bucket because they can be @@ -4413,7 +4413,7 @@ else if (c == '"' || c == EOF){ yylval.s = FormString(); Stack(yylval.s, EDIF_TOK_STR); - return (EDIF_TOK_STR); + return EDIF_TOK_STR; } else if (c == '%') s = L_ASCIICHAR; else Index: trunk/src_plugins/import_netlist/import_netlist.c =================================================================== --- trunk/src_plugins/import_netlist/import_netlist.c (revision 13665) +++ trunk/src_plugins/import_netlist/import_netlist.c (revision 13666) @@ -58,7 +58,7 @@ const char *ratcmd; if (!filename) - return (1); /* nothing to do */ + return 1; /* nothing to do */ pcb_message(PCB_MSG_INFO, _("Importing PCB netlist %s\n"), filename); @@ -83,7 +83,7 @@ if (*command == '\0' || (fp = pcb_popen(command, "r")) == NULL) { pcb_popen_error_message(command); free(command); - return (1); + return 1; } free(command); } @@ -147,7 +147,7 @@ if (!lines) { pcb_message(PCB_MSG_ERROR, _("Empty netlist file!\n")); pcb_pclose(fp); - return (1); + return 1; } if (used_popen) pcb_pclose(fp); @@ -155,7 +155,7 @@ fclose(fp); pcb_sort_netlist(); pcb_ratspatch_make_edited(PCB); - return (0); + return 0; } int netlist_support_prio(pcb_plug_import_t *ctx, unsigned int aspects, FILE *fp, const char *filename) Index: trunk/src_plugins/io_autotrax/write.c =================================================================== --- trunk/src_plugins/io_autotrax/write.c (revision 13665) +++ trunk/src_plugins/io_autotrax/write.c (revision 13666) @@ -439,7 +439,7 @@ fputs("ENDPCB\r\n",FP); /*autotrax footer*/ - return (0); + return 0; } int write_autotrax_layout_tracks(FILE * FP, pcb_cardinal_t number, pcb_layer_t *layer) Index: trunk/src_plugins/io_hyp/parser.c =================================================================== --- trunk/src_plugins/io_hyp/parser.c (revision 13665) +++ trunk/src_plugins/io_hyp/parser.c (revision 13666) @@ -342,7 +342,7 @@ /* parse hyperlynx file */ hyyin = pcb_fopen(fname, "r"); if (hyyin == NULL) - return (1); + return 1; retval = hyyparse(); fclose(hyyin); @@ -360,7 +360,7 @@ hyp_netlist_end(); - return (retval); + return retval; } /* print error message */ Index: trunk/src_plugins/io_kicad/write.c =================================================================== --- trunk/src_plugins/io_kicad/write.c (revision 13665) +++ trunk/src_plugins/io_kicad/write.c (revision 13666) @@ -467,7 +467,7 @@ if (outlineCount > 0) { free(outlineLayers); } - return (0); + return 0; } Index: trunk/src_plugins/io_kicad_legacy/write.c =================================================================== --- trunk/src_plugins/io_kicad_legacy/write.c (revision 13665) +++ trunk/src_plugins/io_kicad_legacy/write.c (revision 13666) @@ -74,7 +74,7 @@ for (i = 0; i < pcb_max_layer; i++) WriteLayerData(FP, i, &(buff->Data->Layer[i])); */ - return (0); + return 0; } /* --------------------------------------------------------------------------- @@ -486,7 +486,7 @@ if (outlineCount > 0) { free(outlineLayers); } - return (0); + return 0; } /* --------------------------------------------------------------------------- Index: trunk/src_plugins/io_pcb/file.c =================================================================== --- trunk/src_plugins/io_pcb/file.c (revision 13665) +++ trunk/src_plugins/io_pcb/file.c (revision 13666) @@ -605,7 +605,7 @@ if (!elem_only) WriteLayers(FP, buff->Data); - return (0); + return 0; } /* --------------------------------------------------------------------------- @@ -629,7 +629,7 @@ WritePCBNetlistData(FP); WritePCBNetlistPatchData(FP); - return (0); + return 0; } /* --------------------------------------------------------------------------- Index: trunk/src_plugins/report/drill.c =================================================================== --- trunk/src_plugins/report/drill.c (revision 13665) +++ trunk/src_plugins/report/drill.c (revision 13666) @@ -219,7 +219,7 @@ pcb_r_end(&it); qsort(AllDrills->Drill, AllDrills->DrillN, sizeof(DrillType), DrillQSort); - return (AllDrills); + return AllDrills; } #define ROUND(x,n) ((int)(((x)+(n)/2)/(n))*(n)) Index: trunk/src_plugins/report/report.c =================================================================== --- trunk/src_plugins/report/report.c (revision 13665) +++ trunk/src_plugins/report/report.c (revision 13666) @@ -832,7 +832,7 @@ if (re_sei_errno(regex) != 0) { pcb_message(PCB_MSG_ERROR, _("regexp error: %s\n"), re_error_str(re_sei_errno(regex))); re_sei_free(regex); - return (1); + return 1; } } Index: trunk/src_plugins/rubberband_orig/rubberband.c =================================================================== --- trunk/src_plugins/rubberband_orig/rubberband.c (revision 13665) +++ trunk/src_plugins/rubberband_orig/rubberband.c (revision 13666) @@ -1024,7 +1024,7 @@ ptr->delta_index[point_number] = delta_index; ptr->delta_index[point_number^1] = -1; - return (ptr); + return ptr; } static pcb_rubberband_arc_t *pcb_rubber_band_create_arc(rubber_ctx_t *rbnd, pcb_layer_t *Layer, pcb_arc_t *Arc, int end) @@ -1045,7 +1045,7 @@ ptr->Ends |= end; - return (ptr); + return ptr; } /*** event handlers ***/ Index: trunk/src_plugins/shand_cmd/command.c =================================================================== --- trunk/src_plugins/shand_cmd/command.c (revision 13665) +++ trunk/src_plugins/shand_cmd/command.c (revision 13666) @@ -88,7 +88,7 @@ " q! quits without save warning\n" " rn [file] read in a net-list file\n" " s [file] save layout\n" " w [file] save layout\n" " wq [file] save layout and quit\n"); - return (0); + return 0; } /* ---------------------------------------------------------------------- */ @@ -122,12 +122,12 @@ default: /* usage */ pcb_message(PCB_MSG_ERROR, "Usage: l [name]\n loads layout data\n"); - return (1); + return 1; } if (!PCB->Changed || pcb_gui->confirm_dialog("OK to override layout data?", 0)) pcb_load_pcb(filename, format, pcb_true, 0); - return (0); + return 0; } /* --------------------------------------------------------------------------- */ @@ -158,9 +158,9 @@ default: /* usage */ pcb_message(PCB_MSG_ERROR, pcb_false, "Usage: le [name]\n loads element data to buffer\n"); - return (1); + return 1; } - return (0); + return 0; } /* --------------------------------------------------------------------------- */ @@ -194,9 +194,9 @@ default: /* usage */ pcb_message(PCB_MSG_ERROR, "Usage: m [name]\n loads layout data to buffer\n"); - return (1); + return 1; } - return (0); + return 0; } /* --------------------------------------------------------------------------- */ @@ -271,13 +271,13 @@ default: /* usage */ pcb_message(PCB_MSG_ERROR, "Usage: rn [name]\n reads in a netlist file\n"); - return (1); + return 1; } if (PCB->Netlistname) free(PCB->Netlistname); PCB->Netlistname = pcb_strdup_strip_wspace(filename); - return (0); + return 0; } /* ---------------------------------------------------------------------- */ @@ -334,9 +334,9 @@ default: pcb_message(PCB_MSG_ERROR, "Usage: s [name] | w [name]\n saves layout data\n"); - return (1); + return 1; } - return (0); + return 0; } /* --------------------------------------------------------------------------- */ @@ -358,7 +358,7 @@ { if (!CommandSaveLayout(argc, argv, x, y)) return CommandQuit(0, 0, 0, 0); - return (1); + return 1; } /* --------------------------------------------------------------------------- */