X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Frscommon.h;h=bdcc15759705bb5667d26583bdbd63315536d642;hb=4ed298fb2ac975783ad1a350659f5ae22825e24e;hp=5cbf5b77b0cf84cdce30526713169ecf2cca94a7;hpb=d0f65e91f071ebb0fbc6791ee168e2be5ba8e5ae;p=ypp-sc-tools.main.git diff --git a/yarrg/rscommon.h b/yarrg/rscommon.h index 5cbf5b7..bdcc157 100644 --- a/yarrg/rscommon.h +++ b/yarrg/rscommon.h @@ -21,10 +21,15 @@ #define COUNTER_LIST \ CTR(commodities_loaded) \ CTR(trades_loaded) \ + CTR(islands_arbitrage) \ + CTR(ipairs_relevant) \ CTR(quantities_loaded) \ CTR(routes_considered) \ - CTR(routes_eliminated) \ + CTR(routes_quickelim) \ + CTR(routes_stratelim) \ CTR(routes_valued) \ + CTR(newbests_strat_absolute) \ + CTR(newbests_strat_perleague) \ CTR(subroute_tails_valued) \ CTR(subroutes_valued) \ CTR(subroutes_nonempty) @@ -137,9 +142,26 @@ extern int *islandid2arch; }) +typedef struct { + double value; + PotentialResult *pr; +} HighScoreEntry; + +extern int nhighscores_absolute, nhighscores_perleague; +extern HighScoreEntry *highscores_absolute; +extern HighScoreEntry *highscores_perleague; + + #define ONDEMAND(pointer_lvalue, calloc_size_count) \ ((pointer_lvalue) ? : \ ((pointer_lvalue) = mcalloc(sizeof(*(pointer_lvalue)) * calloc_size_count))) +static inline int isle2arch(int isle) { + int arch= islandid2arch[isle]; + assert(arch>=0); + return arch; +} + + #endif /*RSCOMMON_H*/