Index: trunk/scconfig/Rev.h =================================================================== --- trunk/scconfig/Rev.h (revision 9184) +++ trunk/scconfig/Rev.h (revision 9185) @@ -1 +1 @@ -static const int myrev = 9184; +static const int myrev = 9185; Index: trunk/scconfig/Rev.tab =================================================================== --- trunk/scconfig/Rev.tab (revision 9184) +++ trunk/scconfig/Rev.tab (revision 9185) @@ -1,4 +1,4 @@ -9184 configure new plugin: funcmap +9185 configure new plugin: funcmap 9079 configure rubber band wire move 9038 configure move out tEDAx parse/write into a reusable lib plugin 8973 configure new source file for sheet utils Index: trunk/scconfig/plugins.h =================================================================== --- trunk/scconfig/plugins.h (revision 9184) +++ trunk/scconfig/plugins.h (revision 9185) @@ -41,6 +41,7 @@ plugin_def("export_spice", "export SPICE netlist", sbuildin, 1) plugin_def("export_svg", "export sheets to svg", sbuildin, 1) plugin_def("export_tedax", "export tEDAx netlist", sbuildin, 1) +plugin_def("lib_anymap", "devmap, funcmap common code", sbuildin, 1) plugin_def("lib_netlist_exp", "netlist export helper", sbuildin, 1) plugin_def("lib_target", "target plugin helper", sbuildin, 1) Index: trunk/src/plugins/lib_anymap/Makefile =================================================================== --- trunk/src/plugins/lib_anymap/Makefile (nonexistent) +++ trunk/src/plugins/lib_anymap/Makefile (revision 9185) @@ -0,0 +1,2 @@ +all: + cd ../../sch-rnd && make mod_lib_anymap Index: trunk/src/plugins/lib_anymap/Plug.tmpasm =================================================================== --- trunk/src/plugins/lib_anymap/Plug.tmpasm (nonexistent) +++ trunk/src/plugins/lib_anymap/Plug.tmpasm (revision 9185) @@ -0,0 +1,10 @@ +put /local/rnd/mod {lib_anymap} +put /local/rnd/mod/OBJS [@ + $(PLUGDIR)/lib_anymap/lib_anymap.o +@] + +switch /local/module/lib_anymap/controls + case {buildin} include /local/csch/tmpasm/buildin; end; + case {plugin} include /local/csch/tmpasm/plugin; end; + case {disable} include /local/csch/tmpasm/disable; end; +end Index: trunk/src/plugins/lib_anymap/lib_anymap.c =================================================================== --- trunk/src/plugins/lib_anymap/lib_anymap.c (nonexistent) +++ trunk/src/plugins/lib_anymap/lib_anymap.c (revision 9185) @@ -0,0 +1,52 @@ +/* + * COPYRIGHT + * + * cschem - modular/flexible schematics editor - netlist export helpers + * Copyright (C) 2023 Tibor 'Igor2' Palinkas + * + * (Supported by NLnet NGI0 Entrust in 2023) + * + * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Contact: + * Project page: http://repo.hu/projects/sch-rnd + * contact lead developer: http://www.repo.hu/projects/sch-rnd/contact.html + * mailing list: http://www.repo.hu/projects/sch-rnd/contact.html + */ + +/* Maintain a cache of parsed comp/net/conn objects and compile abstract + model from them */ + +#include + +#include +#include + + +/*** plugin ***/ + +int pplg_check_ver_lib_anymap(int ver_needed) { return 0; } + +void pplg_uninit_lib_anymap(void) +{ +} + +int pplg_init_lib_anymap(void) +{ + RND_API_CHK_VER; + + return 0; +} + Index: trunk/src/plugins/lib_anymap/lib_anymap.h =================================================================== --- trunk/src/plugins/lib_anymap/lib_anymap.h (nonexistent) +++ trunk/src/plugins/lib_anymap/lib_anymap.h (revision 9185) @@ -0,0 +1 @@ + Index: trunk/src/plugins/lib_anymap/lib_anymap.pup =================================================================== --- trunk/src/plugins/lib_anymap/lib_anymap.pup (nonexistent) +++ trunk/src/plugins/lib_anymap/lib_anymap.pup (revision 9185) @@ -0,0 +1,7 @@ +$class export +$short devmap, funcmap common code +$long Common code usable for map-like engine plugins +$state works +$package (core) +default buildin +autoload 1 Index: trunk/src/plugins/plugins_ALL.tmpasm =================================================================== --- trunk/src/plugins/plugins_ALL.tmpasm (revision 9184) +++ trunk/src/plugins/plugins_ALL.tmpasm (revision 9185) @@ -21,6 +21,7 @@ include {../src/plugins/io_ngrp_tedax/Plug.tmpasm} include {../src/plugins/io_tinycad/Plug.tmpasm} include {../src/plugins/lib_alien/Plug.tmpasm} +include {../src/plugins/lib_anymap/Plug.tmpasm} include {../src/plugins/lib_netlist_exp/Plug.tmpasm} include {../src/plugins/lib_ngrp/Plug.tmpasm} include {../src/plugins/lib_plot/Plug.tmpasm} Index: trunk/src/sch-rnd/Makefile.dep =================================================================== --- trunk/src/sch-rnd/Makefile.dep (revision 9184) +++ trunk/src/sch-rnd/Makefile.dep (revision 9185) @@ -452,6 +452,8 @@ ../plugins/query/query_access.h ../plugins/query/query.h \ ../plugins/query/query_exec.h ../plugins/lib_alien/read_helper.h \ ../plugins/lib_alien/read_postproc.c +../plugins/lib_anymap/lib_anymap.o: ../plugins/lib_anymap/lib_anymap.c \ + ../libcschem/config.h ../plugins/lib_netlist_exp/lib_netlist_exp.o: \ ../plugins/lib_netlist_exp/lib_netlist_exp.c ../libcschem/config.h \ ../plugins/lib_netlist_exp/lib_netlist_exp.h ../libcschem/abstract.h \