Commit ba269c1d authored by Vivien Kraus's avatar Vivien Kraus
Browse files

All these functions may be defined but not used

parent 8a8bc0dd
......@@ -730,14 +730,14 @@ features_arff_data (const TarotGame * game, const TarotGameEvent * added,
return ret;
}
static void
static inline void
features_variant (const TarotGame * game, size_t *n_players, int *with_call)
{
*n_players = game_n_players (game);
*with_call = game_with_call (game);
}
static void
static inline void
features_position (const TarotGame * game, size_t *i_trick, size_t *position)
{
TarotPlayer myself, leader;
......@@ -765,7 +765,7 @@ features_position (const TarotGame * game, size_t *i_trick, size_t *position)
}
}
static void
static inline void
features_partner_known (const TarotGame * game, int *known)
{
TarotPlayer partner;
......@@ -777,7 +777,7 @@ features_partner_known (const TarotGame * game, int *known)
}
}
static void
static inline void
features_bid_minimum (const TarotGame * game, TarotBid * minimum)
{
TarotPlayer taker;
......@@ -801,7 +801,7 @@ features_bid_minimum (const TarotGame * game, TarotBid * minimum)
}
}
static size_t
static inline size_t
features_get_my_cards (const TarotGame * game, size_t max, TarotCard * cards)
{
TarotPlayer myself;
......@@ -836,7 +836,7 @@ features_get_my_cards (const TarotGame * game, size_t max, TarotCard * cards)
return 0;
}
static void
static inline void
features_count_faces (const TarotGame * game,
size_t *n_kings,
size_t *n_marriages,
......@@ -893,7 +893,7 @@ features_count_faces (const TarotGame * game,
}
}
static void
static inline void
features_count_minor (const TarotGame * game,
size_t *n_shortest,
size_t *n_second_shortest,
......@@ -950,7 +950,7 @@ features_count_minor (const TarotGame * game,
*n_longest = n_by_suit[3];
}
static void
static inline void
features_count_oudlers (const TarotGame * game,
int *has_petit, int *has_excuse, int *has_twentyone)
{
......@@ -977,7 +977,7 @@ features_count_oudlers (const TarotGame * game,
}
}
static void
static inline void
features_count_trumps (const TarotGame * game,
size_t *n_trumps,
TarotNumber * max_trump,
......@@ -1025,7 +1025,7 @@ features_count_trumps (const TarotGame * game,
}
}
static void
static inline void
strategy_bid (const TarotGame * game,
const TarotGameEvent * event, TarotBid * bid)
{
......@@ -1036,7 +1036,7 @@ strategy_bid (const TarotGame * game,
}
}
static void
static inline void
strategy_outbid (const TarotGame * game,
const TarotGameEvent * event, int *outbid)
{
......@@ -1051,7 +1051,7 @@ strategy_outbid (const TarotGame * game,
}
}
static void
static inline void
strategy_call_by_length (const TarotGame * game,
const TarotGameEvent * event,
int *shortest,
......@@ -1144,7 +1144,7 @@ strategy_call_by_length (const TarotGame * game,
}
}
static void
static inline void
strategy_call_myself (const TarotGame * game,
const TarotGameEvent * event, int *myself)
{
......@@ -1167,7 +1167,7 @@ strategy_call_myself (const TarotGame * game,
}
}
static void
static inline void
strategy_call_marriage (const TarotGame * game,
const TarotGameEvent * event, int *will_own_marriage)
{
......@@ -1217,7 +1217,7 @@ strategy_call_marriage (const TarotGame * game,
/* For each of the 78 cards, set its status to 0 by default, or +1 if
we own that card, or +2 if we do not own it, do not discard it and
call it, or -1 if we own it and discard it. */
static void
static inline void
features_get_status (const TarotGame * game,
const TarotGameEvent * event, int *status)
{
......@@ -1251,7 +1251,7 @@ features_get_status (const TarotGame * game,
}
}
static void
static inline void
strategy_discard_save (const TarotGame * game,
const TarotGameEvent * event,
size_t *queens, size_t *knights, size_t *jacks)
......@@ -1291,7 +1291,7 @@ strategy_discard_save (const TarotGame * game,
}
}
static void
static inline void
strategy_discard_junk (const TarotGame * game,
const TarotGameEvent * event, size_t *lesser)
{
......@@ -1324,7 +1324,7 @@ strategy_discard_junk (const TarotGame * game,
}
}
static void
static inline void
strategy_discard_by_length (const TarotGame * game,
const TarotGameEvent * event,
size_t *shortest,
......@@ -1378,7 +1378,7 @@ strategy_discard_by_length (const TarotGame * game,
}
}
static void
static inline void
get_teams (const TarotGame * game, int *attack)
{
size_t n_players = game_n_players (game), i;
......@@ -1397,7 +1397,7 @@ get_teams (const TarotGame * game, int *attack)
attack[partner] = 1;
}
static void
static inline void
features_team (const TarotGame * game, int *attack, int *defence)
{
TarotPlayer myself;
......@@ -1412,7 +1412,7 @@ features_team (const TarotGame * game, int *attack, int *defence)
}
}
static void
static inline void
features_trick_players (const TarotGame * game,
size_t *n_already_played,
size_t *n_allies_after_last_opponent)
......@@ -1461,7 +1461,7 @@ features_trick_players (const TarotGame * game,
}
}
static void
static inline void
may_play_in_trick (const TarotCounter * counter,
size_t n_players,
TarotPlayer first_forced,
......@@ -1485,7 +1485,7 @@ may_play_in_trick (const TarotCounter * counter,
}
}
static int
static inline int
find_master (const TarotGame * game,
const TarotCounter * counter,
TarotCard least_candidate,
......@@ -1533,7 +1533,7 @@ find_master (const TarotGame * game,
return 0;
}
static int
static inline int
find_master_team (const TarotGame * game,
const TarotCounter * counter,
TarotCard least_candidate,
......@@ -1574,7 +1574,7 @@ find_master_team (const TarotGame * game,
return 0;
}
static int
static inline int
get_called_suit (const TarotGame * game, TarotSuit * called)
{
TarotCard call;
......@@ -1590,7 +1590,7 @@ get_called_suit (const TarotGame * game, TarotSuit * called)
return 1;
}
static size_t
static inline size_t
count_times_lead (const TarotGame * game, TarotSuit suit)
{
size_t current_trick;
......@@ -1612,7 +1612,7 @@ count_times_lead (const TarotGame * game, TarotSuit suit)
return ret;
}
static void
static inline void
features_minor_suit (const TarotGame * game,
const TarotCounter * counter,
int *called_suit,
......@@ -1699,7 +1699,7 @@ features_minor_suit (const TarotGame * game,
}
}
static void
static inline void
features_trump (const TarotGame * game,
const TarotCounter * counter,
size_t *n_remaining,
......@@ -1735,7 +1735,7 @@ features_trump (const TarotGame * game,
}
}
static void
static inline void
features_points (const TarotGame * game,
size_t *n_halfpoints, size_t *n_oudlers)
{
......@@ -1778,7 +1778,7 @@ features_points (const TarotGame * game,
}
}
static void
static inline void
strategy_lead (const TarotGame * game,
const TarotCounter * counter,
const TarotGameEvent * event,
......@@ -1838,7 +1838,7 @@ strategy_lead (const TarotGame * game,
}
}
static void
static inline void
strategy_purity (const TarotGame * game,
const TarotGameEvent * event,
size_t *n_smaller_kept,
......@@ -1921,7 +1921,7 @@ strategy_purity (const TarotGame * game,
}
}
static void
static inline void
strategy_excuse (const TarotGame * game,
const TarotGameEvent * event, int *excuse)
{
......@@ -1934,7 +1934,7 @@ strategy_excuse (const TarotGame * game,
}
}
static size_t
static inline size_t
who_plays_after_me (const TarotGame * game, TarotPlayer * p)
{
size_t i_trick, ret, i, n_cards, n_players = game_n_players (game);
......@@ -1961,7 +1961,7 @@ who_plays_after_me (const TarotGame * game, TarotPlayer * p)
return ret;
}
static void
static inline void
strategy_trump_master (const TarotGame * game,
const TarotCounter * counter,
const TarotGameEvent * event,
......@@ -2018,7 +2018,7 @@ strategy_trump_master (const TarotGame * game,
}
}
static void
static inline void
strategy_play_points (const TarotGame * game,
const TarotGameEvent * event,
size_t *n_halfpoints, int *oudler)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment