along with this program. If not, see <http://www.gnu.org/licenses/>.
** Started on Thu Jul 17 11:03:27 2008 Johnny Q. Hacker
-** Last update Thu Oct 8 19:13:57 2009 Johnny Q. Hacker
+** Last update Thu Oct 15 22:28:18 2009 Johnny Q. Hacker
*/
-#include <gtk/gtk.h>
-#include <graphwidget.h>
-#include <matdb-dotcode.h>
#include <stdlib.h>
#include <strings.h>
+#include <gtk/gtk.h>
+#include "config.h"
+#include "matdb-dotcode.h"
+#include "graphwidget.h"
#define DEBUG_SHOW_ONLY_BOWED
g_hash_table_foreach(propmap->mdb->materials, &inner_link_materials, propmap);
}
+
+#define xstr(s) str(s)
+#define str(s) #s
+
+#ifndef MATDBFILE
+#define MATDBFILE matdb.txt
+#endif
+
int main(int argc, char *argv[])
{
GtkWidget *window;
GtkWidget *graph;
- GString *file = g_string_new("matdb.txt");
+ GString *file = g_string_new(xstr(MATDBFILE));
int err=0;
struct matdb *mdb = read_matdb_dotcode(file, &err);
//fprintf(stderr, "read_matdb_dotcode(%s, %d)=%x", file->str, err,