fixup includes
This commit is contained in:
parent
4a4c174285
commit
c7ff531a63
26 changed files with 22 additions and 50 deletions
|
@ -8,9 +8,6 @@
|
|||
|
||||
#include "taisei.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "audio.h"
|
||||
#include "backend.h"
|
||||
#include "resource/resource.h"
|
||||
|
|
|
@ -8,10 +8,9 @@
|
|||
|
||||
#include "taisei.h"
|
||||
|
||||
#include "cli.h"
|
||||
#include <getopt.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "cli.h"
|
||||
#include "difficulty.h"
|
||||
#include "util.h"
|
||||
#include "log.h"
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
|
||||
#include "taisei.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "global.h"
|
||||
#include "version.h"
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
#include "dialog.h"
|
||||
#include "global.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
Dialog *create_dialog(const char *left, const char *right) {
|
||||
Dialog *d = malloc(sizeof(Dialog));
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
#include "enemy.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "global.h"
|
||||
#include "projectile.h"
|
||||
#include "list.h"
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
#include <SDL.h>
|
||||
#include <SDL_platform.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "color.h"
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include "util/assert.h"
|
||||
#include "log.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <SDL.h>
|
||||
|
||||
/******************************************************************************\
|
||||
|
|
|
@ -8,9 +8,6 @@
|
|||
|
||||
#include "taisei.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "list.h"
|
||||
#include "global.h"
|
||||
|
||||
|
|
|
@ -175,6 +175,10 @@ static void main_cleanup(CallChainResult ccr) {
|
|||
}
|
||||
}
|
||||
|
||||
// shut up -Wmissing-prototypes
|
||||
int main(int argc, char **argv);
|
||||
|
||||
attr_used
|
||||
int main(int argc, char **argv) {
|
||||
MainContext *ctx = calloc(1, sizeof(*ctx));
|
||||
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
|
||||
#include "taisei.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "list.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
#include "projectile.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "global.h"
|
||||
#include "list.h"
|
||||
#include "stageobjects.h"
|
||||
|
|
|
@ -8,9 +8,8 @@
|
|||
|
||||
#include "taisei.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "global.h"
|
||||
#include "random.h"
|
||||
|
||||
|
|
|
@ -10,9 +10,6 @@
|
|||
|
||||
#include "replay.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "global.h"
|
||||
|
|
|
@ -8,10 +8,6 @@
|
|||
|
||||
#include "taisei.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "model.h"
|
||||
#include "list.h"
|
||||
#include "resource.h"
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
#include "taisei.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "rwops_segment.h"
|
||||
#include "util.h"
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#include "taisei.h"
|
||||
|
||||
#include <SDL.h>
|
||||
#include <stdint.h>
|
||||
#include <zlib.h>
|
||||
#include "rwops_zlib.h"
|
||||
#include "util.h"
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
#include "taisei.h"
|
||||
|
||||
#include "stageutils.h"
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "global.h"
|
||||
#include "util/glm.h"
|
||||
#include "video.h"
|
||||
|
|
|
@ -11,14 +11,19 @@
|
|||
|
||||
#include "taisei.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdalign.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <stdnoreturn.h>
|
||||
// Common standard library headers
|
||||
#include <complex.h>
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <limits.h>
|
||||
#include <math.h>
|
||||
#include <complex.h>
|
||||
#include <stdalign.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdnoreturn.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "util/assert.h"
|
||||
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
#include "crap.h"
|
||||
#include "assert.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <SDL_thread.h>
|
||||
|
||||
void* memdup(const void *src, size_t size) {
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#include "taisei.h"
|
||||
|
||||
#include "debug.h"
|
||||
#include <string.h>
|
||||
|
||||
#ifndef DEBUG
|
||||
#error Your build system is broken
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
#include "geometry.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
bool point_in_ellipse(complex p, Ellipse e) {
|
||||
double Xp = creal(p);
|
||||
double Yp = cimag(p);
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include "taisei.h"
|
||||
|
||||
#include <SDL.h>
|
||||
#include <stdio.h>
|
||||
|
||||
char* read_all(const char *filename, int *size);
|
||||
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
#include "miscmath.h"
|
||||
#include "assert.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
double lerp(double v0, double v1, double f) {
|
||||
return f * (v1 - v0) + v0;
|
||||
}
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
#include "sha256.h"
|
||||
#include "util/stringops.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
typedef uint32_t sha256_word_t;
|
||||
typedef uint8_t sha256_byte_t;
|
||||
|
||||
|
|
|
@ -8,9 +8,6 @@
|
|||
|
||||
#include "taisei.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "stringops.h"
|
||||
#include "miscmath.h"
|
||||
#include "assert.h"
|
||||
|
|
|
@ -36,6 +36,9 @@ static attr_must_inline inline char *strdup(const char *str) {
|
|||
#undef strtok_r
|
||||
#define strtok_r _ts_strtok_r
|
||||
|
||||
#undef strcasecmp
|
||||
#define strcasecmp SDL_strcasecmp
|
||||
|
||||
char* copy_segment(const char *text, const char *delim, int *size);
|
||||
bool strendswith(const char *s, const char *e) attr_pure;
|
||||
bool strstartswith(const char *s, const char *p) attr_pure;
|
||||
|
|
Loading…
Reference in a new issue