chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.web-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
routesearch: rework some things, bugfixes
[ypp-sc-tools.web-live.git]
/
yarrg
/
rscommon.h
diff --git
a/yarrg/rscommon.h
b/yarrg/rscommon.h
index 84fad6fdb4e788d3cb2a3962734de063a71a4619..66e36d905e7b8431acba4bce9b3f50075dd17bcb 100644
(file)
--- a/
yarrg/rscommon.h
+++ b/
yarrg/rscommon.h
@@
-7,6
+7,7
@@
DF(sql) \
DF(sql2) \
DF(value) \
DF(sql) \
DF(sql2) \
DF(value) \
+ DF(value2) \
DF(search) \
DF(filter) \
DF(check) \
DF(search) \
DF(filter) \
DF(check) \
@@
-120,12
+121,16
@@
void setup_value(void);
typedef struct {
double value[AP];
typedef struct {
double value[AP];
- int ports[AP][MAX_ROUTELEN];
-} PotentialResult;
+ int ports[MAX_ROUTELEN];
+} OnePotentialResult;
+
+typedef struct {
+ OnePotentialResult prs[AP];
+} Bucket;
void setup_search(void);
void search(int start_isle, int final_isle /* -1 means any */,
void setup_search(void);
void search(int start_isle, int final_isle /* -1 means any */,
-
PotentialResul
t ****buckets_base_io[GRANUS]
+
Bucke
t ****buckets_base_io[GRANUS]
/* bucket_base[granui][finalthing][midthing]-> */);
extern double max_mass, max_volu, max_capi;
/* bucket_base[granui][finalthing][midthing]-> */);
extern double max_mass, max_volu, max_capi;
@@
-162,7
+167,7
@@
extern FILE *output;
typedef struct {
double value;
typedef struct {
double value;
-
PotentialResult *pr
;
+
Bucket *bucket
;
} HighScoreEntry;
extern int granus;
} HighScoreEntry;
extern int granus;