all repos — mgba @ bf716b947a113056d315ee75802e40c6a5df3d65

mGBA Game Boy Advance Emulator

Util: Move StringList to string.c
Vicki Pfau vi@endrift.com
Tue, 11 Apr 2017 21:41:53 -0700
commit

bf716b947a113056d315ee75802e40c6a5df3d65

parent

7dc9eb4d5641d5980a2cc0eb8f1e459b4bfdfb4a

4 files changed, 6 insertions(+), 2 deletions(-)

jump to
M include/mgba-util/vector.hinclude/mgba-util/vector.h

@@ -92,6 +92,8 @@ memcpy(dest->vector, src->vector, src->size * sizeof(TYPE)); \

dest->size = src->size; \ } \ +DECLARE_VECTOR(StringList, char*); + CXX_GUARD_END #endif
M include/mgba/core/cheats.hinclude/mgba/core/cheats.h

@@ -48,7 +48,6 @@

mLOG_DECLARE_CATEGORY(CHEATS); DECLARE_VECTOR(mCheatList, struct mCheat); -DECLARE_VECTOR(StringList, char*); struct mCheatDevice; struct mCheatSet {
M src/core/cheats.csrc/core/cheats.c

@@ -17,7 +17,6 @@ mLOG_DEFINE_CATEGORY(CHEATS, "Cheats", "core.cheats");

DEFINE_VECTOR(mCheatList, struct mCheat); DEFINE_VECTOR(mCheatSets, struct mCheatSet*); -DEFINE_VECTOR(StringList, char*); static int32_t _readMem(struct mCore* core, uint32_t address, int width) { switch (width) {
M src/util/string.csrc/util/string.c

@@ -5,7 +5,11 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this

* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <mgba-util/string.h> +#include <mgba-util/vector.h> + #include <string.h> + +DEFINE_VECTOR(StringList, char*); #ifndef HAVE_STRNDUP char* strndup(const char* start, size_t len) {