chiark / gitweb /
WIP routesearch; searcher
[ypp-sc-tools.db-live.git] / yarrg / rscommon.h
index d068fa02ba25a040eae556ebb3b278519f67a76e..1e710dc0075082cfc821d997f5f86c01bc85144f 100644 (file)
@@ -8,7 +8,9 @@
    DF(sql2)                                    \
    DF(value)                                   \
    DF(lp)
+
 #define debug stdout
+#define DEBUG_DEV "/dev/stdout"
 
 #include "common.h"
 
@@ -43,14 +45,19 @@ void sql_bind(sqlite3_stmt *ss, int index, int value,
 
 extern sqlite3 *db;
 
-void setup(void);
+void setup_sql(void);
 double value_route(int nislands, const int *islands);
 void setup_value(void);
-void setup_commods(void);
+void setup_search(void);
+void search(int start_isle);
 
 extern double max_mass, max_volu, max_capi;
 extern double distance_loss_factor_per_league;
+extern int max_dist;
 
 #define LOSS_FACTOR_PER_DELAY_SLOT (1-1e-8)
 
+extern int islandtablesz;
+
+
 #endif /*RSCOMMON_H*/