Index: Makefile =================================================================== --- Makefile (revision 25581) +++ Makefile (revision 25582) @@ -8,7 +8,7 @@ -main: main.o gui_act.o draw.o crosshair.o $(TRUNK)/src/hidlib.a +main: main.o gui_act.o draw.o crosshair.o rtree.o $(TRUNK)/src/hidlib.a $(CC) -o main $^ $(LDFLAGS) $(TRUNK)/src/hidlib.a: FORCE Index: rtree.c =================================================================== --- rtree.c (nonexistent) +++ rtree.c (revision 25582) @@ -0,0 +1,38 @@ +/* + * COPYRIGHT + * + * pcb-rnd hidlib example + * Copyright (C) 2019 Tibor 'Igor2' Palinkas + * + * 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") + */ + +#include "config.h" + +#include +#include + +#include "rtree.h" + +#include +#include +#include +#include + Index: rtree.h =================================================================== --- rtree.h (nonexistent) +++ rtree.h (revision 25582) @@ -0,0 +1,44 @@ +/* + * COPYRIGHT + * + * pcb-rnd hidlib example + * Copyright (C) 2019 Tibor 'Igor2' Palinkas + * + * 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") + */ + +#ifndef HLE_RTREE_H +#define HLE_RTREE_H + +#include "global_typedefs.h" + +typedef long int hle_rtree_cardinal_t; +typedef pcb_coord_t hle_rtree_coord_t; + +/* Instantiate an rtree */ +#define RTR(n) hle_rtree_ ## n +#define RTRU(n) hle_RTREE_ ## n +#define hle_rtree_privfunc static +#define hle_rtree_size 6 +#define hle_rtree_stack_max 1024 + +#include + +#endif /* HLE_RTREE_H */