gEDA-dev: [pcb] patch: export some compile-time options (for
external HIDs)
Igor2
igor2 at inno.bme.hu
Tue Oct 10 00:00:44 EDT 2006
Hi,
Here's the updated version. Last time I forgot to reply on the question
why did I need these vars. My external HID has data (the actual scripts),
which is stored in pcb-gpmi/, near the .so, in the plugins dir. However
there are more then one plugins dir and PCB does a search which I have to
reproduce in my HID.
Regards,
Igor2
-------------- next part --------------
Index: data.c
===================================================================
RCS file: /cvsroot/pcb/pcb/src/data.c,v
retrieving revision 1.14
diff -u -r1.14 data.c
--- data.c 2 Aug 2006 15:55:17 -0000 1.14
+++ data.c 10 Oct 2006 03:54:51 -0000
@@ -93,3 +93,9 @@
{NULL, NULL}
};
#endif
+
+/* Make some compile-time choices available runtime */
+char *exec_prefix_dir = EXECPREFIXDIR;
+char *host_type_name = HOST;
+
+
Index: data.h
===================================================================
RCS file: /cvsroot/pcb/pcb/src/data.h,v
retrieving revision 1.10
diff -u -r1.10 data.h
--- data.h 10 Jun 2006 03:07:38 -0000 1.10
+++ data.h 10 Oct 2006 03:54:51 -0000
@@ -84,3 +84,7 @@
extern FlagType no_flags;
#endif
+
+extern char *exec_prefix_dir;
+extern char *host_type_name;
+
More information about the geda-dev
mailing list