forked from github/server
iwyu
This commit is contained in:
parent
a6ae5a9e93
commit
ea0acc49d9
6 changed files with 3 additions and 10 deletions
|
@ -495,7 +495,7 @@ static order *make_movement_order(unit * u, const region * target, int moves,
|
||||||
{
|
{
|
||||||
region *r = u->region;
|
region *r = u->region;
|
||||||
region **plan;
|
region **plan;
|
||||||
int bytes, position = 0;
|
int position = 0;
|
||||||
char zOrder[128], *bufp = zOrder;
|
char zOrder[128], *bufp = zOrder;
|
||||||
size_t size = sizeof(zOrder) - 1;
|
size_t size = sizeof(zOrder) - 1;
|
||||||
|
|
||||||
|
@ -507,6 +507,7 @@ static order *make_movement_order(unit * u, const region * target, int moves,
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
while (position != moves && plan[position + 1]) {
|
while (position != moves && plan[position + 1]) {
|
||||||
|
int bytes;
|
||||||
region *prev = plan[position];
|
region *prev = plan[position];
|
||||||
region *next = plan[++position];
|
region *next = plan[++position];
|
||||||
direction_t dir = reldirection(prev, next);
|
direction_t dir = reldirection(prev, next);
|
||||||
|
|
|
@ -12,7 +12,7 @@ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
ACTION OF CONTRACT, NEGLIGENCE OR OTH19ER TORTIOUS ACTION, ARISING OUT OF
|
||||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stddef.h>
|
|
||||||
|
|
||||||
typedef struct strlist {
|
typedef struct strlist {
|
||||||
struct strlist *next;
|
struct strlist *next;
|
||||||
char *s;
|
char *s;
|
||||||
|
|
|
@ -10,10 +10,7 @@ This program may not be used, modified or distributed
|
||||||
without prior permission by the authors of Eressea.
|
without prior permission by the authors of Eressea.
|
||||||
*/
|
*/
|
||||||
#include <platform.h>
|
#include <platform.h>
|
||||||
|
|
||||||
#include "bsdstring.h"
|
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "path.h"
|
|
||||||
#include "unicode.h"
|
#include "unicode.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <platform.h>
|
|
||||||
#include "message.h"
|
#include "message.h"
|
||||||
|
|
||||||
#include "strings.h"
|
#include "strings.h"
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#include <platform.h>
|
|
||||||
#include "variant.h"
|
#include "variant.h"
|
||||||
|
|
||||||
#include <assert.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue