Index: act_draw.c =================================================================== --- act_draw.c (revision 25848) +++ act_draw.c (revision 25849) @@ -2,7 +2,7 @@ * COPYRIGHT * * pcb-rnd, interactive printed circuit board design - * Copyright (C) 2018 Tibor 'Igor2' Palinkas + * Copyright (C) 2018,2019 Tibor 'Igor2' Palinkas * * This module, dialogs, was written and is Copyright (C) 2017 by Tibor Palinkas * this module is also subject to the GNU GPL as described below @@ -56,6 +56,8 @@ ao++; \ } +#include "act_pstk_proto.c" + static const char pcb_acts_LineNew[] = "LineNew([noundo,] data, layer, X1, Y1, X2, Y2, Thickness, Clearance, Flags)"; static const char pcb_acth_LineNew[] = "Create a pcb line segment on a layer. For now data must be \"pcb\". Returns the ID of the new object or 0 on error."; static fgw_error_t pcb_act_LineNew(fgw_arg_t *res, int argc, fgw_arg_t *argv) Index: act_pstk_proto.c =================================================================== --- act_pstk_proto.c (nonexistent) +++ act_pstk_proto.c (revision 25849) @@ -0,0 +1,42 @@ +/* + * COPYRIGHT + * + * pcb-rnd, interactive printed circuit board design + * Copyright (C) 2019 Tibor 'Igor2' Palinkas + * + * This module, dialogs, was written and is Copyright (C) 2017 by Tibor Palinkas + * this module is also subject to the GNU GPL as described below + * + * 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/pcb-rnd + * lead developer: http://repo.hu/projects/pcb-rnd/contact.html + * mailing list: pcb-rnd (at) list.repo.hu (send "subscribe") + */ + +/* included from act_draw.c */ + +static const char pcb_acts_PstkProtoTmp[] = + "PstkProto([noundo,] new)\n" + "PstkProto([noundo,] dup, data, proto_id)\n" + "PstkProto([noundo,] insert, data, proto)\n" + "PstkProto([noundo,] insert_dup, data, proto)\n" + "PstkProto([noundo,] free, proto)"; +static const char pcb_acth_PstkProtoTmp[] = "Allocate, insert or free a temporary padstack prototype"; +static fgw_error_t pcb_act_PstkProtoTmp(fgw_arg_t *res, int argc, fgw_arg_t *argv) +{ + return -1; +}