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

These functions should be static

parent 25718e5e
Pipeline #231623 canceled with stages
in 11 minutes and 2 seconds
/* tarot implements the rules of the tarot game
* Copyright (C) 2017, 2018, 2019 Vivien Kraus
* Copyright (C) 2017, 2018, 2019, 2020 Vivien Kraus
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -430,33 +430,33 @@ doscard_infer (TarotDoscardHandle * doscard, const TarotTricksHandle * tricks)
return 1;
}
int
static inline int
doscard_dog_known (const TarotDoscardHandle * doscard)
{
return _doscard_get_has_started (doscard)
&& _doscard_get_dog_done (doscard);
}
int
static inline int
doscard_discard_known (const TarotDoscardHandle * doscard)
{
return (_doscard_get_has_started (doscard)
&& _doscard_get_discard_done (doscard));
}
int
static inline int
doscard_dog (const TarotDoscardHandle * doscard, TarotHand * dest)
{
return hand_copy (dest, &(doscard->dog));
}
int
static inline int
doscard_discard (const TarotDoscardHandle * doscard, TarotHand * dest)
{
return hand_copy (dest, &(doscard->discard));
}
int
static inline int
doscard_discard_public (const TarotDoscardHandle * doscard, TarotHand * dest)
{
const TarotCard *buffer;
......
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