Index: trunk/scconfig/Rev.h =================================================================== --- trunk/scconfig/Rev.h (revision 4599) +++ trunk/scconfig/Rev.h (revision 4600) @@ -1 +1 @@ -static const int myrev = 4599; +static const int myrev = 4600; Index: trunk/scconfig/Rev.tab =================================================================== --- trunk/scconfig/Rev.tab (revision 4599) +++ trunk/scconfig/Rev.tab (revision 4600) @@ -1,4 +1,4 @@ -4599 configure unravel - the big cleanup, moving code and files +4600 configure unravel - the big cleanup, moving code and files 4588 configure disable bison by default 4587 configure draw_fab moved to a plugin 4450 configure io_lihata plugin config and 3rd party lib dependency fix Index: trunk/src/create.c =================================================================== --- trunk/src/create.c (revision 4599) +++ trunk/src/create.c (nonexistent) @@ -1,82 +0,0 @@ -/* - * COPYRIGHT - * - * PCB, interactive printed circuit board design - * Copyright (C) 1994,1995,1996, 2005 Thomas Nau - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * Contact addresses for paper mail and Email: - * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany - * Thomas.Nau@rz.uni-ulm.de - * - */ - -/* functions used to create vias, pins ... */ - -#include "config.h" - -#include - -#include "conf_core.h" - -#include "board.h" -#include "math_helper.h" -#include "create.h" -#include "data.h" -#include "misc.h" -#include "rtree.h" -#include "search.h" -#include "undo.h" -#include "plug_io.h" -#include "stub_vendor.h" -#include "hid_actions.h" -#include "paths.h" -#include "compat_misc.h" -#include "compat_nls.h" -#include "obj_all.h" - -/* --------------------------------------------------------------------------- - * some local identifiers - */ - -/* current object ID; incremented after each creation of an object */ -long int ID = 1; - -pcb_bool pcb_create_be_lenient = pcb_false; - -/* --------------------------------------------------------------------------- - * Set the lenience mode. - */ -void CreateBeLenient(pcb_bool v) -{ - pcb_create_be_lenient = v; -} - -void CreateIDBump(int min_id) -{ - if (ID < min_id) - ID = min_id; -} - -void CreateIDReset(void) -{ - ID = 1; -} - -long int CreateIDGet(void) -{ - return ID++; -} Index: trunk/src/create.h =================================================================== --- trunk/src/create.h (revision 4599) +++ trunk/src/create.h (nonexistent) @@ -1,48 +0,0 @@ -/* - * COPYRIGHT - * - * PCB, interactive printed circuit board design - * Copyright (C) 1994,1995,1996 Thomas Nau - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * Contact addresses for paper mail and Email: - * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany - * Thomas.Nau@rz.uni-ulm.de - * - */ - -/* prototypes for create routines */ - -#ifndef PCB_CREATE_H -#define PCB_CREATE_H - -#include "config.h" -#include "rubberband.h" -#include "library.h" - -/* pcb_true during file loads, for example to allow overlapping vias. - pcb_false otherwise, to stop the user from doing normally dangerous - things. */ -void CreateBeLenient(pcb_bool); -extern pcb_bool pcb_create_be_lenient; - -void CreateIDBump(int min_id); -void CreateIDReset(void); -long int CreateIDGet(void); - -/* *add_on_layer(): Add objects without creating them or making any "sanity modifications" to them */ - -#endif Index: trunk/src/Makefile.dep =================================================================== --- trunk/src/Makefile.dep (revision 4599) +++ trunk/src/Makefile.dep (revision 4600) @@ -15,8 +15,8 @@ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h board.h \ font.h box.h math_helper.h move.h misc_util.h data.h crosshair.h \ rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h hid.h misc.h \ - create.h rtree.h undo.h move.h draw.h set.h polygon.h rtree.h plugins.h \ - obj_all.h box.h hid_actions.h dolists.h + rtree.h undo.h move.h draw.h set.h polygon.h rtree.h plugins.h obj_all.h \ + box.h hid_actions.h dolists.h ../src_plugins/autoplace/action.o: ../src_plugins/autoplace/action.c \ ../config.h ../src_plugins/autoplace/autoplace.h global_typedefs.h \ pcb_bool.h unit.h plugins.h set.h global_typedefs.h hid_actions.h hid.h \ @@ -77,11 +77,11 @@ vtonpoint.h hid.h error.h drc.h buffer.h macro.h \ ../src_plugins/autoroute/autoroute.h board.h const.h macro.h \ vtroutestyle.h library.h rats_patch.h board.h font.h box.h math_helper.h \ - move.h misc_util.h box.h create.h draw.h error.h find.h heap.h rtree.h \ - misc.h ../src_plugins/autoroute/mtspace.h \ - ../src_plugins/autoroute/vector.h polygon.h rtree.h rats.h netlist.h \ - route_style.h remove.h obj_pinvia_therm.h undo.h pcb-printf.h set.h \ - layer.h compat_nls.h obj_all.h ptrlist.h + move.h misc_util.h box.h draw.h error.h find.h heap.h rtree.h misc.h \ + ../src_plugins/autoroute/mtspace.h ../src_plugins/autoroute/vector.h \ + polygon.h rtree.h rats.h netlist.h route_style.h remove.h \ + obj_pinvia_therm.h undo.h pcb-printf.h set.h layer.h compat_nls.h \ + obj_all.h ptrlist.h ../src_plugins/autoroute/mtspace.o: ../src_plugins/autoroute/mtspace.c \ ../config.h box.h math_helper.h global_typedefs.h pcb_bool.h unit.h \ global_objs.h ../src_3rd/genlist/gendlist.h attrib.h flag.h \ @@ -105,8 +105,8 @@ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h board.h \ font.h box.h math_helper.h move.h misc_util.h rats.h netlist.h \ route_style.h polygon.h rtree.h data.h crosshair.h rubberband.h \ - vtonpoint.h hid.h error.h drc.h buffer.h hid.h misc.h create.h rtree.h \ - undo.h plugins.h obj_all.h hid_actions.h dolists.h + vtonpoint.h hid.h error.h drc.h buffer.h hid.h misc.h rtree.h undo.h \ + plugins.h obj_all.h hid_actions.h dolists.h ../src_plugins/dbus/dbus-pcbmain.o: ../src_plugins/dbus/dbus-pcbmain.c \ ../config.h ../src_plugins/dbus/dbus-pcbmain.h hid.h error.h drc.h \ unit.h global_typedefs.h pcb_bool.h attrib.h @@ -174,8 +174,8 @@ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h board.h \ font.h box.h math_helper.h move.h misc_util.h data.h crosshair.h \ rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h hid.h misc.h \ - create.h rtree.h undo.h rats.h netlist.h route_style.h error.h move.h \ - draw.h set.h plugins.h action_helper.h hid_actions.h dolists.h + rtree.h undo.h rats.h netlist.h route_style.h error.h move.h draw.h \ + set.h plugins.h action_helper.h hid_actions.h dolists.h ../src_plugins/distaligntext/distaligntext.o: \ ../src_plugins/distaligntext/distaligntext.c ../config.h board.h const.h \ macro.h global_typedefs.h pcb_bool.h unit.h vtroutestyle.h \ @@ -192,8 +192,8 @@ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h board.h \ font.h box.h math_helper.h move.h misc_util.h data.h crosshair.h \ rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h hid.h misc.h \ - create.h rtree.h undo.h rats.h netlist.h route_style.h error.h move.h \ - draw.h set.h plugins.h action_helper.h hid_actions.h conf_core.h conf.h \ + rtree.h undo.h rats.h netlist.h route_style.h error.h move.h draw.h \ + set.h plugins.h action_helper.h hid_actions.h conf_core.h conf.h \ pcb-printf.h ../src_3rd/genvector/gds_char.h \ ../src_3rd/liblihata/lihata.h ../src_3rd/liblihata/dom.h \ ../src_3rd/liblihata/lihata.h ../src_3rd/liblihata/parser.h \ @@ -217,8 +217,8 @@ obj_poly_list.h obj_poly.h polyarea.h obj_text_list.h obj_rat_list.h \ obj_rat.h library.h rats_patch.h board.h font.h box.h math_helper.h \ move.h misc_util.h data.h crosshair.h rubberband.h vtonpoint.h hid.h \ - error.h drc.h buffer.h create.h remove.h move.h draw.h undo.h flag_str.h \ - find.h layer.h pcb-printf.h plugins.h hid_flags.h hid_actions.h \ + error.h drc.h buffer.h remove.h move.h draw.h undo.h flag_str.h find.h \ + layer.h pcb-printf.h plugins.h hid_flags.h hid_actions.h \ ../src_plugins/djopt/djopt_conf.h conf.h obj_line.h obj_pinvia.h \ dolists.h ../src_plugins/djopt/djopt_conf_fields.h ../src_plugins/draw_fab/draw_fab.o: ../src_plugins/draw_fab/draw_fab.c \ @@ -254,9 +254,8 @@ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h board.h \ font.h box.h math_helper.h move.h misc_util.h data.h crosshair.h \ rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h misc.h error.h \ - buffer.h create.h layer.h plugins.h compat_misc.h misc_util.h obj_all.h \ - hid.h hid_attrib.h hid_nogui.h hid_draw_helpers.h hid_init.h \ - hid_helper.h + buffer.h layer.h plugins.h compat_misc.h misc_util.h obj_all.h hid.h \ + hid_attrib.h hid_nogui.h hid_draw_helpers.h hid_init.h hid_helper.h ../src_plugins/export_bom/bom.o: ../src_plugins/export_bom/bom.c \ ../config.h conf_core.h conf.h global_typedefs.h pcb_bool.h unit.h \ pcb-printf.h ../src_3rd/genvector/gds_char.h \ @@ -295,7 +294,7 @@ font.h box.h math_helper.h move.h misc_util.h data.h crosshair.h \ rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h error.h misc.h \ rats.h netlist.h route_style.h buffer.h change.h draw.h set.h undo.h \ - pcb-printf.h ../src_3rd/genvector/gds_char.h create.h polygon.h rtree.h \ + pcb-printf.h ../src_3rd/genvector/gds_char.h polygon.h rtree.h \ compat_misc.h layer.h hid.h hid_draw_helpers.h hid_nogui.h hid_actions.h \ hid_init.h hid_attrib.h hid_helper.h plugins.h obj_line.h obj_pinvia.h \ dolists.h @@ -460,7 +459,7 @@ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h board.h \ font.h box.h math_helper.h move.h misc_util.h math_helper.h data.h \ crosshair.h rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h misc.h \ - error.h buffer.h create.h conf_core.h conf.h pcb-printf.h \ + error.h buffer.h conf_core.h conf.h pcb-printf.h \ ../src_3rd/genvector/gds_char.h ../src_3rd/liblihata/lihata.h \ ../src_3rd/liblihata/dom.h ../src_3rd/liblihata/lihata.h \ ../src_3rd/liblihata/parser.h ../src_3rd/liblihata/genht/htsp.h \ @@ -483,8 +482,8 @@ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h board.h \ font.h box.h math_helper.h move.h misc_util.h data.h crosshair.h \ rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h misc.h error.h \ - buffer.h create.h misc_util.h hid.h hid_nogui.h hid_draw_helpers.h \ - hid_init.h ../src_plugins/export_openscad/scad.h + buffer.h misc_util.h hid.h hid_nogui.h hid_draw_helpers.h hid_init.h \ + ../src_plugins/export_openscad/scad.h ../src_plugins/export_openscad/scadproto.o: \ ../src_plugins/export_openscad/scadproto.c ../config.h data.h \ globalconst.h global_typedefs.h pcb_bool.h unit.h global_objs.h \ @@ -499,8 +498,8 @@ obj_text_list.h obj_rat_list.h obj_rat.h crosshair.h rubberband.h \ vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ ../src_3rd/genvector/genvector_undef.h hid.h error.h drc.h buffer.h \ - misc.h error.h buffer.h create.h library.h hid.h hid_nogui.h \ - hid_draw_helpers.h hid_init.h ../src_plugins/export_openscad/scad.h + misc.h error.h buffer.h hid.h hid_nogui.h hid_draw_helpers.h hid_init.h \ + ../src_plugins/export_openscad/scad.h ../src_plugins/export_png/png.o: ../src_plugins/export_png/png.c \ ../config.h conf_core.h conf.h global_typedefs.h pcb_bool.h unit.h \ pcb-printf.h ../src_3rd/genvector/gds_char.h \ @@ -655,9 +654,9 @@ ../src_3rd/liblihata/genht/ht.h ../src_3rd/liblihata/genht/hash.h \ obj_poly_list.h obj_poly.h polyarea.h obj_text_list.h obj_rat_list.h \ obj_rat.h library.h rats_patch.h board.h font.h box.h math_helper.h \ - move.h misc_util.h create.h rubberband.h data.h crosshair.h vtonpoint.h \ - hid.h error.h drc.h buffer.h draw.h flag.h layer.h misc.h move.h \ - remove.h rtree.h flag_str.h undo.h pcb-printf.h plugins.h hid_actions.h \ + move.h misc_util.h data.h crosshair.h rubberband.h vtonpoint.h hid.h \ + error.h drc.h buffer.h draw.h flag.h layer.h misc.h move.h remove.h \ + rtree.h flag_str.h undo.h pcb-printf.h plugins.h hid_actions.h \ compat_misc.h dolists.h ../src_plugins/fp_fs/fp_fs.o: ../src_plugins/fp_fs/fp_fs.c ../config.h \ data.h globalconst.h global_typedefs.h pcb_bool.h unit.h global_objs.h \ @@ -867,8 +866,8 @@ ../src_plugins/hid_gtk/ghid-propedit.h conf_core.h conf.h pcb-printf.h \ ../src_3rd/genvector/gds_char.h ../src_3rd/liblihata/lihata.h \ ../src_3rd/genvector/vtp0.h list_conf.h event.h compat_misc.h \ - ../src_plugins/hid_gtk/hid_gtk_conf.h conf.h create.h compat_nls.h \ - polygon.h rtree.h obj_all.h + ../src_plugins/hid_gtk/hid_gtk_conf.h conf.h compat_nls.h polygon.h \ + rtree.h obj_all.h ../src_plugins/hid_gtk/ghid-route-style-selector.o: \ ../src_plugins/hid_gtk/ghid-route-style-selector.c ../config.h \ conf_core.h conf.h global_typedefs.h pcb_bool.h unit.h pcb-printf.h \ @@ -928,7 +927,7 @@ ../src_plugins/hid_gtk/ghid-propedit.h conf_core.h conf.h pcb-printf.h \ ../src_3rd/genvector/gds_char.h ../src_3rd/liblihata/lihata.h \ ../src_3rd/genvector/vtp0.h list_conf.h event.h compat_misc.h \ - ../src_plugins/hid_gtk/hid_gtk_conf.h conf.h create.h \ + ../src_plugins/hid_gtk/hid_gtk_conf.h conf.h \ ../src_plugins/hid_gtk/ghid-search.h ../src_plugins/hid_gtk/win_place.h \ hid_actions.h compat_nls.h misc_util.h \ ../src_plugins/hid_gtk/ghid-search-tab.h @@ -1313,8 +1312,8 @@ ../src_plugins/hid_gtk/ghid-route-style-selector.h route_style.h \ ../src_plugins/hid_gtk/gui-pinout-preview.h \ ../src_plugins/hid_gtk/ghid-propedit.h event.h compat_misc.h \ - ../src_plugins/hid_gtk/hid_gtk_conf.h conf.h create.h draw.h error.h \ - find.h rats.h netlist.h route_style.h remove.h search.h rats.h select.h \ + ../src_plugins/hid_gtk/hid_gtk_conf.h conf.h draw.h error.h find.h \ + rats.h netlist.h route_style.h remove.h search.h rats.h select.h \ operation.h set.h undo.h hid_actions.h compat_nls.h obj_all.h ../src_plugins/hid_gtk/gui-output-events.o: \ ../src_plugins/hid_gtk/gui-output-events.c ../config.h conf_core.h \ @@ -1434,10 +1433,10 @@ ../src_plugins/hid_gtk/gui-pinout-preview.h \ ../src_plugins/hid_gtk/ghid-propedit.h event.h compat_misc.h \ ../src_plugins/hid_gtk/hid_gtk_conf.h conf.h hid_cfg_action.h \ - action_helper.h buffer.h change.h copy.h create.h crosshair.h draw.h \ - error.h plug_io.h find.h insert.h layer.h move.h pcb-printf.h polygon.h \ - rtree.h rats.h netlist.h route_style.h remove.h rotate.h rubberband.h \ - search.h rats.h select.h operation.h set.h undo.h free_atexit.h paths.h \ + action_helper.h buffer.h change.h copy.h crosshair.h draw.h error.h \ + plug_io.h find.h insert.h layer.h move.h pcb-printf.h polygon.h rtree.h \ + rats.h netlist.h route_style.h remove.h rotate.h rubberband.h search.h \ + rats.h select.h operation.h set.h undo.h free_atexit.h paths.h \ ../src_plugins/hid_gtk/gui-icons-mode-buttons.data \ ../src_plugins/hid_gtk/gui-icons-misc.data \ ../src_plugins/hid_gtk/win_place.h hid_attrib.h hid_actions.h \ @@ -1668,7 +1667,7 @@ font.h box.h math_helper.h move.h misc_util.h data.h crosshair.h \ rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h error.h misc.h \ rats.h netlist.h route_style.h buffer.h change.h draw.h set.h undo.h \ - pcb-printf.h ../src_3rd/genvector/gds_char.h create.h polygon.h rtree.h \ + pcb-printf.h ../src_3rd/genvector/gds_char.h polygon.h rtree.h \ compat_misc.h compat_nls.h obj_pinvia.h obj_rat.h action_helper.h hid.h \ hid_draw_helpers.h hid_nogui.h hid_actions.h hid_init.h hid_attrib.h \ hid_helper.h plugins.h dolists.h @@ -1797,8 +1796,8 @@ ../src_3rd/liblihata/genht/htsp.h ../src_3rd/genvector/vtp0.h \ list_conf.h error.h data.h crosshair.h rubberband.h vtonpoint.h hid.h \ error.h drc.h buffer.h ../src_plugins/io_kicad/read.h layer.h const.h \ - netlist.h route_style.h create.h polygon.h rtree.h misc.h misc_util.h \ - conf_core.h move.h macro.h obj_all.h + netlist.h route_style.h polygon.h rtree.h misc.h misc_util.h conf_core.h \ + move.h macro.h obj_all.h ../src_plugins/io_kicad/uniq_name.o: ../src_plugins/io_kicad/uniq_name.c \ ../src_3rd/liblihata/genht/hash.h ../config.h \ ../src_plugins/io_kicad/uniq_name.h ../src_3rd/liblihata/genht/htsp.h \ @@ -1921,8 +1920,8 @@ plug_io.h conf.h pcb-printf.h ../src_3rd/genvector/gds_char.h \ ../src_3rd/liblihata/lihata.h ../src_3rd/genvector/vtp0.h list_conf.h \ flag_str.h compat_misc.h macro.h error.h misc.h misc_util.h layer.h \ - create.h vtptr.h ../src_plugins/io_lihata/common.h polygon.h rtree.h \ - conf_core.h obj_all.h + vtptr.h ../src_plugins/io_lihata/common.h polygon.h rtree.h conf_core.h \ + obj_all.h ../src_plugins/io_lihata/write.o: ../src_plugins/io_lihata/write.c \ ../src_3rd/liblihata/tree.h ../src_3rd/liblihata/dom.h \ ../src_3rd/liblihata/lihata.h ../src_3rd/liblihata/parser.h \ @@ -1982,17 +1981,16 @@ ../src_3rd/genvector/vtp0.h list_conf.h \ ../src_3rd/genlist/gentdlist_undef.h ../src_3rd/genlist/gentdlist_impl.h \ ../src_3rd/genlist/gendlist.h globalconst.h buffer.h global_objs.h \ - ../src_3rd/genlist/gendlist.h attrib.h flag.h change.h create.h \ - rubberband.h library.h crosshair.h vtonpoint.h hid.h error.h drc.h \ - obj_line.h obj_common.h obj_poly.h polyarea.h data.h layer.h \ - obj_all_list.h obj_arc_list.h obj_arc.h obj_elem_list.h obj_elem.h \ - obj_line_list.h obj_pad_list.h obj_pad.h obj_pinvia_list.h obj_pinvia.h \ - obj_text.h ht_element.h ../src_3rd/liblihata/genht/ht.h \ - ../src_3rd/liblihata/genht/hash.h obj_poly_list.h obj_text_list.h \ - obj_rat_list.h obj_rat.h crosshair.h buffer.h error.h \ - ../src_plugins/io_pcb/file.h board.h const.h macro.h vtroutestyle.h \ - rats_patch.h board.h font.h box.h math_helper.h move.h misc_util.h \ - plug_io.h hid.h layer.h misc.h move.h \ + ../src_3rd/genlist/gendlist.h attrib.h flag.h change.h crosshair.h \ + rubberband.h vtonpoint.h hid.h error.h drc.h obj_line.h obj_common.h \ + obj_poly.h polyarea.h data.h layer.h obj_all_list.h obj_arc_list.h \ + obj_arc.h obj_elem_list.h obj_elem.h obj_line_list.h obj_pad_list.h \ + obj_pad.h obj_pinvia_list.h obj_pinvia.h obj_text.h ht_element.h \ + ../src_3rd/liblihata/genht/ht.h ../src_3rd/liblihata/genht/hash.h \ + obj_poly_list.h obj_text_list.h obj_rat_list.h obj_rat.h crosshair.h \ + buffer.h error.h ../src_plugins/io_pcb/file.h board.h const.h macro.h \ + vtroutestyle.h library.h rats_patch.h board.h font.h box.h math_helper.h \ + move.h misc_util.h plug_io.h hid.h layer.h misc.h move.h \ ../src_plugins/io_pcb/parse_common.h pcb-printf.h polygon.h rtree.h \ rats.h netlist.h route_style.h remove.h set.h flag_str.h compat_fs.h \ paths.h rats_patch.h hid_actions.h hid_flags.h \ @@ -2045,8 +2043,8 @@ vtroutestyle.h library.h rats_patch.h board.h font.h box.h math_helper.h \ move.h misc_util.h plug_io.h misc.h flag_str.h \ ../src_plugins/io_pcb/parse_common.h ../src_plugins/io_pcb/parse_y.h \ - create.h plug_footprint.h vtlibrary.h ../src_plugins/io_pcb/attribs.h \ - compat_misc.h compat_cc.h + plug_footprint.h vtlibrary.h ../src_plugins/io_pcb/attribs.h \ + compat_misc.h compat_cc.h obj_common.h ../src_plugins/io_pcb/parse_y.o: ../src_plugins/io_pcb/parse_y.c \ ../config.h global_objs.h ../src_3rd/genlist/gendlist.h attrib.h flag.h \ globalconst.h global_typedefs.h pcb_bool.h unit.h board.h const.h \ @@ -2065,8 +2063,8 @@ ../src_3rd/liblihata/lihata.h ../src_3rd/liblihata/dom.h \ ../src_3rd/liblihata/lihata.h ../src_3rd/liblihata/parser.h \ ../src_3rd/liblihata/genht/htsp.h ../src_3rd/liblihata/genht/ht.h \ - ../src_3rd/genvector/vtp0.h list_conf.h layer.h create.h rubberband.h \ - data.h crosshair.h vtonpoint.h hid.h error.h drc.h buffer.h error.h \ + ../src_3rd/genvector/vtp0.h list_conf.h layer.h data.h crosshair.h \ + rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h error.h \ ../src_plugins/io_pcb/file.h plug_io.h misc.h \ ../src_plugins/io_pcb/parse_l.h polygon.h rtree.h remove.h rtree.h \ flag_str.h obj_pinvia_therm.h rats_patch.h ../src_plugins/io_pcb/flags.h \ @@ -2086,9 +2084,9 @@ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h board.h \ font.h box.h math_helper.h move.h misc_util.h data.h crosshair.h \ rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h hid.h misc.h \ - create.h rtree.h undo.h rats.h netlist.h route_style.h polygon.h rtree.h \ - remove.h error.h set.h pcb-printf.h ../src_3rd/genvector/gds_char.h \ - plugins.h hid_actions.h layer.h conf_core.h conf.h pcb-printf.h \ + rtree.h undo.h rats.h netlist.h route_style.h polygon.h rtree.h remove.h \ + error.h set.h pcb-printf.h ../src_3rd/genvector/gds_char.h plugins.h \ + hid_actions.h layer.h conf_core.h conf.h pcb-printf.h \ ../src_3rd/liblihata/lihata.h ../src_3rd/liblihata/dom.h \ ../src_3rd/liblihata/lihata.h ../src_3rd/liblihata/parser.h \ ../src_3rd/liblihata/genht/htsp.h ../src_3rd/liblihata/genht/ht.h \ @@ -2140,10 +2138,9 @@ ../src_plugins/mincut/pcb-mincut/../../../config.h compat_misc.h \ ../config.h ../src_plugins/mincut/rats_mincut.o: ../src_plugins/mincut/rats_mincut.c \ - ../config.h const.h create.h rubberband.h global_objs.h \ - ../src_3rd/genlist/gendlist.h attrib.h flag.h globalconst.h \ - global_typedefs.h pcb_bool.h unit.h library.h data.h layer.h \ - obj_all_list.h obj_arc_list.h obj_common.h obj_arc.h \ + ../config.h const.h data.h globalconst.h global_typedefs.h pcb_bool.h \ + unit.h global_objs.h ../src_3rd/genlist/gendlist.h attrib.h flag.h \ + layer.h obj_all_list.h obj_arc_list.h obj_common.h obj_arc.h \ ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ ../src_3rd/genlist/gentdlist_undef.h obj_elem_list.h obj_elem.h \ obj_line_list.h obj_line.h obj_pad_list.h obj_pad.h obj_pinvia_list.h \ @@ -2150,10 +2147,10 @@ obj_pinvia.h obj_text.h ht_element.h ../src_3rd/liblihata/genht/ht.h \ ../src_3rd/liblihata/genht/ht_inlines.h \ ../src_3rd/liblihata/genht/hash.h obj_poly_list.h obj_poly.h polyarea.h \ - obj_text_list.h obj_rat_list.h obj_rat.h crosshair.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ + obj_text_list.h obj_rat_list.h obj_rat.h crosshair.h rubberband.h \ + vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ ../src_3rd/genvector/genvector_undef.h hid.h error.h drc.h buffer.h \ - draw.h error.h plug_io.h conf.h pcb-printf.h \ + draw.h error.h plug_io.h library.h conf.h pcb-printf.h \ ../src_3rd/genvector/gds_char.h ../src_3rd/liblihata/lihata.h \ ../src_3rd/liblihata/dom.h ../src_3rd/liblihata/lihata.h \ ../src_3rd/liblihata/parser.h ../src_3rd/liblihata/genht/htsp.h \ @@ -2201,9 +2198,9 @@ ../src_3rd/liblihata/genht/hash.h obj_poly_list.h obj_poly.h polyarea.h \ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h board.h \ font.h box.h math_helper.h move.h misc_util.h data.h crosshair.h \ - rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h macro.h create.h \ - remove.h hid.h error.h rtree.h polygon.h rtree.h polyarea.h flag_str.h \ - find.h misc.h draw.h undo.h plugins.h hid_actions.h obj_poly.h dolists.h + rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h macro.h remove.h \ + hid.h error.h rtree.h polygon.h rtree.h polyarea.h flag_str.h find.h \ + misc.h draw.h undo.h plugins.h hid_actions.h obj_poly.h dolists.h ../src_plugins/polystitch/polystitch.o: \ ../src_plugins/polystitch/polystitch.c ../config.h board.h const.h \ macro.h global_typedefs.h pcb_bool.h unit.h vtroutestyle.h \ @@ -2219,9 +2216,9 @@ ../src_3rd/liblihata/genht/hash.h obj_poly_list.h obj_poly.h polyarea.h \ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h board.h \ font.h box.h math_helper.h move.h misc_util.h data.h crosshair.h \ - rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h macro.h create.h \ - remove.h hid.h error.h rtree.h draw.h set.h polygon.h rtree.h misc.h \ - plugins.h hid_actions.h obj_poly.h dolists.h + rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h macro.h remove.h \ + hid.h error.h rtree.h draw.h set.h polygon.h rtree.h misc.h plugins.h \ + hid_actions.h obj_poly.h dolists.h ../src_plugins/propedit/propedit.o: ../src_plugins/propedit/propedit.c \ plugins.h ../config.h ../src_plugins/propedit/props.h global_typedefs.h \ pcb_bool.h unit.h ../src_3rd/liblihata/genht/htsp.h \ @@ -2267,16 +2264,16 @@ ../src_3rd/liblihata/genht/ht.h ../src_3rd/liblihata/genht/ht_inlines.h \ ../src_3rd/genvector/vtp0.h list_conf.h \ ../src_3rd/genlist/gentdlist_undef.h ../src_3rd/genlist/gentdlist_impl.h \ - ../src_3rd/genlist/gendlist.h globalconst.h create.h rubberband.h \ - global_objs.h ../src_3rd/genlist/gendlist.h attrib.h flag.h library.h \ - board.h const.h macro.h vtroutestyle.h layer.h obj_all_list.h \ - obj_arc_list.h obj_common.h obj_arc.h obj_elem_list.h obj_elem.h \ - obj_line_list.h obj_line.h obj_pad_list.h obj_pad.h obj_pinvia_list.h \ - obj_pinvia.h obj_text.h ht_element.h ../src_3rd/liblihata/genht/ht.h \ - ../src_3rd/liblihata/genht/hash.h obj_poly_list.h obj_poly.h polyarea.h \ - obj_text_list.h obj_rat_list.h obj_rat.h rats_patch.h board.h font.h \ - box.h math_helper.h move.h misc_util.h data.h crosshair.h vtonpoint.h \ - hid.h error.h drc.h buffer.h draw.h misc.h move.h pcb-printf.h remove.h \ + ../src_3rd/genlist/gendlist.h globalconst.h board.h const.h macro.h \ + vtroutestyle.h global_objs.h ../src_3rd/genlist/gendlist.h attrib.h \ + flag.h layer.h obj_all_list.h obj_arc_list.h obj_common.h obj_arc.h \ + obj_elem_list.h obj_elem.h obj_line_list.h obj_line.h obj_pad_list.h \ + obj_pad.h obj_pinvia_list.h obj_pinvia.h obj_text.h ht_element.h \ + ../src_3rd/liblihata/genht/ht.h ../src_3rd/liblihata/genht/hash.h \ + obj_poly_list.h obj_poly.h polyarea.h obj_text_list.h obj_rat_list.h \ + obj_rat.h library.h rats_patch.h board.h font.h box.h math_helper.h \ + move.h misc_util.h data.h crosshair.h rubberband.h vtonpoint.h hid.h \ + error.h drc.h buffer.h draw.h misc.h move.h pcb-printf.h remove.h \ rtree.h flag_str.h undo.h layer.h plugins.h hid_actions.h misc_util.h \ obj_all.h dolists.h ../src_plugins/query/basic_fnc.o: ../src_plugins/query/basic_fnc.c \ @@ -2435,7 +2432,7 @@ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h board.h \ font.h box.h math_helper.h move.h misc_util.h data.h crosshair.h \ rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h hid.h misc.h \ - create.h rtree.h undo.h error.h change.h conf_core.h conf.h pcb-printf.h \ + rtree.h undo.h error.h change.h conf_core.h conf.h pcb-printf.h \ ../src_3rd/genvector/gds_char.h ../src_3rd/liblihata/lihata.h \ ../src_3rd/liblihata/dom.h ../src_3rd/liblihata/lihata.h \ ../src_3rd/liblihata/parser.h ../src_3rd/liblihata/genht/htsp.h \ @@ -2522,9 +2519,8 @@ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h board.h \ font.h box.h math_helper.h move.h misc_util.h data.h crosshair.h \ rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h hid.h misc.h \ - create.h rtree.h undo.h rats.h netlist.h route_style.h error.h move.h \ - draw.h set.h plugins.h action_helper.h hid_actions.h compat_nls.h \ - dolists.h + rtree.h undo.h rats.h netlist.h route_style.h error.h move.h draw.h \ + set.h plugins.h action_helper.h hid_actions.h compat_nls.h dolists.h ../src_plugins/stroke/stroke.o: ../src_plugins/stroke/stroke.c \ ../config.h math_helper.h board.h const.h macro.h global_typedefs.h \ pcb_bool.h unit.h vtroutestyle.h ../src_3rd/genvector/genvector_impl.h \ @@ -2562,7 +2558,7 @@ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h board.h \ font.h box.h math_helper.h move.h misc_util.h data.h crosshair.h \ rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h hid.h misc.h \ - create.h rtree.h undo.h plugins.h hid_actions.h obj_all.h dolists.h + rtree.h undo.h plugins.h hid_actions.h obj_all.h dolists.h ../src_plugins/toporouter/toporouter.o: \ ../src_plugins/toporouter/toporouter.c ../config.h \ ../src_plugins/toporouter/toporouter.h data.h globalconst.h \ @@ -2580,10 +2576,10 @@ ../src_3rd/genvector/genvector_undef.h hid.h error.h drc.h buffer.h \ macro.h ../src_plugins/toporouter/../autoroute/autoroute.h board.h \ const.h macro.h vtroutestyle.h library.h rats_patch.h board.h font.h \ - box.h math_helper.h move.h misc_util.h box.h create.h draw.h error.h \ - find.h heap.h rtree.h misc.h polygon.h rtree.h rats.h netlist.h \ - route_style.h remove.h obj_pinvia_therm.h undo.h ../src_3rd/gts/gts.h \ - pcb-printf.h ../src_3rd/genvector/gds_char.h compat_nls.h + box.h math_helper.h move.h misc_util.h box.h draw.h error.h find.h \ + heap.h rtree.h misc.h polygon.h rtree.h rats.h netlist.h route_style.h \ + remove.h obj_pinvia_therm.h undo.h ../src_3rd/gts/gts.h pcb-printf.h \ + ../src_3rd/genvector/gds_char.h compat_nls.h ../src_plugins/vendordrill/vendor.o: ../src_plugins/vendordrill/vendor.c \ ../config.h conf_core.h conf.h global_typedefs.h pcb_bool.h unit.h \ pcb-printf.h ../src_3rd/genvector/gds_char.h \ @@ -2736,11 +2732,11 @@ obj_pinvia.h obj_text.h ht_element.h ../src_3rd/liblihata/genht/ht.h \ ../src_3rd/liblihata/genht/hash.h obj_poly_list.h obj_poly.h polyarea.h \ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h font.h \ - box.h math_helper.h move.h misc_util.h change.h copy.h create.h \ - rubberband.h data.h crosshair.h vtonpoint.h hid.h error.h drc.h buffer.h \ - draw.h find.h insert.h misc.h polygon.h rtree.h remove.h rotate.h \ - search.h rats.h netlist.h route_style.h select.h operation.h set.h \ - undo.h stub_stroke.h funchash_core.h funchash.h funchash_core_list.h \ + box.h math_helper.h move.h misc_util.h change.h copy.h data.h \ + crosshair.h rubberband.h vtonpoint.h hid.h error.h drc.h buffer.h draw.h \ + find.h insert.h misc.h polygon.h rtree.h remove.h rotate.h search.h \ + rats.h netlist.h route_style.h select.h operation.h set.h undo.h \ + stub_stroke.h funchash_core.h funchash.h funchash_core_list.h \ hid_actions.h compat_misc.h compat_nls.h obj_all.h attrib.o: attrib.c ../config.h compat_misc.h attrib.h board.o: board.c ../config.h board.h const.h macro.h global_typedefs.h \ @@ -2761,7 +2757,7 @@ ../src_3rd/liblihata/dom.h ../src_3rd/liblihata/lihata.h \ ../src_3rd/liblihata/parser.h ../src_3rd/liblihata/genht/htsp.h \ ../src_3rd/liblihata/genht/ht.h ../src_3rd/genvector/vtp0.h list_conf.h \ - plug_io.h create.h compat_misc.h hid_actions.h paths.h rtree.h + plug_io.h compat_misc.h hid_actions.h paths.h rtree.h box.o: box.c ../config.h box.h math_helper.h global_typedefs.h pcb_bool.h \ unit.h global_objs.h ../src_3rd/genlist/gendlist.h attrib.h flag.h \ globalconst.h macro.h move.h misc_util.h @@ -2782,13 +2778,12 @@ obj_text.h ht_element.h ../src_3rd/liblihata/genht/ht.h \ ../src_3rd/liblihata/genht/hash.h obj_poly_list.h obj_poly.h polyarea.h \ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h font.h \ - box.h math_helper.h move.h misc_util.h copy.h create.h rubberband.h \ - data.h crosshair.h vtonpoint.h hid.h error.h drc.h plug_io.h misc.h \ - polygon.h rtree.h rotate.h remove.h select.h operation.h set.h \ - funchash_core.h funchash.h funchash_core_list.h compat_misc.h \ - compat_nls.h obj_all.h obj_all_op.h obj_arc_op.h obj_elem_op.h \ - obj_line_op.h obj_pad_op.h obj_pinvia_op.h obj_poly_op.h obj_text_op.h \ - obj_rat_op.h + box.h math_helper.h move.h misc_util.h copy.h data.h crosshair.h \ + rubberband.h vtonpoint.h hid.h error.h drc.h plug_io.h misc.h polygon.h \ + rtree.h rotate.h remove.h select.h operation.h set.h funchash_core.h \ + funchash.h funchash_core_list.h compat_misc.h compat_nls.h obj_all.h \ + obj_all_op.h obj_arc_op.h obj_elem_op.h obj_line_op.h obj_pad_op.h \ + obj_pinvia_op.h obj_poly_op.h obj_text_op.h obj_rat_op.h build_run.o: build_run.c ../config.h ../src_3rd/genvector/gds_char.h \ ../src_3rd/genvector/genvector_impl.h \ ../src_3rd/genvector/genvector_undef.h conf_core.h conf.h \ @@ -2933,32 +2928,11 @@ ../src_3rd/liblihata/genht/ht.h ../src_3rd/liblihata/genht/hash.h \ obj_poly_list.h obj_poly.h polyarea.h obj_text_list.h obj_rat_list.h \ obj_rat.h library.h rats_patch.h font.h box.h math_helper.h move.h \ - misc_util.h create.h rubberband.h data.h crosshair.h vtonpoint.h hid.h \ - error.h drc.h buffer.h draw.h misc.h polygon.h rtree.h select.h \ - operation.h undo.h compat_misc.h obj_all_op.h obj_arc_op.h obj_elem_op.h \ + misc_util.h data.h crosshair.h rubberband.h vtonpoint.h hid.h error.h \ + drc.h buffer.h draw.h misc.h polygon.h rtree.h select.h operation.h \ + undo.h compat_misc.h obj_all_op.h obj_arc_op.h obj_elem_op.h \ obj_line_op.h obj_pad_op.h obj_pinvia_op.h obj_poly_op.h obj_text_op.h \ obj_rat_op.h obj_all.h -create.o: create.c ../config.h conf_core.h conf.h global_typedefs.h \ - pcb_bool.h unit.h pcb-printf.h ../src_3rd/genvector/gds_char.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h ../src_3rd/liblihata/lihata.h \ - ../src_3rd/liblihata/dom.h ../src_3rd/liblihata/lihata.h \ - ../src_3rd/liblihata/parser.h ../src_3rd/liblihata/genht/htsp.h \ - ../src_3rd/liblihata/genht/ht.h ../src_3rd/liblihata/genht/ht_inlines.h \ - ../src_3rd/genvector/vtp0.h list_conf.h \ - ../src_3rd/genlist/gentdlist_undef.h ../src_3rd/genlist/gentdlist_impl.h \ - ../src_3rd/genlist/gendlist.h globalconst.h board.h const.h macro.h \ - vtroutestyle.h global_objs.h ../src_3rd/genlist/gendlist.h attrib.h \ - flag.h layer.h obj_all_list.h obj_arc_list.h obj_common.h obj_arc.h \ - obj_elem_list.h obj_elem.h obj_line_list.h obj_line.h obj_pad_list.h \ - obj_pad.h obj_pinvia_list.h obj_pinvia.h obj_text.h ht_element.h \ - ../src_3rd/liblihata/genht/ht.h ../src_3rd/liblihata/genht/hash.h \ - obj_poly_list.h obj_poly.h polyarea.h obj_text_list.h obj_rat_list.h \ - obj_rat.h library.h rats_patch.h font.h box.h math_helper.h move.h \ - misc_util.h create.h rubberband.h data.h crosshair.h vtonpoint.h hid.h \ - error.h drc.h buffer.h misc.h rtree.h search.h rats.h netlist.h \ - route_style.h undo.h plug_io.h stub_vendor.h hid_actions.h paths.h \ - compat_misc.h compat_nls.h obj_all.h crosshair.o: crosshair.c ../config.h conf_core.h conf.h global_typedefs.h \ pcb_bool.h unit.h pcb-printf.h ../src_3rd/genvector/gds_char.h \ ../src_3rd/genvector/genvector_impl.h \ @@ -3051,8 +3025,8 @@ ../src_3rd/liblihata/genht/htsp.h ../src_3rd/liblihata/genht/ht.h \ ../src_3rd/genvector/vtp0.h list_conf.h data.h crosshair.h rubberband.h \ vtonpoint.h hid.h error.h drc.h buffer.h action_helper.h set.h plug_io.h \ - plug_import.h misc.h remove.h create.h draw.h find.h search.h rats.h \ - netlist.h route_style.h hid_actions.h compat_misc.h compat_nls.h + plug_import.h misc.h remove.h draw.h find.h search.h rats.h netlist.h \ + route_style.h hid_actions.h compat_misc.h compat_nls.h find.o: find.c ../config.h const.h math_helper.h conf_core.h conf.h \ global_typedefs.h pcb_bool.h unit.h pcb-printf.h \ ../src_3rd/genvector/gds_char.h ../src_3rd/genvector/genvector_impl.h \ @@ -3281,17 +3255,17 @@ ../src_3rd/liblihata/genht/ht.h ../src_3rd/liblihata/genht/ht_inlines.h \ ../src_3rd/genvector/vtp0.h list_conf.h \ ../src_3rd/genlist/gentdlist_undef.h ../src_3rd/genlist/gentdlist_impl.h \ - ../src_3rd/genlist/gendlist.h globalconst.h create.h rubberband.h \ - global_objs.h ../src_3rd/genlist/gendlist.h attrib.h flag.h library.h \ - board.h const.h macro.h vtroutestyle.h layer.h obj_all_list.h \ - obj_arc_list.h obj_common.h obj_arc.h obj_elem_list.h obj_elem.h \ - obj_line_list.h obj_line.h obj_pad_list.h obj_pad.h obj_pinvia_list.h \ - obj_pinvia.h obj_text.h ht_element.h ../src_3rd/liblihata/genht/ht.h \ - ../src_3rd/liblihata/genht/hash.h obj_poly_list.h obj_poly.h polyarea.h \ - obj_text_list.h obj_rat_list.h obj_rat.h rats_patch.h font.h box.h \ - math_helper.h move.h misc_util.h data.h crosshair.h vtonpoint.h hid.h \ - error.h drc.h buffer.h draw.h misc.h polygon.h rtree.h search.h rats.h \ - netlist.h route_style.h select.h operation.h set.h undo.h obj_line_op.h \ + ../src_3rd/genlist/gendlist.h globalconst.h board.h const.h macro.h \ + vtroutestyle.h global_objs.h ../src_3rd/genlist/gendlist.h attrib.h \ + flag.h layer.h obj_all_list.h obj_arc_list.h obj_common.h obj_arc.h \ + obj_elem_list.h obj_elem.h obj_line_list.h obj_line.h obj_pad_list.h \ + obj_pad.h obj_pinvia_list.h obj_pinvia.h obj_text.h ht_element.h \ + ../src_3rd/liblihata/genht/ht.h ../src_3rd/liblihata/genht/hash.h \ + obj_poly_list.h obj_poly.h polyarea.h obj_text_list.h obj_rat_list.h \ + obj_rat.h library.h rats_patch.h font.h box.h math_helper.h move.h \ + misc_util.h data.h crosshair.h rubberband.h vtonpoint.h hid.h error.h \ + drc.h buffer.h draw.h misc.h polygon.h rtree.h search.h rats.h netlist.h \ + route_style.h select.h operation.h set.h undo.h obj_line_op.h \ obj_rat_op.h obj_poly_op.h intersect.o: intersect.c ../config.h intersect.h global_typedefs.h \ pcb_bool.h unit.h box.h math_helper.h global_objs.h \ @@ -3341,16 +3315,17 @@ ../src_3rd/liblihata/genht/ht_inlines.h \ ../src_3rd/liblihata/genht/hash.h obj_poly_list.h obj_poly.h polyarea.h \ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h font.h \ - box.h math_helper.h move.h misc_util.h create.h rubberband.h error.h \ - plug_io.h conf.h pcb-printf.h ../src_3rd/genvector/gds_char.h \ + box.h math_helper.h move.h misc_util.h error.h plug_io.h conf.h \ + pcb-printf.h ../src_3rd/genvector/gds_char.h \ ../src_3rd/liblihata/lihata.h ../src_3rd/liblihata/dom.h \ ../src_3rd/liblihata/lihata.h ../src_3rd/liblihata/parser.h \ ../src_3rd/liblihata/genht/htsp.h ../src_3rd/liblihata/genht/ht.h \ ../src_3rd/genvector/vtp0.h list_conf.h set.h buffer.h crosshair.h \ - vtonpoint.h hid.h drc.h compat_lrealpath.h free_atexit.h polygon.h \ - rtree.h buildin.h paths.h flag_str.h plugins.h plug_footprint.h \ - vtlibrary.h event.h funchash.h conf_core.h hid_actions.h hid_attrib.h \ - hid_init.h compat_misc.h compat_nls.h dolists.h generated_lists.h + rubberband.h vtonpoint.h hid.h drc.h compat_lrealpath.h free_atexit.h \ + polygon.h rtree.h buildin.h paths.h flag_str.h plugins.h \ + plug_footprint.h vtlibrary.h event.h funchash.h conf_core.h \ + hid_actions.h hid_attrib.h hid_init.h compat_misc.h compat_nls.h \ + dolists.h generated_lists.h main_act.o: main_act.c ../config.h hid_actions.h hid.h error.h drc.h \ unit.h global_typedefs.h pcb_bool.h attrib.h hid_init.h conf_core.h \ conf.h pcb-printf.h ../src_3rd/genvector/gds_char.h \ @@ -3400,12 +3375,11 @@ ../src_3rd/liblihata/genht/ht.h ../src_3rd/liblihata/genht/hash.h \ obj_poly_list.h obj_poly.h polyarea.h obj_text_list.h obj_rat_list.h \ obj_rat.h library.h rats_patch.h font.h box.h math_helper.h move.h \ - misc_util.h create.h rubberband.h data.h crosshair.h vtonpoint.h hid.h \ - error.h drc.h buffer.h draw.h misc.h polygon.h rtree.h search.h rats.h \ - netlist.h route_style.h select.h operation.h undo.h hid_actions.h \ - compat_misc.h compat_nls.h obj_all_op.h obj_arc_op.h obj_elem_op.h \ - obj_line_op.h obj_pad_op.h obj_pinvia_op.h obj_poly_op.h obj_text_op.h \ - obj_rat_op.h + misc_util.h data.h crosshair.h rubberband.h vtonpoint.h hid.h error.h \ + drc.h buffer.h draw.h misc.h polygon.h rtree.h search.h rats.h netlist.h \ + route_style.h select.h operation.h undo.h hid_actions.h compat_misc.h \ + compat_nls.h obj_all_op.h obj_arc_op.h obj_elem_op.h obj_line_op.h \ + obj_pad_op.h obj_pinvia_op.h obj_poly_op.h obj_text_op.h obj_rat_op.h netlist.o: netlist.c ../config.h board.h const.h macro.h \ global_typedefs.h pcb_bool.h unit.h vtroutestyle.h \ ../src_3rd/genvector/genvector_impl.h \ @@ -3446,7 +3420,7 @@ ../src_3rd/liblihata/dom.h ../src_3rd/liblihata/lihata.h \ ../src_3rd/liblihata/parser.h ../src_3rd/liblihata/genht/htsp.h \ ../src_3rd/liblihata/genht/ht.h ../src_3rd/genvector/vtp0.h list_conf.h \ - create.h hid_actions.h compat_nls.h netlist.h route_style.h + hid_actions.h compat_nls.h netlist.h route_style.h obj_any.o: obj_any.c ../config.h obj_any.h global_objs.h \ ../src_3rd/genlist/gendlist.h attrib.h flag.h globalconst.h \ global_typedefs.h pcb_bool.h unit.h ../src_3rd/genlist/gentdlist_impl.h \ @@ -3467,7 +3441,7 @@ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h font.h \ box.h math_helper.h move.h misc_util.h data.h crosshair.h rubberband.h \ vtonpoint.h hid.h error.h drc.h rtree.h polygon.h undo.h rotate.h \ - create.h obj_arc_op.h operation.h draw.h + obj_arc_op.h operation.h draw.h obj_arc_list.o: obj_arc_list.c global_objs.h \ ../src_3rd/genlist/gendlist.h ../config.h attrib.h flag.h globalconst.h \ global_typedefs.h pcb_bool.h unit.h obj_arc_list.h obj_common.h \ @@ -3474,6 +3448,27 @@ obj_arc.h ../src_3rd/genlist/gentdlist_impl.h \ ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ ../src_3rd/genlist/gentdlist_impl.c +obj_common.o: obj_common.c ../config.h conf_core.h conf.h \ + global_typedefs.h pcb_bool.h unit.h pcb-printf.h \ + ../src_3rd/genvector/gds_char.h ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h ../src_3rd/liblihata/lihata.h \ + ../src_3rd/liblihata/dom.h ../src_3rd/liblihata/lihata.h \ + ../src_3rd/liblihata/parser.h ../src_3rd/liblihata/genht/htsp.h \ + ../src_3rd/liblihata/genht/ht.h ../src_3rd/liblihata/genht/ht_inlines.h \ + ../src_3rd/genvector/vtp0.h list_conf.h \ + ../src_3rd/genlist/gentdlist_undef.h ../src_3rd/genlist/gentdlist_impl.h \ + ../src_3rd/genlist/gendlist.h globalconst.h board.h const.h macro.h \ + vtroutestyle.h global_objs.h ../src_3rd/genlist/gendlist.h attrib.h \ + flag.h layer.h obj_all_list.h obj_arc_list.h obj_common.h obj_arc.h \ + obj_elem_list.h obj_elem.h obj_line_list.h obj_line.h obj_pad_list.h \ + obj_pad.h obj_pinvia_list.h obj_pinvia.h obj_text.h ht_element.h \ + ../src_3rd/liblihata/genht/ht.h ../src_3rd/liblihata/genht/hash.h \ + obj_poly_list.h obj_poly.h polyarea.h obj_text_list.h obj_rat_list.h \ + obj_rat.h library.h rats_patch.h font.h box.h math_helper.h move.h \ + misc_util.h data.h crosshair.h rubberband.h vtonpoint.h hid.h error.h \ + drc.h buffer.h misc.h rtree.h search.h rats.h netlist.h route_style.h \ + undo.h plug_io.h stub_vendor.h hid_actions.h paths.h compat_misc.h \ + compat_nls.h obj_all.h obj_elem.o: obj_elem.c ../config.h global_objs.h \ ../src_3rd/genlist/gendlist.h attrib.h flag.h globalconst.h \ global_typedefs.h pcb_bool.h unit.h board.h const.h macro.h \ @@ -3494,8 +3489,8 @@ ../src_3rd/liblihata/lihata.h ../src_3rd/liblihata/parser.h \ ../src_3rd/liblihata/genht/htsp.h ../src_3rd/liblihata/genht/ht.h \ ../src_3rd/genvector/vtp0.h list_conf.h conf_core.h compat_nls.h \ - compat_misc.h rotate.h create.h rtree.h remove.h polygon.h undo.h \ - obj_pinvia_op.h operation.h obj_pad_op.h obj_elem_op.h draw.h + compat_misc.h rotate.h rtree.h remove.h polygon.h undo.h obj_pinvia_op.h \ + operation.h obj_pad_op.h obj_elem_op.h draw.h obj_elem_list.o: obj_elem_list.c ../config.h obj_elem.h global_objs.h \ ../src_3rd/genlist/gendlist.h attrib.h flag.h globalconst.h \ global_typedefs.h pcb_bool.h unit.h obj_common.h obj_arc_list.h \ @@ -3525,8 +3520,7 @@ ../src_3rd/liblihata/dom.h ../src_3rd/liblihata/lihata.h \ ../src_3rd/liblihata/parser.h ../src_3rd/liblihata/genht/htsp.h \ ../src_3rd/liblihata/genht/ht.h ../src_3rd/genvector/vtp0.h list_conf.h \ - compat_nls.h create.h compat_misc.h rotate.h obj_line_op.h operation.h \ - draw.h + compat_nls.h compat_misc.h rotate.h obj_line_op.h operation.h draw.h obj_line_drcenf.o: obj_line_drcenf.c ../config.h conf_core.h conf.h \ global_typedefs.h pcb_bool.h unit.h pcb-printf.h \ ../src_3rd/genvector/gds_char.h ../src_3rd/genvector/genvector_impl.h \ @@ -3566,8 +3560,8 @@ ../src_3rd/liblihata/genht/hash.h obj_poly_list.h obj_poly.h polyarea.h \ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h font.h \ box.h math_helper.h move.h misc_util.h data.h crosshair.h rubberband.h \ - vtonpoint.h hid.h error.h drc.h buffer.h create.h undo.h polygon.h \ - rtree.h compat_misc.h misc.h obj_pad_op.h operation.h draw.h + vtonpoint.h hid.h error.h drc.h buffer.h undo.h polygon.h rtree.h \ + compat_misc.h misc.h obj_pad_op.h operation.h draw.h obj_pad_list.o: obj_pad_list.c global_objs.h \ ../src_3rd/genlist/gendlist.h ../config.h attrib.h flag.h globalconst.h \ global_typedefs.h pcb_bool.h unit.h obj_pad_list.h obj_pad.h \ @@ -3593,9 +3587,8 @@ ../src_3rd/liblihata/lihata.h ../src_3rd/liblihata/dom.h \ ../src_3rd/liblihata/lihata.h ../src_3rd/liblihata/parser.h \ ../src_3rd/liblihata/genht/htsp.h ../src_3rd/liblihata/genht/ht.h \ - ../src_3rd/genvector/vtp0.h list_conf.h polygon.h rtree.h create.h \ - compat_nls.h compat_misc.h stub_vendor.h misc.h obj_pinvia_op.h \ - operation.h draw.h + ../src_3rd/genvector/vtp0.h list_conf.h polygon.h rtree.h compat_nls.h \ + compat_misc.h stub_vendor.h misc.h obj_pinvia_op.h operation.h draw.h obj_pinvia_list.o: obj_pinvia_list.c global_objs.h \ ../src_3rd/genlist/gendlist.h ../config.h attrib.h flag.h globalconst.h \ global_typedefs.h pcb_bool.h unit.h obj_pinvia_list.h obj_pinvia.h \ @@ -3632,8 +3625,8 @@ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h font.h \ box.h math_helper.h move.h misc_util.h data.h crosshair.h rubberband.h \ vtonpoint.h hid.h error.h drc.h buffer.h rtree.h compat_nls.h undo.h \ - create.h polygon.h rotate.h search.h rats.h netlist.h route_style.h \ - set.h obj_poly_op.h operation.h draw.h + polygon.h rotate.h search.h rats.h netlist.h route_style.h set.h \ + obj_poly_op.h operation.h draw.h obj_poly_list.o: obj_poly_list.c obj_poly_list.h obj_poly.h global_objs.h \ ../src_3rd/genlist/gendlist.h ../config.h attrib.h flag.h globalconst.h \ global_typedefs.h pcb_bool.h unit.h obj_common.h polyarea.h \ @@ -3658,7 +3651,7 @@ ../src_3rd/liblihata/dom.h ../src_3rd/liblihata/lihata.h \ ../src_3rd/liblihata/parser.h ../src_3rd/liblihata/genht/htsp.h \ ../src_3rd/liblihata/genht/ht.h ../src_3rd/genvector/vtp0.h list_conf.h \ - undo.h create.h rtree.h obj_rat_op.h operation.h draw.h rats.h netlist.h \ + undo.h rtree.h obj_rat_op.h operation.h draw.h rats.h netlist.h \ route_style.h obj_rat_list.o: obj_rat_list.c global_objs.h \ ../src_3rd/genlist/gendlist.h ../config.h attrib.h flag.h globalconst.h \ @@ -3681,7 +3674,7 @@ ../src_3rd/genvector/genvector_undef.h library.h rats_patch.h font.h \ box.h math_helper.h move.h misc_util.h data.h crosshair.h rubberband.h \ vtonpoint.h hid.h error.h drc.h buffer.h compat_misc.h compat_nls.h \ - create.h rtree.h undo.h polygon.h obj_text_op.h operation.h draw.h + rtree.h undo.h polygon.h obj_text_op.h operation.h draw.h obj_text_list.o: obj_text_list.c global_objs.h \ ../src_3rd/genlist/gendlist.h ../config.h attrib.h flag.h globalconst.h \ global_typedefs.h pcb_bool.h unit.h obj_text_list.h obj_text.h \ @@ -3708,8 +3701,8 @@ macro.h vtroutestyle.h library.h rats_patch.h font.h box.h move.h \ misc_util.h action_helper.h change.h undo.h funchash_core.h funchash.h \ funchash_core_list.h search.h rats.h netlist.h route_style.h draw.h \ - rotate.h set.h copy.h misc.h remove.h create.h compat_misc.h \ - compat_nls.h obj_all.h + rotate.h set.h copy.h misc.h remove.h compat_misc.h compat_nls.h \ + obj_all.h paths.o: paths.c ../config.h paths.h error.h conf_core.h conf.h \ global_typedefs.h pcb_bool.h unit.h pcb-printf.h \ ../src_3rd/genvector/gds_char.h ../src_3rd/genvector/genvector_impl.h \ @@ -3770,7 +3763,7 @@ ../src_3rd/liblihata/genht/ht.h ../src_3rd/liblihata/genht/hash.h \ obj_poly_list.h obj_poly.h polyarea.h obj_text_list.h obj_rat_list.h \ obj_rat.h library.h rats_patch.h font.h box.h math_helper.h move.h \ - misc_util.h buffer.h change.h create.h rubberband.h data.h crosshair.h \ + misc_util.h buffer.h change.h data.h crosshair.h rubberband.h \ vtonpoint.h hid.h error.h drc.h plug_io.h misc.h remove.h set.h paths.h \ hid_actions.h hid_flags.h plugins.h event.h compat_misc.h route_style.h \ compat_fs.h compat_nls.h compat_inc.h @@ -3795,8 +3788,8 @@ ../src_3rd/liblihata/genht/ht.h ../src_3rd/liblihata/genht/hash.h \ obj_poly_list.h obj_poly.h polyarea.h obj_text_list.h obj_rat_list.h \ obj_rat.h library.h rats_patch.h font.h box.h math_helper.h move.h \ - misc_util.h create.h rubberband.h data.h crosshair.h vtonpoint.h hid.h \ - error.h drc.h buffer.h draw.h polygon.h rtree.h remove.h search.h rats.h \ + misc_util.h data.h crosshair.h rubberband.h vtonpoint.h hid.h error.h \ + drc.h buffer.h draw.h polygon.h rtree.h remove.h search.h rats.h \ netlist.h route_style.h set.h obj_pinvia_therm.h undo.h misc.h \ compat_nls.h obj_all.h polygon1.o: polygon1.c ../config.h rtree.h global_typedefs.h pcb_bool.h \ @@ -3844,10 +3837,10 @@ ../src_3rd/liblihata/genht/ht.h ../src_3rd/liblihata/genht/hash.h \ obj_poly_list.h obj_poly.h polyarea.h obj_text_list.h obj_rat_list.h \ obj_rat.h library.h rats_patch.h font.h box.h math_helper.h move.h \ - misc_util.h create.h rubberband.h data.h crosshair.h vtonpoint.h hid.h \ - error.h drc.h buffer.h draw.h find.h misc.h polygon.h rtree.h rats.h \ - netlist.h route_style.h search.h undo.h stub_mincut.h compat_misc.h \ - compat_nls.h ptrlist.h + misc_util.h data.h crosshair.h rubberband.h vtonpoint.h hid.h error.h \ + drc.h buffer.h draw.h find.h misc.h polygon.h rtree.h rats.h netlist.h \ + route_style.h search.h undo.h stub_mincut.h compat_misc.h compat_nls.h \ + ptrlist.h rats_act.o: rats_act.c ../config.h conf_core.h conf.h global_typedefs.h \ pcb_bool.h unit.h pcb-printf.h ../src_3rd/genvector/gds_char.h \ ../src_3rd/genvector/genvector_impl.h \ @@ -3883,7 +3876,7 @@ ../src_3rd/liblihata/genht/hash.h obj_poly_list.h obj_poly.h polyarea.h \ obj_text_list.h obj_rat_list.h obj_rat.h library.h font.h box.h \ math_helper.h move.h misc_util.h ../src_3rd/liblihata/genht/htsp.h \ - ../src_3rd/liblihata/genht/ht.h create.h rubberband.h data.h crosshair.h \ + ../src_3rd/liblihata/genht/ht.h data.h crosshair.h rubberband.h \ vtonpoint.h hid.h error.h drc.h buffer.h remove.h copy.h compat_misc.h \ compat_nls.h remove.o: remove.c ../config.h conf_core.h conf.h global_typedefs.h \ @@ -3973,8 +3966,8 @@ ../src_3rd/liblihata/genht/ht_inlines.h \ ../src_3rd/liblihata/genht/hash.h obj_poly_list.h obj_poly.h polyarea.h \ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h font.h \ - box.h math_helper.h move.h misc_util.h create.h rubberband.h data.h \ - crosshair.h vtonpoint.h hid.h error.h drc.h buffer.h polygon.h rtree.h + box.h math_helper.h move.h misc_util.h data.h crosshair.h rubberband.h \ + vtonpoint.h hid.h error.h drc.h buffer.h polygon.h rtree.h search.o: search.c ../config.h conf_core.h conf.h global_typedefs.h \ pcb_bool.h unit.h pcb-printf.h ../src_3rd/genvector/gds_char.h \ ../src_3rd/genvector/genvector_impl.h \ @@ -4081,16 +4074,15 @@ ../src_3rd/liblihata/genht/ht_inlines.h \ ../src_3rd/liblihata/genht/hash.h obj_poly_list.h obj_poly.h polyarea.h \ obj_text_list.h obj_rat_list.h obj_rat.h library.h rats_patch.h font.h \ - box.h math_helper.h move.h misc_util.h buffer.h change.h create.h \ - rubberband.h data.h crosshair.h vtonpoint.h hid.h error.h drc.h draw.h \ - insert.h misc.h polygon.h rtree.h remove.h rotate.h search.h rats.h \ - netlist.h route_style.h set.h undo.h flag_str.h conf_core.h conf.h \ - pcb-printf.h ../src_3rd/genvector/gds_char.h \ - ../src_3rd/liblihata/lihata.h ../src_3rd/liblihata/dom.h \ - ../src_3rd/liblihata/lihata.h ../src_3rd/liblihata/parser.h \ - ../src_3rd/liblihata/genht/htsp.h ../src_3rd/liblihata/genht/ht.h \ - ../src_3rd/genvector/vtp0.h list_conf.h compat_misc.h compat_nls.h \ - obj_all.h + box.h math_helper.h move.h misc_util.h buffer.h change.h data.h \ + crosshair.h rubberband.h vtonpoint.h hid.h error.h drc.h draw.h insert.h \ + misc.h polygon.h rtree.h remove.h rotate.h search.h rats.h netlist.h \ + route_style.h set.h undo.h flag_str.h conf_core.h conf.h pcb-printf.h \ + ../src_3rd/genvector/gds_char.h ../src_3rd/liblihata/lihata.h \ + ../src_3rd/liblihata/dom.h ../src_3rd/liblihata/lihata.h \ + ../src_3rd/liblihata/parser.h ../src_3rd/liblihata/genht/htsp.h \ + ../src_3rd/liblihata/genht/ht.h ../src_3rd/genvector/vtp0.h list_conf.h \ + compat_misc.h compat_nls.h obj_all.h undo_act.o: undo_act.c ../config.h conf_core.h conf.h global_typedefs.h \ pcb_bool.h unit.h pcb-printf.h ../src_3rd/genvector/gds_char.h \ ../src_3rd/genvector/genvector_impl.h \ Index: trunk/src/Makefile.in =================================================================== --- trunk/src/Makefile.in (revision 4599) +++ trunk/src/Makefile.in (revision 4600) @@ -37,7 +37,6 @@ compat_lrealpath.o compat_misc.o copy.o - create.o crosshair.o data.o draw.o @@ -79,6 +78,7 @@ netlist.o netlist_act.o object_act.o + obj_common.o obj_any.o obj_arc.o obj_arc_list.o Index: trunk/src/action_helper.c =================================================================== --- trunk/src/action_helper.c (revision 4599) +++ trunk/src/action_helper.c (revision 4600) @@ -35,7 +35,6 @@ #include "board.h" #include "change.h" #include "copy.h" -#include "create.h" #include "data.h" #include "draw.h" #include "find.h" Index: trunk/src/board.c =================================================================== --- trunk/src/board.c (revision 4599) +++ trunk/src/board.c (revision 4600) @@ -28,11 +28,11 @@ #include "data.h" #include "conf_core.h" #include "plug_io.h" -#include "create.h" #include "compat_misc.h" #include "hid_actions.h" #include "paths.h" #include "rtree.h" +#include "obj_common.h" PCBType *PCB; Index: trunk/src/buffer.c =================================================================== --- trunk/src/buffer.c (revision 4599) +++ trunk/src/buffer.c (revision 4600) @@ -33,7 +33,6 @@ #include "buffer.h" #include "board.h" #include "copy.h" -#include "create.h" #include "data.h" #include "plug_io.h" #include "misc.h" Index: trunk/src/copy.c =================================================================== --- trunk/src/copy.c (revision 4599) +++ trunk/src/copy.c (revision 4600) @@ -33,7 +33,6 @@ #include "conf_core.h" #include "board.h" -#include "create.h" #include "data.h" #include "draw.h" #include "misc.h" Index: trunk/src/file_act.c =================================================================== --- trunk/src/file_act.c (revision 4599) +++ trunk/src/file_act.c (revision 4600) @@ -36,7 +36,6 @@ #include "plug_import.h" #include "misc.h" #include "remove.h" -#include "create.h" #include "draw.h" #include "find.h" #include "search.h" Index: trunk/src/insert.c =================================================================== --- trunk/src/insert.c (revision 4599) +++ trunk/src/insert.c (revision 4600) @@ -31,7 +31,6 @@ #include "config.h" #include "conf_core.h" -#include "create.h" #include "board.h" #include "data.h" #include "draw.h" Index: trunk/src/main.c =================================================================== --- trunk/src/main.c (revision 4599) +++ trunk/src/main.c (revision 4600) @@ -37,7 +37,6 @@ #include #include "board.h" -#include "create.h" #include "error.h" #include "plug_io.h" #include "set.h" Index: trunk/src/move.c =================================================================== --- trunk/src/move.c (revision 4599) +++ trunk/src/move.c (revision 4600) @@ -35,7 +35,6 @@ #include #include "board.h" -#include "create.h" #include "data.h" #include "draw.h" #include "error.h" Index: trunk/src/netlist_act.c =================================================================== --- trunk/src/netlist_act.c (revision 4599) +++ trunk/src/netlist_act.c (revision 4600) @@ -39,7 +39,6 @@ #include "board.h" #include "error.h" #include "plug_io.h" -#include "create.h" #include "hid_actions.h" #include "compat_nls.h" #include "netlist.h" Index: trunk/src/obj_arc.c =================================================================== --- trunk/src/obj_arc.c (revision 4599) +++ trunk/src/obj_arc.c (revision 4600) @@ -39,7 +39,6 @@ #include "undo.h" #include "rotate.h" #include "move.h" -#include "create.h" #include "obj_arc.h" #include "obj_arc_op.h" Index: trunk/src/obj_arc.h =================================================================== --- trunk/src/obj_arc.h (revision 4599) +++ trunk/src/obj_arc.h (revision 4600) @@ -53,7 +53,10 @@ void ChangeArcRadii(LayerTypePtr Layer, ArcTypePtr a, Coord new_width, Coord new_height); void *RemoveArc(LayerTypePtr Layer, ArcTypePtr Arc); ArcType *CreateNewArcOnLayer(LayerTypePtr Layer, Coord X1, Coord Y1, Coord width, Coord height, Angle sa, Angle dir, Coord Thickness, Coord Clearance, FlagType Flags); + +/* Add objects without creating them or making any "sanity modifications" to them */ void pcb_add_arc_on_layer(LayerType *Layer, ArcType *Arc); + void RotateArcLowLevel(ArcTypePtr Arc, Coord X, Coord Y, unsigned Number); #define MOVE_ARC_LOWLEVEL(a,dx,dy) \ Index: trunk/src/obj_common.c =================================================================== --- trunk/src/obj_common.c (nonexistent) +++ trunk/src/obj_common.c (revision 4600) @@ -0,0 +1,81 @@ +/* + * COPYRIGHT + * + * PCB, interactive printed circuit board design + * Copyright (C) 1994,1995,1996, 2005 Thomas Nau + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * Contact addresses for paper mail and Email: + * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany + * Thomas.Nau@rz.uni-ulm.de + * + */ + +/* functions used to create vias, pins ... */ + +#include "config.h" + +#include + +#include "conf_core.h" + +#include "board.h" +#include "math_helper.h" +#include "data.h" +#include "misc.h" +#include "rtree.h" +#include "search.h" +#include "undo.h" +#include "plug_io.h" +#include "stub_vendor.h" +#include "hid_actions.h" +#include "paths.h" +#include "compat_misc.h" +#include "compat_nls.h" +#include "obj_all.h" + +/* --------------------------------------------------------------------------- + * some local identifiers + */ + +/* current object ID; incremented after each creation of an object */ +long int ID = 1; + +pcb_bool pcb_create_be_lenient = pcb_false; + +/* --------------------------------------------------------------------------- + * Set the lenience mode. + */ +void CreateBeLenient(pcb_bool v) +{ + pcb_create_be_lenient = v; +} + +void CreateIDBump(int min_id) +{ + if (ID < min_id) + ID = min_id; +} + +void CreateIDReset(void) +{ + ID = 1; +} + +long int CreateIDGet(void) +{ + return ID++; +} Index: trunk/src/obj_common.h =================================================================== --- trunk/src/obj_common.h (revision 4599) +++ trunk/src/obj_common.h (revision 4600) @@ -35,4 +35,16 @@ obj->link = __lnk__; \ } while(0) \ + +/* pcb_true during file loads, for example to allow overlapping vias. + pcb_false otherwise, to stop the user from doing normally dangerous + things. */ +void CreateBeLenient(pcb_bool); +extern pcb_bool pcb_create_be_lenient; + +void CreateIDBump(int min_id); +void CreateIDReset(void); +long int CreateIDGet(void); + + #endif Index: trunk/src/obj_elem.c =================================================================== --- trunk/src/obj_elem.c (revision 4599) +++ trunk/src/obj_elem.c (revision 4600) @@ -40,7 +40,6 @@ #include "compat_misc.h" #include "obj_poly.h" #include "rotate.h" -#include "create.h" #include "rtree.h" #include "remove.h" #include "polygon.h" Index: trunk/src/obj_line.c =================================================================== --- trunk/src/obj_line.c (revision 4599) +++ trunk/src/obj_line.c (revision 4600) @@ -43,7 +43,6 @@ #include "move.h" #include "box.h" #include "compat_nls.h" -#include "create.h" #include "compat_misc.h" #include "rotate.h" #include "obj_pinvia.h" Index: trunk/src/obj_line.h =================================================================== --- trunk/src/obj_line.h (revision 4599) +++ trunk/src/obj_line.h (revision 4600) @@ -52,7 +52,10 @@ LineTypePtr CreateDrawnLineOnLayer(LayerTypePtr Layer, Coord X1, Coord Y1, Coord X2, Coord Y2, Coord Thickness, Coord Clearance, FlagType Flags); LineTypePtr CreateNewLineOnLayer(LayerTypePtr Layer, Coord X1, Coord Y1, Coord X2, Coord Y2, Coord Thickness, Coord Clearance, FlagType Flags); + +/* Add objects without creating them or making any "sanity modifications" to them */ void pcb_add_line_on_layer(LayerType *Layer, LineType *Line); + void SetLineBoundingBox(LineTypePtr Line); void *RemoveLine(LayerTypePtr Layer, LineTypePtr Line); void RotateLineLowLevel(LineTypePtr Line, Coord X, Coord Y, unsigned Number); Index: trunk/src/obj_pad.c =================================================================== --- trunk/src/obj_pad.c (revision 4599) +++ trunk/src/obj_pad.c (revision 4600) @@ -31,7 +31,6 @@ #include "board.h" #include "data.h" -#include "create.h" #include "move.h" #include "undo.h" #include "math_helper.h" Index: trunk/src/obj_pinvia.c =================================================================== --- trunk/src/obj_pinvia.c (revision 4599) +++ trunk/src/obj_pinvia.c (revision 4600) @@ -36,7 +36,6 @@ #include "math_helper.h" #include "conf_core.h" #include "polygon.h" -#include "create.h" #include "compat_nls.h" #include "compat_misc.h" #include "stub_vendor.h" Index: trunk/src/obj_poly.c =================================================================== --- trunk/src/obj_poly.c (revision 4599) +++ trunk/src/obj_poly.c (revision 4600) @@ -37,7 +37,6 @@ #include "rtree.h" #include "compat_nls.h" #include "undo.h" -#include "create.h" #include "polygon.h" #include "move.h" #include "box.h" Index: trunk/src/obj_poly.h =================================================================== --- trunk/src/obj_poly.h (revision 4599) +++ trunk/src/obj_poly.h (revision 4600) @@ -66,6 +66,7 @@ void RotatePolygonLowLevel(PolygonTypePtr Polygon, Coord X, Coord Y, unsigned Number); PolygonTypePtr CopyPolygonLowLevel(PolygonTypePtr Dest, PolygonTypePtr Src); +/* Add objects without creating them or making any "sanity modifications" to them */ void pcb_add_polygon_on_layer(LayerType *Layer, PolygonType *polygon); #define POLYGON_LOOP(layer) do { \ Index: trunk/src/obj_rat.c =================================================================== --- trunk/src/obj_rat.c (revision 4599) +++ trunk/src/obj_rat.c (revision 4600) @@ -35,7 +35,6 @@ #include "layer.h" #include "conf_core.h" #include "undo.h" -#include "create.h" #include "rtree.h" #include "obj_rat.h" Index: trunk/src/obj_text.c =================================================================== --- trunk/src/obj_text.c (revision 4599) +++ trunk/src/obj_text.c (revision 4600) @@ -35,7 +35,6 @@ #include "data.h" #include "compat_misc.h" #include "compat_nls.h" -#include "create.h" #include "rtree.h" #include "math_helper.h" #include "box.h" Index: trunk/src/obj_text.h =================================================================== --- trunk/src/obj_text.h (revision 4599) +++ trunk/src/obj_text.h (revision 4600) @@ -46,7 +46,10 @@ void RemoveFreeText(TextType * data); TextTypePtr CreateNewText(LayerTypePtr Layer, FontTypePtr PCBFont, Coord X, Coord Y, unsigned Direction, int Scale, char *TextString, FlagType Flags); + +/* Add objects without creating them or making any "sanity modifications" to them */ void pcb_add_text_on_layer(LayerType *Layer, TextType *text, FontType *PCBFont); + void SetTextBoundingBox(FontTypePtr FontPtr, TextTypePtr Text); void *RemoveText(LayerTypePtr Layer, TextTypePtr Text); void RotateTextLowLevel(TextTypePtr Text, Coord X, Coord Y, unsigned Number); Index: trunk/src/object_act.c =================================================================== --- trunk/src/object_act.c (revision 4599) +++ trunk/src/object_act.c (revision 4600) @@ -46,7 +46,6 @@ #include "rubberband.h" #include "buffer.h" #include "remove.h" -#include "create.h" #include "compat_misc.h" #include "compat_nls.h" #include "layer.h" Index: trunk/src/plug_io.c =================================================================== --- trunk/src/plug_io.c (revision 4599) +++ trunk/src/plug_io.c (revision 4600) @@ -52,7 +52,6 @@ #include "math_helper.h" #include "buffer.h" #include "change.h" -#include "create.h" #include "data.h" #include "error.h" #include "plug_io.h" Index: trunk/src/polygon.c =================================================================== --- trunk/src/polygon.c (revision 4599) +++ trunk/src/polygon.c (revision 4600) @@ -81,7 +81,6 @@ #include "board.h" #include "box.h" -#include "create.h" #include "data.h" #include "draw.h" #include "error.h" Index: trunk/src/rats.c =================================================================== --- trunk/src/rats.c (revision 4599) +++ trunk/src/rats.c (revision 4600) @@ -32,7 +32,6 @@ #include #include "board.h" -#include "create.h" #include "data.h" #include "draw.h" #include "error.h" Index: trunk/src/rats_patch.c =================================================================== --- trunk/src/rats_patch.c (revision 4599) +++ trunk/src/rats_patch.c (revision 4600) @@ -26,7 +26,6 @@ #include "rats_patch.h" #include "genht/htsp.h" #include "genht/hash.h" -#include "create.h" #include "board.h" #include "config.h" Index: trunk/src/rubberband.c =================================================================== --- trunk/src/rubberband.c (revision 4599) +++ trunk/src/rubberband.c (revision 4600) @@ -35,7 +35,6 @@ #include #include "board.h" -#include "create.h" #include "data.h" #include "error.h" #include "layer.h" Index: trunk/src/undo.c =================================================================== --- trunk/src/undo.c (revision 4599) +++ trunk/src/undo.c (revision 4600) @@ -48,7 +48,6 @@ #include "board.h" #include "buffer.h" #include "change.h" -#include "create.h" #include "data.h" #include "draw.h" #include "error.h" Index: trunk/src_plugins/autocrop/autocrop.c =================================================================== --- trunk/src_plugins/autocrop/autocrop.c (revision 4599) +++ trunk/src_plugins/autocrop/autocrop.c (revision 4600) @@ -51,7 +51,6 @@ #include "data.h" #include "hid.h" #include "misc.h" -#include "create.h" #include "rtree.h" #include "undo.h" #include "move.h" Index: trunk/src_plugins/autoplace/autoplace.c =================================================================== --- trunk/src_plugins/autoplace/autoplace.c (revision 4599) +++ trunk/src_plugins/autoplace/autoplace.c (revision 4600) @@ -190,7 +190,6 @@ } #if 0 /* only for debugging box lists */ -#include "create.h" /* makes a line on the solder layer surrounding all boxes in blist */ static void showboxes(BoxListTypePtr blist) { Index: trunk/src_plugins/autoroute/autoroute.c =================================================================== --- trunk/src_plugins/autoroute/autoroute.c (revision 4599) +++ trunk/src_plugins/autoroute/autoroute.c (revision 4600) @@ -60,7 +60,6 @@ #include "macro.h" #include "autoroute.h" #include "box.h" -#include "create.h" #include "draw.h" #include "error.h" #include "find.h" Index: trunk/src_plugins/boardflip/boardflip.c =================================================================== --- trunk/src_plugins/boardflip/boardflip.c (revision 4599) +++ trunk/src_plugins/boardflip/boardflip.c (revision 4600) @@ -34,7 +34,6 @@ #include "data.h" #include "hid.h" #include "misc.h" -#include "create.h" #include "rtree.h" #include "undo.h" #include "plugins.h" Index: trunk/src_plugins/distalign/distalign.c =================================================================== --- trunk/src_plugins/distalign/distalign.c (revision 4599) +++ trunk/src_plugins/distalign/distalign.c (revision 4600) @@ -105,7 +105,6 @@ #include "data.h" #include "hid.h" #include "misc.h" -#include "create.h" #include "rtree.h" #include "undo.h" #include "rats.h" Index: trunk/src_plugins/distaligntext/distaligntext.c =================================================================== --- trunk/src_plugins/distaligntext/distaligntext.c (revision 4599) +++ trunk/src_plugins/distaligntext/distaligntext.c (revision 4600) @@ -27,7 +27,6 @@ #include "data.h" #include "hid.h" #include "misc.h" -#include "create.h" #include "rtree.h" #include "undo.h" #include "rats.h" Index: trunk/src_plugins/djopt/djopt.c =================================================================== --- trunk/src_plugins/djopt/djopt.c (revision 4599) +++ trunk/src_plugins/djopt/djopt.c (revision 4600) @@ -33,7 +33,6 @@ #include "data.h" -#include "create.h" #include "remove.h" #include "move.h" #include "draw.h" Index: trunk/src_plugins/export_bboard/bboard.c =================================================================== --- trunk/src_plugins/export_bboard/bboard.c (revision 4599) +++ trunk/src_plugins/export_bboard/bboard.c (revision 4600) @@ -43,7 +43,6 @@ #include "misc.h" #include "error.h" #include "buffer.h" -#include "create.h" #include "layer.h" #include "plugins.h" #include "compat_misc.h" Index: trunk/src_plugins/export_dsn/dsn.c =================================================================== --- trunk/src_plugins/export_dsn/dsn.c (revision 4599) +++ trunk/src_plugins/export_dsn/dsn.c (revision 4600) @@ -49,7 +49,6 @@ #include "set.h" #include "undo.h" #include "pcb-printf.h" -#include "create.h" #include "polygon.h" #include "compat_misc.h" #include "layer.h" Index: trunk/src_plugins/export_openscad/scad.c =================================================================== --- trunk/src_plugins/export_openscad/scad.c (revision 4599) +++ trunk/src_plugins/export_openscad/scad.c (revision 4600) @@ -43,7 +43,6 @@ #include "misc.h" #include "error.h" #include "buffer.h" -#include "create.h" #include "conf_core.h" #include "layer.h" #include "plugins.h" Index: trunk/src_plugins/export_openscad/scadcomp.c =================================================================== --- trunk/src_plugins/export_openscad/scadcomp.c (revision 4599) +++ trunk/src_plugins/export_openscad/scadcomp.c (revision 4600) @@ -43,7 +43,6 @@ #include "misc.h" #include "error.h" #include "buffer.h" -#include "create.h" #include "misc_util.h" #include "hid.h" Index: trunk/src_plugins/export_openscad/scadproto.c =================================================================== --- trunk/src_plugins/export_openscad/scadproto.c (revision 4599) +++ trunk/src_plugins/export_openscad/scadproto.c (revision 4600) @@ -41,7 +41,6 @@ #include "misc.h" #include "error.h" #include "buffer.h" -#include "create.h" #include "hid.h" #include "hid_nogui.h" Index: trunk/src_plugins/fontmode/fontmode.c =================================================================== --- trunk/src_plugins/fontmode/fontmode.c (revision 4599) +++ trunk/src_plugins/fontmode/fontmode.c (revision 4600) @@ -34,7 +34,6 @@ #include -#include "create.h" #include "data.h" #include "draw.h" #include "flag.h" Index: trunk/src_plugins/gpmi/pcb-gpmi/gpmi_plugin/gpmi_pkg/layout/layout.h =================================================================== --- trunk/src_plugins/gpmi/pcb-gpmi/gpmi_plugin/gpmi_pkg/layout/layout.h (revision 4599) +++ trunk/src_plugins/gpmi/pcb-gpmi/gpmi_plugin/gpmi_pkg/layout/layout.h (revision 4600) @@ -1,7 +1,6 @@ #include #include "src/global.h" #include "src/rtree.h" -#include "src/create.h" #include "src/data.h" #include "src/pcb-printf.h" Index: trunk/src_plugins/hid_gtk/ghid-propedit.c =================================================================== --- trunk/src_plugins/hid_gtk/ghid-propedit.c (revision 4599) +++ trunk/src_plugins/hid_gtk/ghid-propedit.c (revision 4600) @@ -27,7 +27,6 @@ #include #include "config.h" #include "gui.h" -#include "create.h" #include "compat_misc.h" #include "compat_nls.h" #include "polygon.h" Index: trunk/src_plugins/hid_gtk/ghid-search.c =================================================================== --- trunk/src_plugins/hid_gtk/ghid-search.c (revision 4599) +++ trunk/src_plugins/hid_gtk/ghid-search.c (revision 4600) @@ -29,7 +29,6 @@ #include #include "config.h" #include "gui.h" -#include "create.h" #include "compat_misc.h" #include "ghid-search.h" #include "win_place.h" Index: trunk/src_plugins/hid_gtk/gui-netlist-window.c =================================================================== --- trunk/src_plugins/hid_gtk/gui-netlist-window.c (revision 4599) +++ trunk/src_plugins/hid_gtk/gui-netlist-window.c (revision 4600) @@ -37,7 +37,6 @@ #include "win_place.h" -#include "create.h" #include "data.h" #include "draw.h" #include "error.h" Index: trunk/src_plugins/hid_gtk/gui-top-window.c =================================================================== --- trunk/src_plugins/hid_gtk/gui-top-window.c (revision 4599) +++ trunk/src_plugins/hid_gtk/gui-top-window.c (revision 4600) @@ -65,7 +65,6 @@ #include "buffer.h" #include "change.h" #include "copy.h" -#include "create.h" #include "crosshair.h" #include "draw.h" #include "error.h" Index: trunk/src_plugins/import_dsn/dsn.c =================================================================== --- trunk/src_plugins/import_dsn/dsn.c (revision 4599) +++ trunk/src_plugins/import_dsn/dsn.c (revision 4600) @@ -47,7 +47,6 @@ #include "set.h" #include "undo.h" #include "pcb-printf.h" -#include "create.h" #include "polygon.h" #include "compat_misc.h" #include "compat_nls.h" Index: trunk/src_plugins/io_kicad/read.c =================================================================== --- trunk/src_plugins/io_kicad/read.c (revision 4599) +++ trunk/src_plugins/io_kicad/read.c (revision 4600) @@ -38,7 +38,6 @@ #include "layer.h" #include "const.h" #include "netlist.h" -#include "create.h" #include "polygon.h" #include "misc.h" /* for flag setting */ #include "misc_util.h" /* for distance calculations */ Index: trunk/src_plugins/io_lihata/read.c =================================================================== --- trunk/src_plugins/io_lihata/read.c (revision 4599) +++ trunk/src_plugins/io_lihata/read.c (revision 4600) @@ -40,7 +40,6 @@ #include "misc.h" #include "misc_util.h" #include "layer.h" -#include "create.h" #include "vtptr.h" #include "common.h" #include "polygon.h" Index: trunk/src_plugins/io_pcb/file.c =================================================================== --- trunk/src_plugins/io_pcb/file.c (revision 4599) +++ trunk/src_plugins/io_pcb/file.c (revision 4600) @@ -38,7 +38,6 @@ #include "buffer.h" #include "change.h" -#include "create.h" #include "crosshair.h" #include "data.h" #include "error.h" Index: trunk/src_plugins/io_pcb/parse_l.c =================================================================== --- trunk/src_plugins/io_pcb/parse_l.c (revision 4599) +++ trunk/src_plugins/io_pcb/parse_l.c (revision 4600) @@ -690,11 +690,11 @@ #include "flag_str.h" #include "parse_common.h" #include "parse_y.h" -#include "create.h" #include "plug_footprint.h" #include "attribs.h" #include "compat_misc.h" #include "compat_cc.h" +#include "obj_common.h" #define YY_NO_INPUT Index: trunk/src_plugins/io_pcb/parse_l.l =================================================================== --- trunk/src_plugins/io_pcb/parse_l.l (revision 4599) +++ trunk/src_plugins/io_pcb/parse_l.l (revision 4600) @@ -56,11 +56,11 @@ #include "flag_str.h" #include "parse_common.h" #include "parse_y.h" -#include "create.h" #include "plug_footprint.h" #include "attribs.h" #include "compat_misc.h" #include "compat_cc.h" +#include "obj_common.h" #define YY_NO_INPUT Index: trunk/src_plugins/io_pcb/parse_y.c =================================================================== --- trunk/src_plugins/io_pcb/parse_y.c (revision 4599) +++ trunk/src_plugins/io_pcb/parse_y.c (revision 4600) @@ -106,7 +106,6 @@ #include "board.h" #include "conf_core.h" #include "layer.h" -#include "create.h" #include "data.h" #include "error.h" #include "file.h" @@ -167,7 +166,7 @@ #include "parse_y.h" -#line 171 "parse_y.c" /* yacc.c:339 */ +#line 170 "parse_y.c" /* yacc.c:339 */ # ifndef YY_NULLPTR # if defined __cplusplus && 201103L <= __cplusplus @@ -258,7 +257,7 @@ union YYSTYPE { -#line 113 "parse_y.y" /* yacc.c:355 */ +#line 112 "parse_y.y" /* yacc.c:355 */ int integer; double number; @@ -266,7 +265,7 @@ FlagType flagtype; PLMeasure measure; -#line 270 "parse_y.c" /* yacc.c:355 */ +#line 269 "parse_y.c" /* yacc.c:355 */ }; typedef union YYSTYPE YYSTYPE; @@ -283,7 +282,7 @@ /* Copy the second part of user declarations. */ -#line 287 "parse_y.c" /* yacc.c:358 */ +#line 286 "parse_y.c" /* yacc.c:358 */ #ifdef short # undef short @@ -585,28 +584,28 @@ /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { - 0, 140, 140, 141, 142, 143, 167, 167, 224, 224, - 235, 235, 254, 255, 260, 260, 300, 302, 332, 338, - 344, 373, 374, 375, 378, 386, 401, 435, 441, 447, - 463, 465, 490, 492, 523, 525, 526, 527, 531, 541, - 552, 579, 583, 588, 616, 620, 664, 673, 682, 686, - 687, 691, 692, 696, 697, 697, 698, 699, 701, 701, - 708, 712, 713, 714, 715, 716, 752, 762, 773, 783, - 793, 829, 834, 866, 865, 893, 894, 898, 899, 903, - 904, 905, 906, 907, 908, 910, 915, 916, 917, 918, - 918, 919, 949, 958, 967, 1015, 1024, 1033, 1070, 1080, - 1098, 1148, 1147, 1186, 1188, 1193, 1192, 1199, 1201, 1206, - 1210, 1270, 1271, 1272, 1273, 1274, 1282, 1281, 1300, 1299, - 1318, 1317, 1338, 1336, 1360, 1358, 1439, 1440, 1444, 1445, - 1446, 1447, 1448, 1450, 1455, 1460, 1465, 1470, 1475, 1480, - 1480, 1484, 1485, 1489, 1490, 1491, 1492, 1494, 1500, 1507, - 1512, 1517, 1517, 1558, 1570, 1582, 1593, 1609, 1663, 1677, - 1690, 1701, 1712, 1713, 1717, 1718, 1740, 1742, 1758, 1777, - 1778, 1781, 1783, 1784, 1805, 1812, 1828, 1829, 1833, 1838, - 1839, 1843, 1844, 1868, 1867, 1877, 1878, 1882, 1883, 1902, - 1919, 1920, 1924, 1929, 1930, 1934, 1935, 1950, 1951, 1952, - 1979, 1987, 1988, 1992, 1993, 1998, 1999, 2000, 2001, 2002, - 2003, 2004, 2005, 2006, 2007 + 0, 139, 139, 140, 141, 142, 166, 166, 223, 223, + 234, 234, 253, 254, 259, 259, 299, 301, 331, 337, + 343, 372, 373, 374, 377, 385, 400, 434, 440, 446, + 462, 464, 489, 491, 522, 524, 525, 526, 530, 540, + 551, 578, 582, 587, 615, 619, 663, 672, 681, 685, + 686, 690, 691, 695, 696, 696, 697, 698, 700, 700, + 707, 711, 712, 713, 714, 715, 751, 761, 772, 782, + 792, 828, 833, 865, 864, 892, 893, 897, 898, 902, + 903, 904, 905, 906, 907, 909, 914, 915, 916, 917, + 917, 918, 948, 957, 966, 1014, 1023, 1032, 1069, 1079, + 1097, 1147, 1146, 1185, 1187, 1192, 1191, 1198, 1200, 1205, + 1209, 1269, 1270, 1271, 1272, 1273, 1281, 1280, 1299, 1298, + 1317, 1316, 1337, 1335, 1359, 1357, 1438, 1439, 1443, 1444, + 1445, 1446, 1447, 1449, 1454, 1459, 1464, 1469, 1474, 1479, + 1479, 1483, 1484, 1488, 1489, 1490, 1491, 1493, 1499, 1506, + 1511, 1516, 1516, 1557, 1569, 1581, 1592, 1608, 1662, 1676, + 1689, 1700, 1711, 1712, 1716, 1717, 1739, 1741, 1757, 1776, + 1777, 1780, 1782, 1783, 1804, 1811, 1827, 1828, 1832, 1837, + 1838, 1842, 1843, 1867, 1866, 1876, 1877, 1881, 1882, 1901, + 1918, 1919, 1923, 1928, 1929, 1933, 1934, 1949, 1950, 1951, + 1978, 1986, 1987, 1991, 1992, 1997, 1998, 1999, 2000, 2001, + 2002, 2003, 2004, 2005, 2006 }; #endif @@ -1783,13 +1782,13 @@ switch (yyn) { case 5: -#line 143 "parse_y.y" /* yacc.c:1646 */ +#line 142 "parse_y.y" /* yacc.c:1646 */ { YYABORT; } -#line 1789 "parse_y.c" /* yacc.c:1646 */ +#line 1788 "parse_y.c" /* yacc.c:1646 */ break; case 6: -#line 167 "parse_y.y" /* yacc.c:1646 */ +#line 166 "parse_y.y" /* yacc.c:1646 */ { /* reset flags for 'used layers'; * init font and data pointers @@ -1810,11 +1809,11 @@ yyPCB->NetlistPatches = yyPCB->NetlistPatchLast = NULL; layer_group_string = NULL; } -#line 1814 "parse_y.c" /* yacc.c:1646 */ +#line 1813 "parse_y.c" /* yacc.c:1646 */ break; case 7: -#line 201 "parse_y.y" /* yacc.c:1646 */ +#line 200 "parse_y.y" /* yacc.c:1646 */ { PCBTypePtr pcb_save = PCB; if ((yy_settings_dest != CFR_invalid) && (layer_group_string != NULL)) @@ -1837,28 +1836,28 @@ ENDALL_LOOP; PCB = pcb_save; } -#line 1841 "parse_y.c" /* yacc.c:1646 */ +#line 1840 "parse_y.c" /* yacc.c:1646 */ break; case 8: -#line 224 "parse_y.y" /* yacc.c:1646 */ +#line 223 "parse_y.y" /* yacc.c:1646 */ { PreLoadElementPCB (); layer_group_string = NULL; } -#line 1848 "parse_y.c" /* yacc.c:1646 */ +#line 1847 "parse_y.c" /* yacc.c:1646 */ break; case 9: -#line 227 "parse_y.y" /* yacc.c:1646 */ +#line 226 "parse_y.y" /* yacc.c:1646 */ { LayerFlag[0] = pcb_true; LayerFlag[1] = pcb_true; yyData->LayerN = 2; PostLoadElementPCB (); } -#line 1858 "parse_y.c" /* yacc.c:1646 */ +#line 1857 "parse_y.c" /* yacc.c:1646 */ break; case 10: -#line 235 "parse_y.y" /* yacc.c:1646 */ +#line 234 "parse_y.y" /* yacc.c:1646 */ { /* reset flags for 'used layers'; * init font and data pointers @@ -1874,11 +1873,11 @@ LayerFlag[i] = pcb_false; yyData->LayerN = 0; } -#line 1878 "parse_y.c" /* yacc.c:1646 */ +#line 1877 "parse_y.c" /* yacc.c:1646 */ break; case 14: -#line 260 "parse_y.y" /* yacc.c:1646 */ +#line 259 "parse_y.y" /* yacc.c:1646 */ { /* mark all symbols invalid */ int i; @@ -1893,20 +1892,20 @@ free (yyFont->Symbol[i].Line); memset(yyFont->Symbol, 0, sizeof(yyFont->Symbol)); } -#line 1897 "parse_y.c" /* yacc.c:1646 */ +#line 1896 "parse_y.c" /* yacc.c:1646 */ break; case 15: -#line 275 "parse_y.y" /* yacc.c:1646 */ +#line 274 "parse_y.y" /* yacc.c:1646 */ { yyFont->Valid = pcb_true; SetFontInfo(yyFont); } -#line 1906 "parse_y.c" /* yacc.c:1646 */ +#line 1905 "parse_y.c" /* yacc.c:1646 */ break; case 17: -#line 303 "parse_y.y" /* yacc.c:1646 */ +#line 302 "parse_y.y" /* yacc.c:1646 */ { if (check_file_version ((yyvsp[-1].integer)) != 0) { @@ -1913,51 +1912,51 @@ YYABORT; } } -#line 1917 "parse_y.c" /* yacc.c:1646 */ +#line 1916 "parse_y.c" /* yacc.c:1646 */ break; case 18: -#line 333 "parse_y.y" /* yacc.c:1646 */ +#line 332 "parse_y.y" /* yacc.c:1646 */ { yyPCB->Name = (yyvsp[-1].string); yyPCB->MaxWidth = MAX_COORD; yyPCB->MaxHeight = MAX_COORD; } -#line 1927 "parse_y.c" /* yacc.c:1646 */ +#line 1926 "parse_y.c" /* yacc.c:1646 */ break; case 19: -#line 339 "parse_y.y" /* yacc.c:1646 */ +#line 338 "parse_y.y" /* yacc.c:1646 */ { yyPCB->Name = (yyvsp[-3].string); yyPCB->MaxWidth = OU ((yyvsp[-2].measure)); yyPCB->MaxHeight = OU ((yyvsp[-1].measure)); } -#line 1937 "parse_y.c" /* yacc.c:1646 */ +#line 1936 "parse_y.c" /* yacc.c:1646 */ break; case 20: -#line 345 "parse_y.y" /* yacc.c:1646 */ +#line 344 "parse_y.y" /* yacc.c:1646 */ { yyPCB->Name = (yyvsp[-3].string); yyPCB->MaxWidth = NU ((yyvsp[-2].measure)); yyPCB->MaxHeight = NU ((yyvsp[-1].measure)); } -#line 1947 "parse_y.c" /* yacc.c:1646 */ +#line 1946 "parse_y.c" /* yacc.c:1646 */ break; case 24: -#line 379 "parse_y.y" /* yacc.c:1646 */ +#line 378 "parse_y.y" /* yacc.c:1646 */ { yyPCB->Grid = OU ((yyvsp[-3].measure)); yyPCB->GridOffsetX = OU ((yyvsp[-2].measure)); yyPCB->GridOffsetY = OU ((yyvsp[-1].measure)); } -#line 1957 "parse_y.c" /* yacc.c:1646 */ +#line 1956 "parse_y.c" /* yacc.c:1646 */ break; case 25: -#line 387 "parse_y.y" /* yacc.c:1646 */ +#line 386 "parse_y.y" /* yacc.c:1646 */ { yyPCB->Grid = OU ((yyvsp[-4].measure)); yyPCB->GridOffsetX = OU ((yyvsp[-3].measure)); @@ -1969,11 +1968,11 @@ conf_set(yy_settings_dest, "editor/draw_grid", -1, "false", POL_OVERWRITE); } } -#line 1973 "parse_y.c" /* yacc.c:1646 */ +#line 1972 "parse_y.c" /* yacc.c:1646 */ break; case 26: -#line 402 "parse_y.y" /* yacc.c:1646 */ +#line 401 "parse_y.y" /* yacc.c:1646 */ { yyPCB->Grid = NU ((yyvsp[-4].measure)); yyPCB->GridOffsetX = NU ((yyvsp[-3].measure)); @@ -1985,48 +1984,48 @@ conf_set(yy_settings_dest, "editor/draw_grid", -1, "false", POL_OVERWRITE); } } -#line 1989 "parse_y.c" /* yacc.c:1646 */ +#line 1988 "parse_y.c" /* yacc.c:1646 */ break; case 27: -#line 436 "parse_y.y" /* yacc.c:1646 */ +#line 435 "parse_y.y" /* yacc.c:1646 */ { yyPCB->CursorX = OU ((yyvsp[-3].measure)); yyPCB->CursorY = OU ((yyvsp[-2].measure)); yyPCB->Zoom = (yyvsp[-1].number)*2; } -#line 1999 "parse_y.c" /* yacc.c:1646 */ +#line 1998 "parse_y.c" /* yacc.c:1646 */ break; case 28: -#line 442 "parse_y.y" /* yacc.c:1646 */ +#line 441 "parse_y.y" /* yacc.c:1646 */ { yyPCB->CursorX = NU ((yyvsp[-3].measure)); yyPCB->CursorY = NU ((yyvsp[-2].measure)); yyPCB->Zoom = (yyvsp[-1].number); } -#line 2009 "parse_y.c" /* yacc.c:1646 */ +#line 2008 "parse_y.c" /* yacc.c:1646 */ break; case 31: -#line 466 "parse_y.y" /* yacc.c:1646 */ +#line 465 "parse_y.y" /* yacc.c:1646 */ { /* Read in cmil^2 for now; in future this should be a noop. */ yyPCB->IsleArea = PCB_MIL_TO_COORD (PCB_MIL_TO_COORD ((yyvsp[-1].number)) / 100.0) / 100.0; } -#line 2018 "parse_y.c" /* yacc.c:1646 */ +#line 2017 "parse_y.c" /* yacc.c:1646 */ break; case 33: -#line 493 "parse_y.y" /* yacc.c:1646 */ +#line 492 "parse_y.y" /* yacc.c:1646 */ { yyPCB->ThermScale = (yyvsp[-1].number); } -#line 2026 "parse_y.c" /* yacc.c:1646 */ +#line 2025 "parse_y.c" /* yacc.c:1646 */ break; case 38: -#line 532 "parse_y.y" /* yacc.c:1646 */ +#line 531 "parse_y.y" /* yacc.c:1646 */ { yyPCB->Bloat = NU ((yyvsp[-3].measure)); yyPCB->Shrink = NU ((yyvsp[-2].measure)); @@ -2033,11 +2032,11 @@ yyPCB->minWid = NU ((yyvsp[-1].measure)); yyPCB->minRing = NU ((yyvsp[-1].measure)); } -#line 2037 "parse_y.c" /* yacc.c:1646 */ +#line 2036 "parse_y.c" /* yacc.c:1646 */ break; case 39: -#line 542 "parse_y.y" /* yacc.c:1646 */ +#line 541 "parse_y.y" /* yacc.c:1646 */ { yyPCB->Bloat = NU ((yyvsp[-4].measure)); yyPCB->Shrink = NU ((yyvsp[-3].measure)); @@ -2045,11 +2044,11 @@ yyPCB->minSlk = NU ((yyvsp[-1].measure)); yyPCB->minRing = NU ((yyvsp[-2].measure)); } -#line 2049 "parse_y.c" /* yacc.c:1646 */ +#line 2048 "parse_y.c" /* yacc.c:1646 */ break; case 40: -#line 553 "parse_y.y" /* yacc.c:1646 */ +#line 552 "parse_y.y" /* yacc.c:1646 */ { yyPCB->Bloat = NU ((yyvsp[-6].measure)); yyPCB->Shrink = NU ((yyvsp[-5].measure)); @@ -2058,36 +2057,36 @@ yyPCB->minDrill = NU ((yyvsp[-2].measure)); yyPCB->minRing = NU ((yyvsp[-1].measure)); } -#line 2062 "parse_y.c" /* yacc.c:1646 */ +#line 2061 "parse_y.c" /* yacc.c:1646 */ break; case 41: -#line 580 "parse_y.y" /* yacc.c:1646 */ +#line 579 "parse_y.y" /* yacc.c:1646 */ { yy_pcb_flags = MakeFlags ((yyvsp[-1].integer) & PCB_FLAGS); } -#line 2070 "parse_y.c" /* yacc.c:1646 */ +#line 2069 "parse_y.c" /* yacc.c:1646 */ break; case 42: -#line 584 "parse_y.y" /* yacc.c:1646 */ +#line 583 "parse_y.y" /* yacc.c:1646 */ { yy_pcb_flags = string_to_pcbflags ((yyvsp[-1].string), yyerror); free((yyvsp[-1].string)); } -#line 2079 "parse_y.c" /* yacc.c:1646 */ +#line 2078 "parse_y.c" /* yacc.c:1646 */ break; case 44: -#line 617 "parse_y.y" /* yacc.c:1646 */ +#line 616 "parse_y.y" /* yacc.c:1646 */ { layer_group_string = (yyvsp[-1].string); } -#line 2087 "parse_y.c" /* yacc.c:1646 */ +#line 2086 "parse_y.c" /* yacc.c:1646 */ break; case 46: -#line 665 "parse_y.y" /* yacc.c:1646 */ +#line 664 "parse_y.y" /* yacc.c:1646 */ { if (ParseRouteString((yyvsp[-1].string), &yyPCB->RouteStyle, "mil")) { @@ -2096,11 +2095,11 @@ } free((yyvsp[-1].string)); } -#line 2100 "parse_y.c" /* yacc.c:1646 */ +#line 2099 "parse_y.c" /* yacc.c:1646 */ break; case 47: -#line 674 "parse_y.y" /* yacc.c:1646 */ +#line 673 "parse_y.y" /* yacc.c:1646 */ { if (ParseRouteString(((yyvsp[-1].string) == NULL ? "" : (yyvsp[-1].string)), &yyPCB->RouteStyle, "cmil")) { @@ -2109,17 +2108,17 @@ } free((yyvsp[-1].string)); } -#line 2113 "parse_y.c" /* yacc.c:1646 */ +#line 2112 "parse_y.c" /* yacc.c:1646 */ break; case 54: -#line 697 "parse_y.y" /* yacc.c:1646 */ +#line 696 "parse_y.y" /* yacc.c:1646 */ { attr_list = & yyPCB->Attributes; } -#line 2119 "parse_y.c" /* yacc.c:1646 */ +#line 2118 "parse_y.c" /* yacc.c:1646 */ break; case 58: -#line 701 "parse_y.y" /* yacc.c:1646 */ +#line 700 "parse_y.y" /* yacc.c:1646 */ { /* clear pointer to force memory allocation by * the appropriate subroutine @@ -2126,57 +2125,57 @@ */ yyElement = NULL; } -#line 2130 "parse_y.c" /* yacc.c:1646 */ +#line 2129 "parse_y.c" /* yacc.c:1646 */ break; case 60: -#line 708 "parse_y.y" /* yacc.c:1646 */ +#line 707 "parse_y.y" /* yacc.c:1646 */ { YYABORT; } -#line 2136 "parse_y.c" /* yacc.c:1646 */ +#line 2135 "parse_y.c" /* yacc.c:1646 */ break; case 66: -#line 753 "parse_y.y" /* yacc.c:1646 */ +#line 752 "parse_y.y" /* yacc.c:1646 */ { CreateNewVia(yyData, NU ((yyvsp[-8].measure)), NU ((yyvsp[-7].measure)), NU ((yyvsp[-6].measure)), NU ((yyvsp[-5].measure)), NU ((yyvsp[-4].measure)), NU ((yyvsp[-3].measure)), (yyvsp[-2].string), (yyvsp[-1].flagtype)); free ((yyvsp[-2].string)); } -#line 2146 "parse_y.c" /* yacc.c:1646 */ +#line 2145 "parse_y.c" /* yacc.c:1646 */ break; case 67: -#line 763 "parse_y.y" /* yacc.c:1646 */ +#line 762 "parse_y.y" /* yacc.c:1646 */ { CreateNewVia(yyData, OU ((yyvsp[-8].measure)), OU ((yyvsp[-7].measure)), OU ((yyvsp[-6].measure)), OU ((yyvsp[-5].measure)), OU ((yyvsp[-4].measure)), OU ((yyvsp[-3].measure)), (yyvsp[-2].string), OldFlags((yyvsp[-1].integer))); free ((yyvsp[-2].string)); } -#line 2156 "parse_y.c" /* yacc.c:1646 */ +#line 2155 "parse_y.c" /* yacc.c:1646 */ break; case 68: -#line 774 "parse_y.y" /* yacc.c:1646 */ +#line 773 "parse_y.y" /* yacc.c:1646 */ { CreateNewVia(yyData, OU ((yyvsp[-7].measure)), OU ((yyvsp[-6].measure)), OU ((yyvsp[-5].measure)), OU ((yyvsp[-4].measure)), OU ((yyvsp[-5].measure)) + OU((yyvsp[-4].measure)), OU ((yyvsp[-3].measure)), (yyvsp[-2].string), OldFlags((yyvsp[-1].integer))); free ((yyvsp[-2].string)); } -#line 2166 "parse_y.c" /* yacc.c:1646 */ +#line 2165 "parse_y.c" /* yacc.c:1646 */ break; case 69: -#line 784 "parse_y.y" /* yacc.c:1646 */ +#line 783 "parse_y.y" /* yacc.c:1646 */ { CreateNewVia(yyData, OU ((yyvsp[-6].measure)), OU ((yyvsp[-5].measure)), OU ((yyvsp[-4].measure)), 2*GROUNDPLANEFRAME, OU((yyvsp[-4].measure)) + 2*MASKFRAME, OU ((yyvsp[-3].measure)), (yyvsp[-2].string), OldFlags((yyvsp[-1].integer))); free ((yyvsp[-2].string)); } -#line 2176 "parse_y.c" /* yacc.c:1646 */ +#line 2175 "parse_y.c" /* yacc.c:1646 */ break; case 70: -#line 794 "parse_y.y" /* yacc.c:1646 */ +#line 793 "parse_y.y" /* yacc.c:1646 */ { Coord hole = (OU((yyvsp[-3].measure)) * DEFAULT_DRILLINGHOLE); @@ -2189,29 +2188,29 @@ OU((yyvsp[-3].measure)) + 2*MASKFRAME, hole, (yyvsp[-2].string), OldFlags((yyvsp[-1].integer))); free ((yyvsp[-2].string)); } -#line 2193 "parse_y.c" /* yacc.c:1646 */ +#line 2192 "parse_y.c" /* yacc.c:1646 */ break; case 71: -#line 830 "parse_y.y" /* yacc.c:1646 */ +#line 829 "parse_y.y" /* yacc.c:1646 */ { CreateNewRat(yyData, NU ((yyvsp[-7].measure)), NU ((yyvsp[-6].measure)), NU ((yyvsp[-4].measure)), NU ((yyvsp[-3].measure)), (yyvsp[-5].integer), (yyvsp[-2].integer), conf_core.appearance.rat_thickness, (yyvsp[-1].flagtype)); } -#line 2202 "parse_y.c" /* yacc.c:1646 */ +#line 2201 "parse_y.c" /* yacc.c:1646 */ break; case 72: -#line 835 "parse_y.y" /* yacc.c:1646 */ +#line 834 "parse_y.y" /* yacc.c:1646 */ { CreateNewRat(yyData, OU ((yyvsp[-7].measure)), OU ((yyvsp[-6].measure)), OU ((yyvsp[-4].measure)), OU ((yyvsp[-3].measure)), (yyvsp[-5].integer), (yyvsp[-2].integer), conf_core.appearance.rat_thickness, OldFlags((yyvsp[-1].integer))); } -#line 2211 "parse_y.c" /* yacc.c:1646 */ +#line 2210 "parse_y.c" /* yacc.c:1646 */ break; case 73: -#line 866 "parse_y.y" /* yacc.c:1646 */ +#line 865 "parse_y.y" /* yacc.c:1646 */ { if ((yyvsp[-4].integer) <= 0 || (yyvsp[-4].integer) > MAX_LAYER + 2) { @@ -2235,44 +2234,44 @@ if ((yyvsp[-2].string) != NULL) free((yyvsp[-2].string)); } -#line 2239 "parse_y.c" /* yacc.c:1646 */ +#line 2238 "parse_y.c" /* yacc.c:1646 */ break; case 85: -#line 911 "parse_y.y" /* yacc.c:1646 */ +#line 910 "parse_y.y" /* yacc.c:1646 */ { CreateNewPolygonFromRectangle(Layer, OU ((yyvsp[-5].measure)), OU ((yyvsp[-4].measure)), OU ((yyvsp[-5].measure)) + OU ((yyvsp[-3].measure)), OU ((yyvsp[-4].measure)) + OU ((yyvsp[-2].measure)), OldFlags((yyvsp[-1].integer))); } -#line 2248 "parse_y.c" /* yacc.c:1646 */ +#line 2247 "parse_y.c" /* yacc.c:1646 */ break; case 89: -#line 918 "parse_y.y" /* yacc.c:1646 */ +#line 917 "parse_y.y" /* yacc.c:1646 */ { attr_list = & Layer->Attributes; } -#line 2254 "parse_y.c" /* yacc.c:1646 */ +#line 2253 "parse_y.c" /* yacc.c:1646 */ break; case 92: -#line 950 "parse_y.y" /* yacc.c:1646 */ +#line 949 "parse_y.y" /* yacc.c:1646 */ { CreateNewLineOnLayer(Layer, NU ((yyvsp[-7].measure)), NU ((yyvsp[-6].measure)), NU ((yyvsp[-5].measure)), NU ((yyvsp[-4].measure)), NU ((yyvsp[-3].measure)), NU ((yyvsp[-2].measure)), (yyvsp[-1].flagtype)); } -#line 2263 "parse_y.c" /* yacc.c:1646 */ +#line 2262 "parse_y.c" /* yacc.c:1646 */ break; case 93: -#line 959 "parse_y.y" /* yacc.c:1646 */ +#line 958 "parse_y.y" /* yacc.c:1646 */ { CreateNewLineOnLayer(Layer, OU ((yyvsp[-7].measure)), OU ((yyvsp[-6].measure)), OU ((yyvsp[-5].measure)), OU ((yyvsp[-4].measure)), OU ((yyvsp[-3].measure)), OU ((yyvsp[-2].measure)), OldFlags((yyvsp[-1].integer))); } -#line 2272 "parse_y.c" /* yacc.c:1646 */ +#line 2271 "parse_y.c" /* yacc.c:1646 */ break; case 94: -#line 968 "parse_y.y" /* yacc.c:1646 */ +#line 967 "parse_y.y" /* yacc.c:1646 */ { /* eliminate old-style rat-lines */ if ((IV ((yyvsp[-1].measure)) & PCB_FLAG_RAT) == 0) @@ -2279,48 +2278,48 @@ CreateNewLineOnLayer(Layer, OU ((yyvsp[-6].measure)), OU ((yyvsp[-5].measure)), OU ((yyvsp[-4].measure)), OU ((yyvsp[-3].measure)), OU ((yyvsp[-2].measure)), 200*GROUNDPLANEFRAME, OldFlags(IV ((yyvsp[-1].measure)))); } -#line 2283 "parse_y.c" /* yacc.c:1646 */ +#line 2282 "parse_y.c" /* yacc.c:1646 */ break; case 95: -#line 1016 "parse_y.y" /* yacc.c:1646 */ +#line 1015 "parse_y.y" /* yacc.c:1646 */ { CreateNewArcOnLayer(Layer, NU ((yyvsp[-9].measure)), NU ((yyvsp[-8].measure)), NU ((yyvsp[-7].measure)), NU ((yyvsp[-6].measure)), (yyvsp[-3].number), (yyvsp[-2].number), NU ((yyvsp[-5].measure)), NU ((yyvsp[-4].measure)), (yyvsp[-1].flagtype)); } -#line 2292 "parse_y.c" /* yacc.c:1646 */ +#line 2291 "parse_y.c" /* yacc.c:1646 */ break; case 96: -#line 1025 "parse_y.y" /* yacc.c:1646 */ +#line 1024 "parse_y.y" /* yacc.c:1646 */ { CreateNewArcOnLayer(Layer, OU ((yyvsp[-9].measure)), OU ((yyvsp[-8].measure)), OU ((yyvsp[-7].measure)), OU ((yyvsp[-6].measure)), (yyvsp[-3].number), (yyvsp[-2].number), OU ((yyvsp[-5].measure)), OU ((yyvsp[-4].measure)), OldFlags((yyvsp[-1].integer))); } -#line 2301 "parse_y.c" /* yacc.c:1646 */ +#line 2300 "parse_y.c" /* yacc.c:1646 */ break; case 97: -#line 1034 "parse_y.y" /* yacc.c:1646 */ +#line 1033 "parse_y.y" /* yacc.c:1646 */ { CreateNewArcOnLayer(Layer, OU ((yyvsp[-8].measure)), OU ((yyvsp[-7].measure)), OU ((yyvsp[-6].measure)), OU ((yyvsp[-6].measure)), IV ((yyvsp[-3].measure)), (yyvsp[-2].number), OU ((yyvsp[-4].measure)), 200*GROUNDPLANEFRAME, OldFlags((yyvsp[-1].integer))); } -#line 2310 "parse_y.c" /* yacc.c:1646 */ +#line 2309 "parse_y.c" /* yacc.c:1646 */ break; case 98: -#line 1071 "parse_y.y" /* yacc.c:1646 */ +#line 1070 "parse_y.y" /* yacc.c:1646 */ { /* use a default scale of 100% */ CreateNewText(Layer,yyFont,OU ((yyvsp[-5].measure)), OU ((yyvsp[-4].measure)), (yyvsp[-3].number), 100, (yyvsp[-2].string), OldFlags((yyvsp[-1].integer))); free ((yyvsp[-2].string)); } -#line 2320 "parse_y.c" /* yacc.c:1646 */ +#line 2319 "parse_y.c" /* yacc.c:1646 */ break; case 99: -#line 1081 "parse_y.y" /* yacc.c:1646 */ +#line 1080 "parse_y.y" /* yacc.c:1646 */ { if ((yyvsp[-1].integer) & PCB_FLAG_ONSILK) { @@ -2335,11 +2334,11 @@ OldFlags((yyvsp[-1].integer))); free ((yyvsp[-2].string)); } -#line 2339 "parse_y.c" /* yacc.c:1646 */ +#line 2338 "parse_y.c" /* yacc.c:1646 */ break; case 100: -#line 1099 "parse_y.y" /* yacc.c:1646 */ +#line 1098 "parse_y.y" /* yacc.c:1646 */ { /* FIXME: shouldn't know about .f */ /* I don't think this matters because anything with hi_format @@ -2359,19 +2358,19 @@ CreateNewText(Layer, yyFont, NU ((yyvsp[-6].measure)), NU ((yyvsp[-5].measure)), (yyvsp[-4].number), (yyvsp[-3].number), (yyvsp[-2].string), (yyvsp[-1].flagtype)); free ((yyvsp[-2].string)); } -#line 2363 "parse_y.c" /* yacc.c:1646 */ +#line 2362 "parse_y.c" /* yacc.c:1646 */ break; case 101: -#line 1148 "parse_y.y" /* yacc.c:1646 */ +#line 1147 "parse_y.y" /* yacc.c:1646 */ { Polygon = CreateNewPolygon(Layer, (yyvsp[-2].flagtype)); } -#line 2371 "parse_y.c" /* yacc.c:1646 */ +#line 2370 "parse_y.c" /* yacc.c:1646 */ break; case 102: -#line 1153 "parse_y.y" /* yacc.c:1646 */ +#line 1152 "parse_y.y" /* yacc.c:1646 */ { pcb_cardinal_t contour, contour_start, contour_end; pcb_bool bad_contour_found = pcb_false; @@ -2403,35 +2402,35 @@ r_insert_entry (Layer->polygon_tree, (BoxType *) Polygon, 0); } } -#line 2407 "parse_y.c" /* yacc.c:1646 */ +#line 2406 "parse_y.c" /* yacc.c:1646 */ break; case 105: -#line 1193 "parse_y.y" /* yacc.c:1646 */ +#line 1192 "parse_y.y" /* yacc.c:1646 */ { CreateNewHoleInPolygon (Polygon); } -#line 2415 "parse_y.c" /* yacc.c:1646 */ +#line 2414 "parse_y.c" /* yacc.c:1646 */ break; case 109: -#line 1207 "parse_y.y" /* yacc.c:1646 */ +#line 1206 "parse_y.y" /* yacc.c:1646 */ { CreateNewPointInPolygon(Polygon, OU ((yyvsp[-2].measure)), OU ((yyvsp[-1].measure))); } -#line 2423 "parse_y.c" /* yacc.c:1646 */ +#line 2422 "parse_y.c" /* yacc.c:1646 */ break; case 110: -#line 1211 "parse_y.y" /* yacc.c:1646 */ +#line 1210 "parse_y.y" /* yacc.c:1646 */ { CreateNewPointInPolygon(Polygon, NU ((yyvsp[-2].measure)), NU ((yyvsp[-1].measure))); } -#line 2431 "parse_y.c" /* yacc.c:1646 */ +#line 2430 "parse_y.c" /* yacc.c:1646 */ break; case 116: -#line 1282 "parse_y.y" /* yacc.c:1646 */ +#line 1281 "parse_y.y" /* yacc.c:1646 */ { yyElement = CreateNewElement(yyData, yyElement, yyFont, NoFlags(), (yyvsp[-6].string), (yyvsp[-5].string), NULL, OU ((yyvsp[-4].measure)), OU ((yyvsp[-3].measure)), (yyvsp[-2].integer), 100, NoFlags(), pcb_false); @@ -2439,19 +2438,19 @@ free ((yyvsp[-5].string)); pin_num = 1; } -#line 2443 "parse_y.c" /* yacc.c:1646 */ +#line 2442 "parse_y.c" /* yacc.c:1646 */ break; case 117: -#line 1290 "parse_y.y" /* yacc.c:1646 */ +#line 1289 "parse_y.y" /* yacc.c:1646 */ { SetElementBoundingBox(yyData, yyElement, yyFont); } -#line 2451 "parse_y.c" /* yacc.c:1646 */ +#line 2450 "parse_y.c" /* yacc.c:1646 */ break; case 118: -#line 1300 "parse_y.y" /* yacc.c:1646 */ +#line 1299 "parse_y.y" /* yacc.c:1646 */ { yyElement = CreateNewElement(yyData, yyElement, yyFont, OldFlags((yyvsp[-9].integer)), (yyvsp[-8].string), (yyvsp[-7].string), NULL, OU ((yyvsp[-6].measure)), OU ((yyvsp[-5].measure)), IV ((yyvsp[-4].measure)), IV ((yyvsp[-3].measure)), OldFlags((yyvsp[-2].integer)), pcb_false); @@ -2459,19 +2458,19 @@ free ((yyvsp[-7].string)); pin_num = 1; } -#line 2463 "parse_y.c" /* yacc.c:1646 */ +#line 2462 "parse_y.c" /* yacc.c:1646 */ break; case 119: -#line 1308 "parse_y.y" /* yacc.c:1646 */ +#line 1307 "parse_y.y" /* yacc.c:1646 */ { SetElementBoundingBox(yyData, yyElement, yyFont); } -#line 2471 "parse_y.c" /* yacc.c:1646 */ +#line 2470 "parse_y.c" /* yacc.c:1646 */ break; case 120: -#line 1318 "parse_y.y" /* yacc.c:1646 */ +#line 1317 "parse_y.y" /* yacc.c:1646 */ { yyElement = CreateNewElement(yyData, yyElement, yyFont, OldFlags((yyvsp[-10].integer)), (yyvsp[-9].string), (yyvsp[-8].string), (yyvsp[-7].string), OU ((yyvsp[-6].measure)), OU ((yyvsp[-5].measure)), IV ((yyvsp[-4].measure)), IV ((yyvsp[-3].measure)), OldFlags((yyvsp[-2].integer)), pcb_false); @@ -2480,19 +2479,19 @@ free ((yyvsp[-7].string)); pin_num = 1; } -#line 2484 "parse_y.c" /* yacc.c:1646 */ +#line 2483 "parse_y.c" /* yacc.c:1646 */ break; case 121: -#line 1327 "parse_y.y" /* yacc.c:1646 */ +#line 1326 "parse_y.y" /* yacc.c:1646 */ { SetElementBoundingBox(yyData, yyElement, yyFont); } -#line 2492 "parse_y.c" /* yacc.c:1646 */ +#line 2491 "parse_y.c" /* yacc.c:1646 */ break; case 122: -#line 1338 "parse_y.y" /* yacc.c:1646 */ +#line 1337 "parse_y.y" /* yacc.c:1646 */ { yyElement = CreateNewElement(yyData, yyElement, yyFont, OldFlags((yyvsp[-12].integer)), (yyvsp[-11].string), (yyvsp[-10].string), (yyvsp[-9].string), OU ((yyvsp[-8].measure)) + OU ((yyvsp[-6].measure)), OU ((yyvsp[-7].measure)) + OU ((yyvsp[-5].measure)), @@ -2503,19 +2502,19 @@ free ((yyvsp[-10].string)); free ((yyvsp[-9].string)); } -#line 2507 "parse_y.c" /* yacc.c:1646 */ +#line 2506 "parse_y.c" /* yacc.c:1646 */ break; case 123: -#line 1349 "parse_y.y" /* yacc.c:1646 */ +#line 1348 "parse_y.y" /* yacc.c:1646 */ { SetElementBoundingBox(yyData, yyElement, yyFont); } -#line 2515 "parse_y.c" /* yacc.c:1646 */ +#line 2514 "parse_y.c" /* yacc.c:1646 */ break; case 124: -#line 1360 "parse_y.y" /* yacc.c:1646 */ +#line 1359 "parse_y.y" /* yacc.c:1646 */ { yyElement = CreateNewElement(yyData, yyElement, yyFont, (yyvsp[-12].flagtype), (yyvsp[-11].string), (yyvsp[-10].string), (yyvsp[-9].string), NU ((yyvsp[-8].measure)) + NU ((yyvsp[-6].measure)), NU ((yyvsp[-7].measure)) + NU ((yyvsp[-5].measure)), @@ -2526,119 +2525,119 @@ free ((yyvsp[-10].string)); free ((yyvsp[-9].string)); } -#line 2530 "parse_y.c" /* yacc.c:1646 */ +#line 2529 "parse_y.c" /* yacc.c:1646 */ break; case 125: -#line 1371 "parse_y.y" /* yacc.c:1646 */ +#line 1370 "parse_y.y" /* yacc.c:1646 */ { SetElementBoundingBox(yyData, yyElement, yyFont); } -#line 2538 "parse_y.c" /* yacc.c:1646 */ +#line 2537 "parse_y.c" /* yacc.c:1646 */ break; case 133: -#line 1451 "parse_y.y" /* yacc.c:1646 */ +#line 1450 "parse_y.y" /* yacc.c:1646 */ { CreateNewLineInElement(yyElement, NU ((yyvsp[-5].measure)), NU ((yyvsp[-4].measure)), NU ((yyvsp[-3].measure)), NU ((yyvsp[-2].measure)), NU ((yyvsp[-1].measure))); } -#line 2546 "parse_y.c" /* yacc.c:1646 */ +#line 2545 "parse_y.c" /* yacc.c:1646 */ break; case 134: -#line 1456 "parse_y.y" /* yacc.c:1646 */ +#line 1455 "parse_y.y" /* yacc.c:1646 */ { CreateNewLineInElement(yyElement, OU ((yyvsp[-5].measure)), OU ((yyvsp[-4].measure)), OU ((yyvsp[-3].measure)), OU ((yyvsp[-2].measure)), OU ((yyvsp[-1].measure))); } -#line 2554 "parse_y.c" /* yacc.c:1646 */ +#line 2553 "parse_y.c" /* yacc.c:1646 */ break; case 135: -#line 1461 "parse_y.y" /* yacc.c:1646 */ +#line 1460 "parse_y.y" /* yacc.c:1646 */ { CreateNewArcInElement(yyElement, NU ((yyvsp[-7].measure)), NU ((yyvsp[-6].measure)), NU ((yyvsp[-5].measure)), NU ((yyvsp[-4].measure)), (yyvsp[-3].number), (yyvsp[-2].number), NU ((yyvsp[-1].measure))); } -#line 2562 "parse_y.c" /* yacc.c:1646 */ +#line 2561 "parse_y.c" /* yacc.c:1646 */ break; case 136: -#line 1466 "parse_y.y" /* yacc.c:1646 */ +#line 1465 "parse_y.y" /* yacc.c:1646 */ { CreateNewArcInElement(yyElement, OU ((yyvsp[-7].measure)), OU ((yyvsp[-6].measure)), OU ((yyvsp[-5].measure)), OU ((yyvsp[-4].measure)), (yyvsp[-3].number), (yyvsp[-2].number), OU ((yyvsp[-1].measure))); } -#line 2570 "parse_y.c" /* yacc.c:1646 */ +#line 2569 "parse_y.c" /* yacc.c:1646 */ break; case 137: -#line 1471 "parse_y.y" /* yacc.c:1646 */ +#line 1470 "parse_y.y" /* yacc.c:1646 */ { yyElement->MarkX = NU ((yyvsp[-2].measure)); yyElement->MarkY = NU ((yyvsp[-1].measure)); } -#line 2579 "parse_y.c" /* yacc.c:1646 */ +#line 2578 "parse_y.c" /* yacc.c:1646 */ break; case 138: -#line 1476 "parse_y.y" /* yacc.c:1646 */ +#line 1475 "parse_y.y" /* yacc.c:1646 */ { yyElement->MarkX = OU ((yyvsp[-2].measure)); yyElement->MarkY = OU ((yyvsp[-1].measure)); } -#line 2588 "parse_y.c" /* yacc.c:1646 */ +#line 2587 "parse_y.c" /* yacc.c:1646 */ break; case 139: -#line 1480 "parse_y.y" /* yacc.c:1646 */ +#line 1479 "parse_y.y" /* yacc.c:1646 */ { attr_list = & yyElement->Attributes; } -#line 2594 "parse_y.c" /* yacc.c:1646 */ +#line 2593 "parse_y.c" /* yacc.c:1646 */ break; case 147: -#line 1495 "parse_y.y" /* yacc.c:1646 */ +#line 1494 "parse_y.y" /* yacc.c:1646 */ { CreateNewLineInElement(yyElement, NU ((yyvsp[-5].measure)) + yyElement->MarkX, NU ((yyvsp[-4].measure)) + yyElement->MarkY, NU ((yyvsp[-3].measure)) + yyElement->MarkX, NU ((yyvsp[-2].measure)) + yyElement->MarkY, NU ((yyvsp[-1].measure))); } -#line 2604 "parse_y.c" /* yacc.c:1646 */ +#line 2603 "parse_y.c" /* yacc.c:1646 */ break; case 148: -#line 1501 "parse_y.y" /* yacc.c:1646 */ +#line 1500 "parse_y.y" /* yacc.c:1646 */ { CreateNewLineInElement(yyElement, OU ((yyvsp[-5].measure)) + yyElement->MarkX, OU ((yyvsp[-4].measure)) + yyElement->MarkY, OU ((yyvsp[-3].measure)) + yyElement->MarkX, OU ((yyvsp[-2].measure)) + yyElement->MarkY, OU ((yyvsp[-1].measure))); } -#line 2614 "parse_y.c" /* yacc.c:1646 */ +#line 2613 "parse_y.c" /* yacc.c:1646 */ break; case 149: -#line 1508 "parse_y.y" /* yacc.c:1646 */ +#line 1507 "parse_y.y" /* yacc.c:1646 */ { CreateNewArcInElement(yyElement, NU ((yyvsp[-7].measure)) + yyElement->MarkX, NU ((yyvsp[-6].measure)) + yyElement->MarkY, NU ((yyvsp[-5].measure)), NU ((yyvsp[-4].measure)), (yyvsp[-3].number), (yyvsp[-2].number), NU ((yyvsp[-1].measure))); } -#line 2623 "parse_y.c" /* yacc.c:1646 */ +#line 2622 "parse_y.c" /* yacc.c:1646 */ break; case 150: -#line 1513 "parse_y.y" /* yacc.c:1646 */ +#line 1512 "parse_y.y" /* yacc.c:1646 */ { CreateNewArcInElement(yyElement, OU ((yyvsp[-7].measure)) + yyElement->MarkX, OU ((yyvsp[-6].measure)) + yyElement->MarkY, OU ((yyvsp[-5].measure)), OU ((yyvsp[-4].measure)), (yyvsp[-3].number), (yyvsp[-2].number), OU ((yyvsp[-1].measure))); } -#line 2632 "parse_y.c" /* yacc.c:1646 */ +#line 2631 "parse_y.c" /* yacc.c:1646 */ break; case 151: -#line 1517 "parse_y.y" /* yacc.c:1646 */ +#line 1516 "parse_y.y" /* yacc.c:1646 */ { attr_list = & yyElement->Attributes; } -#line 2638 "parse_y.c" /* yacc.c:1646 */ +#line 2637 "parse_y.c" /* yacc.c:1646 */ break; case 153: -#line 1559 "parse_y.y" /* yacc.c:1646 */ +#line 1558 "parse_y.y" /* yacc.c:1646 */ { CreateNewPin(yyElement, NU ((yyvsp[-9].measure)) + yyElement->MarkX, NU ((yyvsp[-8].measure)) + yyElement->MarkY, NU ((yyvsp[-7].measure)), NU ((yyvsp[-6].measure)), NU ((yyvsp[-5].measure)), NU ((yyvsp[-4].measure)), (yyvsp[-3].string), @@ -2646,11 +2645,11 @@ free ((yyvsp[-3].string)); free ((yyvsp[-2].string)); } -#line 2650 "parse_y.c" /* yacc.c:1646 */ +#line 2649 "parse_y.c" /* yacc.c:1646 */ break; case 154: -#line 1571 "parse_y.y" /* yacc.c:1646 */ +#line 1570 "parse_y.y" /* yacc.c:1646 */ { CreateNewPin(yyElement, OU ((yyvsp[-9].measure)) + yyElement->MarkX, OU ((yyvsp[-8].measure)) + yyElement->MarkY, OU ((yyvsp[-7].measure)), OU ((yyvsp[-6].measure)), OU ((yyvsp[-5].measure)), OU ((yyvsp[-4].measure)), (yyvsp[-3].string), @@ -2658,11 +2657,11 @@ free ((yyvsp[-3].string)); free ((yyvsp[-2].string)); } -#line 2662 "parse_y.c" /* yacc.c:1646 */ +#line 2661 "parse_y.c" /* yacc.c:1646 */ break; case 155: -#line 1583 "parse_y.y" /* yacc.c:1646 */ +#line 1582 "parse_y.y" /* yacc.c:1646 */ { CreateNewPin(yyElement, OU ((yyvsp[-7].measure)), OU ((yyvsp[-6].measure)), OU ((yyvsp[-5].measure)), 2*GROUNDPLANEFRAME, OU ((yyvsp[-5].measure)) + 2*MASKFRAME, OU ((yyvsp[-4].measure)), (yyvsp[-3].string), (yyvsp[-2].string), OldFlags((yyvsp[-1].integer))); @@ -2669,11 +2668,11 @@ free ((yyvsp[-3].string)); free ((yyvsp[-2].string)); } -#line 2673 "parse_y.c" /* yacc.c:1646 */ +#line 2672 "parse_y.c" /* yacc.c:1646 */ break; case 156: -#line 1594 "parse_y.y" /* yacc.c:1646 */ +#line 1593 "parse_y.y" /* yacc.c:1646 */ { char p_number[8]; @@ -2683,11 +2682,11 @@ free ((yyvsp[-2].string)); } -#line 2687 "parse_y.c" /* yacc.c:1646 */ +#line 2686 "parse_y.c" /* yacc.c:1646 */ break; case 157: -#line 1610 "parse_y.y" /* yacc.c:1646 */ +#line 1609 "parse_y.y" /* yacc.c:1646 */ { Coord hole = OU ((yyvsp[-3].measure)) * DEFAULT_DRILLINGHOLE; char p_number[8]; @@ -2702,11 +2701,11 @@ OU ((yyvsp[-3].measure)) + 2*MASKFRAME, hole, (yyvsp[-2].string), p_number, OldFlags((yyvsp[-1].integer))); free ((yyvsp[-2].string)); } -#line 2706 "parse_y.c" /* yacc.c:1646 */ +#line 2705 "parse_y.c" /* yacc.c:1646 */ break; case 158: -#line 1664 "parse_y.y" /* yacc.c:1646 */ +#line 1663 "parse_y.y" /* yacc.c:1646 */ { CreateNewPad(yyElement, NU ((yyvsp[-10].measure)) + yyElement->MarkX, NU ((yyvsp[-9].measure)) + yyElement->MarkY, @@ -2716,11 +2715,11 @@ free ((yyvsp[-3].string)); free ((yyvsp[-2].string)); } -#line 2720 "parse_y.c" /* yacc.c:1646 */ +#line 2719 "parse_y.c" /* yacc.c:1646 */ break; case 159: -#line 1678 "parse_y.y" /* yacc.c:1646 */ +#line 1677 "parse_y.y" /* yacc.c:1646 */ { CreateNewPad(yyElement,OU ((yyvsp[-10].measure)) + yyElement->MarkX, OU ((yyvsp[-9].measure)) + yyElement->MarkY, OU ((yyvsp[-8].measure)) + yyElement->MarkX, @@ -2729,11 +2728,11 @@ free ((yyvsp[-3].string)); free ((yyvsp[-2].string)); } -#line 2733 "parse_y.c" /* yacc.c:1646 */ +#line 2732 "parse_y.c" /* yacc.c:1646 */ break; case 160: -#line 1691 "parse_y.y" /* yacc.c:1646 */ +#line 1690 "parse_y.y" /* yacc.c:1646 */ { CreateNewPad(yyElement,OU ((yyvsp[-8].measure)),OU ((yyvsp[-7].measure)),OU ((yyvsp[-6].measure)),OU ((yyvsp[-5].measure)),OU ((yyvsp[-4].measure)), 2*GROUNDPLANEFRAME, OU ((yyvsp[-4].measure)) + 2*MASKFRAME, (yyvsp[-3].string), (yyvsp[-2].string), OldFlags((yyvsp[-1].integer))); @@ -2740,11 +2739,11 @@ free ((yyvsp[-3].string)); free ((yyvsp[-2].string)); } -#line 2744 "parse_y.c" /* yacc.c:1646 */ +#line 2743 "parse_y.c" /* yacc.c:1646 */ break; case 161: -#line 1702 "parse_y.y" /* yacc.c:1646 */ +#line 1701 "parse_y.y" /* yacc.c:1646 */ { char p_number[8]; @@ -2753,23 +2752,23 @@ OU ((yyvsp[-3].measure)) + 2*MASKFRAME, (yyvsp[-2].string),p_number, OldFlags((yyvsp[-1].integer))); free ((yyvsp[-2].string)); } -#line 2757 "parse_y.c" /* yacc.c:1646 */ +#line 2756 "parse_y.c" /* yacc.c:1646 */ break; case 162: -#line 1712 "parse_y.y" /* yacc.c:1646 */ +#line 1711 "parse_y.y" /* yacc.c:1646 */ { (yyval.flagtype) = OldFlags((yyvsp[0].integer)); } -#line 2763 "parse_y.c" /* yacc.c:1646 */ +#line 2762 "parse_y.c" /* yacc.c:1646 */ break; case 163: -#line 1713 "parse_y.y" /* yacc.c:1646 */ +#line 1712 "parse_y.y" /* yacc.c:1646 */ { (yyval.flagtype) = string_to_flags ((yyvsp[0].string), yyerror); free((yyvsp[0].string)); } -#line 2769 "parse_y.c" /* yacc.c:1646 */ +#line 2768 "parse_y.c" /* yacc.c:1646 */ break; case 167: -#line 1743 "parse_y.y" /* yacc.c:1646 */ +#line 1742 "parse_y.y" /* yacc.c:1646 */ { if ((yyvsp[-3].integer) <= 0 || (yyvsp[-3].integer) > MAX_FONTPOSITION) { @@ -2785,11 +2784,11 @@ Symbol->Valid = pcb_true; Symbol->Delta = NU ((yyvsp[-2].measure)); } -#line 2789 "parse_y.c" /* yacc.c:1646 */ +#line 2788 "parse_y.c" /* yacc.c:1646 */ break; case 168: -#line 1759 "parse_y.y" /* yacc.c:1646 */ +#line 1758 "parse_y.y" /* yacc.c:1646 */ { if ((yyvsp[-3].integer) <= 0 || (yyvsp[-3].integer) > MAX_FONTPOSITION) { @@ -2805,158 +2804,158 @@ Symbol->Valid = pcb_true; Symbol->Delta = OU ((yyvsp[-2].measure)); } -#line 2809 "parse_y.c" /* yacc.c:1646 */ +#line 2808 "parse_y.c" /* yacc.c:1646 */ break; case 174: -#line 1806 "parse_y.y" /* yacc.c:1646 */ +#line 1805 "parse_y.y" /* yacc.c:1646 */ { CreateNewLineInSymbol(Symbol, OU ((yyvsp[-5].measure)), OU ((yyvsp[-4].measure)), OU ((yyvsp[-3].measure)), OU ((yyvsp[-2].measure)), OU ((yyvsp[-1].measure))); } -#line 2817 "parse_y.c" /* yacc.c:1646 */ +#line 2816 "parse_y.c" /* yacc.c:1646 */ break; case 175: -#line 1813 "parse_y.y" /* yacc.c:1646 */ +#line 1812 "parse_y.y" /* yacc.c:1646 */ { CreateNewLineInSymbol(Symbol, NU ((yyvsp[-5].measure)), NU ((yyvsp[-4].measure)), NU ((yyvsp[-3].measure)), NU ((yyvsp[-2].measure)), NU ((yyvsp[-1].measure))); } -#line 2825 "parse_y.c" /* yacc.c:1646 */ +#line 2824 "parse_y.c" /* yacc.c:1646 */ break; case 183: -#line 1868 "parse_y.y" /* yacc.c:1646 */ +#line 1867 "parse_y.y" /* yacc.c:1646 */ { Menu = CreateNewNet((LibraryTypePtr)&yyPCB->NetlistLib, (yyvsp[-3].string), (yyvsp[-2].string)); free ((yyvsp[-3].string)); free ((yyvsp[-2].string)); } -#line 2835 "parse_y.c" /* yacc.c:1646 */ +#line 2834 "parse_y.c" /* yacc.c:1646 */ break; case 189: -#line 1903 "parse_y.y" /* yacc.c:1646 */ +#line 1902 "parse_y.y" /* yacc.c:1646 */ { CreateNewConnection(Menu, (yyvsp[-1].string)); free ((yyvsp[-1].string)); } -#line 2844 "parse_y.c" /* yacc.c:1646 */ +#line 2843 "parse_y.c" /* yacc.c:1646 */ break; case 197: -#line 1950 "parse_y.y" /* yacc.c:1646 */ +#line 1949 "parse_y.y" /* yacc.c:1646 */ { rats_patch_append(yyPCB, RATP_ADD_CONN, (yyvsp[-2].string), (yyvsp[-1].string), NULL); free((yyvsp[-2].string)); free((yyvsp[-1].string)); } -#line 2850 "parse_y.c" /* yacc.c:1646 */ +#line 2849 "parse_y.c" /* yacc.c:1646 */ break; case 198: -#line 1951 "parse_y.y" /* yacc.c:1646 */ +#line 1950 "parse_y.y" /* yacc.c:1646 */ { rats_patch_append(yyPCB, RATP_DEL_CONN, (yyvsp[-2].string), (yyvsp[-1].string), NULL); free((yyvsp[-2].string)); free((yyvsp[-1].string)); } -#line 2856 "parse_y.c" /* yacc.c:1646 */ +#line 2855 "parse_y.c" /* yacc.c:1646 */ break; case 199: -#line 1952 "parse_y.y" /* yacc.c:1646 */ +#line 1951 "parse_y.y" /* yacc.c:1646 */ { rats_patch_append(yyPCB, RATP_CHANGE_ATTRIB, (yyvsp[-3].string), (yyvsp[-2].string), (yyvsp[-1].string)); free((yyvsp[-3].string)); free((yyvsp[-2].string)); free((yyvsp[-1].string)); } -#line 2862 "parse_y.c" /* yacc.c:1646 */ +#line 2861 "parse_y.c" /* yacc.c:1646 */ break; case 200: -#line 1980 "parse_y.y" /* yacc.c:1646 */ +#line 1979 "parse_y.y" /* yacc.c:1646 */ { CreateNewAttribute (attr_list, (yyvsp[-2].string), (yyvsp[-1].string) ? (yyvsp[-1].string) : (char *)""); free ((yyvsp[-2].string)); free ((yyvsp[-1].string)); } -#line 2872 "parse_y.c" /* yacc.c:1646 */ +#line 2871 "parse_y.c" /* yacc.c:1646 */ break; case 201: -#line 1987 "parse_y.y" /* yacc.c:1646 */ +#line 1986 "parse_y.y" /* yacc.c:1646 */ { (yyval.string) = (yyvsp[0].string); } -#line 2878 "parse_y.c" /* yacc.c:1646 */ +#line 2877 "parse_y.c" /* yacc.c:1646 */ break; case 202: -#line 1988 "parse_y.y" /* yacc.c:1646 */ +#line 1987 "parse_y.y" /* yacc.c:1646 */ { (yyval.string) = 0; } -#line 2884 "parse_y.c" /* yacc.c:1646 */ +#line 2883 "parse_y.c" /* yacc.c:1646 */ break; case 203: -#line 1992 "parse_y.y" /* yacc.c:1646 */ +#line 1991 "parse_y.y" /* yacc.c:1646 */ { (yyval.number) = (yyvsp[0].number); } -#line 2890 "parse_y.c" /* yacc.c:1646 */ +#line 2889 "parse_y.c" /* yacc.c:1646 */ break; case 204: -#line 1993 "parse_y.y" /* yacc.c:1646 */ +#line 1992 "parse_y.y" /* yacc.c:1646 */ { (yyval.number) = (yyvsp[0].integer); } -#line 2896 "parse_y.c" /* yacc.c:1646 */ +#line 2895 "parse_y.c" /* yacc.c:1646 */ break; case 205: -#line 1998 "parse_y.y" /* yacc.c:1646 */ +#line 1997 "parse_y.y" /* yacc.c:1646 */ { do_measure(&(yyval.measure), (yyvsp[0].number), PCB_MIL_TO_COORD ((yyvsp[0].number)) / 100.0, 0); } -#line 2902 "parse_y.c" /* yacc.c:1646 */ +#line 2901 "parse_y.c" /* yacc.c:1646 */ break; case 206: -#line 1999 "parse_y.y" /* yacc.c:1646 */ +#line 1998 "parse_y.y" /* yacc.c:1646 */ { M ((yyval.measure), (yyvsp[-1].number), PCB_MIL_TO_COORD ((yyvsp[-1].number)) / 100000.0); } -#line 2908 "parse_y.c" /* yacc.c:1646 */ +#line 2907 "parse_y.c" /* yacc.c:1646 */ break; case 207: -#line 2000 "parse_y.y" /* yacc.c:1646 */ +#line 1999 "parse_y.y" /* yacc.c:1646 */ { M ((yyval.measure), (yyvsp[-1].number), PCB_MIL_TO_COORD ((yyvsp[-1].number)) / 100.0); } -#line 2914 "parse_y.c" /* yacc.c:1646 */ +#line 2913 "parse_y.c" /* yacc.c:1646 */ break; case 208: -#line 2001 "parse_y.y" /* yacc.c:1646 */ +#line 2000 "parse_y.y" /* yacc.c:1646 */ { M ((yyval.measure), (yyvsp[-1].number), PCB_MIL_TO_COORD ((yyvsp[-1].number))); } -#line 2920 "parse_y.c" /* yacc.c:1646 */ +#line 2919 "parse_y.c" /* yacc.c:1646 */ break; case 209: -#line 2002 "parse_y.y" /* yacc.c:1646 */ +#line 2001 "parse_y.y" /* yacc.c:1646 */ { M ((yyval.measure), (yyvsp[-1].number), PCB_INCH_TO_COORD ((yyvsp[-1].number))); } -#line 2926 "parse_y.c" /* yacc.c:1646 */ +#line 2925 "parse_y.c" /* yacc.c:1646 */ break; case 210: -#line 2003 "parse_y.y" /* yacc.c:1646 */ +#line 2002 "parse_y.y" /* yacc.c:1646 */ { M ((yyval.measure), (yyvsp[-1].number), PCB_MM_TO_COORD ((yyvsp[-1].number)) / 1000000.0); } -#line 2932 "parse_y.c" /* yacc.c:1646 */ +#line 2931 "parse_y.c" /* yacc.c:1646 */ break; case 211: -#line 2004 "parse_y.y" /* yacc.c:1646 */ +#line 2003 "parse_y.y" /* yacc.c:1646 */ { M ((yyval.measure), (yyvsp[-1].number), PCB_MM_TO_COORD ((yyvsp[-1].number)) / 1000.0); } -#line 2938 "parse_y.c" /* yacc.c:1646 */ +#line 2937 "parse_y.c" /* yacc.c:1646 */ break; case 212: -#line 2005 "parse_y.y" /* yacc.c:1646 */ +#line 2004 "parse_y.y" /* yacc.c:1646 */ { M ((yyval.measure), (yyvsp[-1].number), PCB_MM_TO_COORD ((yyvsp[-1].number))); } -#line 2944 "parse_y.c" /* yacc.c:1646 */ +#line 2943 "parse_y.c" /* yacc.c:1646 */ break; case 213: -#line 2006 "parse_y.y" /* yacc.c:1646 */ +#line 2005 "parse_y.y" /* yacc.c:1646 */ { M ((yyval.measure), (yyvsp[-1].number), PCB_MM_TO_COORD ((yyvsp[-1].number)) * 1000.0); } -#line 2950 "parse_y.c" /* yacc.c:1646 */ +#line 2949 "parse_y.c" /* yacc.c:1646 */ break; case 214: -#line 2007 "parse_y.y" /* yacc.c:1646 */ +#line 2006 "parse_y.y" /* yacc.c:1646 */ { M ((yyval.measure), (yyvsp[-1].number), PCB_MM_TO_COORD ((yyvsp[-1].number)) * 1000000.0); } -#line 2956 "parse_y.c" /* yacc.c:1646 */ +#line 2955 "parse_y.c" /* yacc.c:1646 */ break; -#line 2960 "parse_y.c" /* yacc.c:1646 */ +#line 2959 "parse_y.c" /* yacc.c:1646 */ default: break; } /* User semantic actions sometimes alter yychar, and that requires @@ -3184,7 +3183,7 @@ #endif return yyresult; } -#line 2010 "parse_y.y" /* yacc.c:1906 */ +#line 2009 "parse_y.y" /* yacc.c:1906 */ /* --------------------------------------------------------------------------- Index: trunk/src_plugins/io_pcb/parse_y.h =================================================================== --- trunk/src_plugins/io_pcb/parse_y.h (revision 4599) +++ trunk/src_plugins/io_pcb/parse_y.h (revision 4600) @@ -101,7 +101,7 @@ union YYSTYPE { -#line 113 "parse_y.y" /* yacc.c:1909 */ +#line 112 "parse_y.y" /* yacc.c:1909 */ int integer; double number; Index: trunk/src_plugins/io_pcb/parse_y.y =================================================================== --- trunk/src_plugins/io_pcb/parse_y.y (revision 4599) +++ trunk/src_plugins/io_pcb/parse_y.y (revision 4600) @@ -43,7 +43,6 @@ #include "board.h" #include "conf_core.h" #include "layer.h" -#include "create.h" #include "data.h" #include "error.h" #include "file.h" Index: trunk/src_plugins/jostle/jostle.c =================================================================== --- trunk/src_plugins/jostle/jostle.c (revision 4599) +++ trunk/src_plugins/jostle/jostle.c (revision 4600) @@ -25,7 +25,6 @@ #include "data.h" #include "hid.h" #include "misc.h" -#include "create.h" #include "rtree.h" #include "undo.h" #include "rats.h" Index: trunk/src_plugins/mincut/rats_mincut.c =================================================================== --- trunk/src_plugins/mincut/rats_mincut.c (revision 4599) +++ trunk/src_plugins/mincut/rats_mincut.c (revision 4600) @@ -30,7 +30,6 @@ #include #include "const.h" -#include "create.h" #include "data.h" #include "draw.h" #include "error.h" Index: trunk/src_plugins/polycombine/polycombine.c =================================================================== --- trunk/src_plugins/polycombine/polycombine.c (revision 4599) +++ trunk/src_plugins/polycombine/polycombine.c (revision 4600) @@ -23,7 +23,6 @@ #include "board.h" #include "data.h" #include "macro.h" -#include "create.h" #include "remove.h" #include "hid.h" #include "error.h" Index: trunk/src_plugins/polystitch/polystitch.c =================================================================== --- trunk/src_plugins/polystitch/polystitch.c (revision 4599) +++ trunk/src_plugins/polystitch/polystitch.c (revision 4600) @@ -27,7 +27,6 @@ #include "board.h" #include "data.h" #include "macro.h" -#include "create.h" #include "remove.h" #include "hid.h" #include "error.h" Index: trunk/src_plugins/puller/puller.c =================================================================== --- trunk/src_plugins/puller/puller.c (revision 4599) +++ trunk/src_plugins/puller/puller.c (revision 4600) @@ -53,7 +53,6 @@ #include #include -#include "create.h" #include "board.h" #include "data.h" #include "draw.h" Index: trunk/src_plugins/renumber/renumberblock.c =================================================================== --- trunk/src_plugins/renumber/renumberblock.c (revision 4599) +++ trunk/src_plugins/renumber/renumberblock.c (revision 4600) @@ -29,7 +29,6 @@ #include "data.h" #include "hid.h" #include "misc.h" -#include "create.h" #include "rtree.h" #include "undo.h" #include "error.h" Index: trunk/src_plugins/smartdisperse/smartdisperse.c =================================================================== --- trunk/src_plugins/smartdisperse/smartdisperse.c (revision 4599) +++ trunk/src_plugins/smartdisperse/smartdisperse.c (revision 4600) @@ -30,7 +30,6 @@ #include "data.h" #include "hid.h" #include "misc.h" -#include "create.h" #include "rtree.h" #include "undo.h" #include "rats.h" Index: trunk/src_plugins/teardrops/teardrops.c =================================================================== --- trunk/src_plugins/teardrops/teardrops.c (revision 4599) +++ trunk/src_plugins/teardrops/teardrops.c (revision 4600) @@ -22,7 +22,6 @@ #include "data.h" #include "hid.h" #include "misc.h" -#include "create.h" #include "rtree.h" #include "undo.h" #include "plugins.h" Index: trunk/src_plugins/toporouter/toporouter.h =================================================================== --- trunk/src_plugins/toporouter/toporouter.h (revision 4599) +++ trunk/src_plugins/toporouter/toporouter.h (revision 4600) @@ -33,7 +33,6 @@ #include "macro.h" #include "../autoroute/autoroute.h" #include "box.h" -#include "create.h" #include "draw.h" #include "error.h" #include "find.h"