all repos — mgba @ b54f5a997a493f977d77a8273ff95b266d9abe7e

mGBA Game Boy Advance Emulator

All: Include util/string.h wherever strdup is used
Jeffrey Pfau jeffrey@endrift.com
Wed, 17 Jun 2015 21:50:10 -0700
commit

b54f5a997a493f977d77a8273ff95b266d9abe7e

parent

4bd35550455e74a870a52c611d8e39d4dde20015

M src/gba/supervisor/config.csrc/gba/supervisor/config.c

@@ -6,6 +6,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "config.h" #include "util/formatting.h" +#include "util/string.h" #include "util/vfs.h" #include <sys/stat.h>
M src/platform/commandline.csrc/platform/commandline.c

@@ -17,6 +17,7 @@ #include "debugger/gdb-stub.h"

#endif #include "gba/video.h" +#include "util/string.h" #include <fcntl.h> #include <getopt.h>
M src/platform/imagemagick/imagemagick-gif-encoder.csrc/platform/imagemagick/imagemagick-gif-encoder.c

@@ -6,6 +6,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "imagemagick-gif-encoder.h" #include "gba/video.h" +#include "util/string.h" static void _magickPostVideoFrame(struct GBAAVStream*, struct GBAVideoRenderer* renderer); static void _magickPostAudioFrame(struct GBAAVStream*, int16_t left, int16_t right);
M src/platform/perf-main.csrc/platform/perf-main.c

@@ -10,6 +10,7 @@ #include "gba/renderers/video-software.h"

#include "gba/serialize.h" #include "platform/commandline.h" +#include "util/string.h" #include "util/vfs.h" #include <errno.h>
M src/util/configuration.csrc/util/configuration.c

@@ -6,6 +6,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "configuration.h" #include "util/formatting.h" +#include "util/string.h" #include "util/vfs.h" #include "third-party/inih/ini.h"
M src/util/table.csrc/util/table.c

@@ -6,6 +6,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "table.h" #include "util/hash.h" +#include "util/string.h" #define LIST_INITIAL_SIZE 8 #define TABLE_INITIAL_SIZE 8