Make sjson its own object

git-svn-id: https://svn.eduke32.com/eduke32@8091 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-09-10 23:34:46 +00:00 committed by Christoph Oelckers
parent e3f1399484
commit 475743424f
7 changed files with 15 additions and 5 deletions

View File

@ -258,6 +258,7 @@ engine_objs := \
miniz_tdef.c \
fix16.cpp \
fix16_str.cpp \
sjson.cpp \
engine_editor_objs := \
build.cpp \

View File

@ -275,6 +275,7 @@
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\source\build\src\sjson.cpp" />
<ClCompile Include="..\..\source\build\src\smalltextfont.cpp" />
<ClCompile Include="..\..\source\build\src\softsurface.cpp" />
<ClCompile Include="..\..\source\build\src\texcache.cpp" />

View File

@ -146,6 +146,9 @@
<ClCompile Include="..\..\source\build\src\sdlkeytrans.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\source\build\src\sjson.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\source\build\src\smalltextfont.cpp">
<Filter>Source Files</Filter>
</ClCompile>

View File

@ -192,7 +192,8 @@ ENGINE_OBJS= \
$(ENGINE_OBJ)\miniz_tinfl.$o \
$(ENGINE_OBJ)\miniz_tdef.$o \
$(ENGINE_OBJ)\fix16.$o \
$(ENGINE_OBJ)\fix16_str.$o
$(ENGINE_OBJ)\fix16_str.$o \
$(ENGINE_OBJ)\sjson.$o \
ENGINE_EDITOR_OBJS=$(ENGINE_OBJ)\build.$o \

View File

@ -0,0 +1,5 @@
#include "compat.h"
#define SJSON_IMPLEMENT
#include "sjson.h"

View File

@ -5657,7 +5657,6 @@ HORIZONLY:;
}
#define SJSON_IMPLEMENT
#include "sjson.h"
int portableBackupSave(const char * path, const char * name, int volume, int level)

View File

@ -324,9 +324,9 @@ bool sjson_check(const sjson_node* node, char errmsg[256]);
#ifndef sjson_malloc
# include <stdlib.h>
# include <string.h>
# define sjson_malloc(user, size) (UNREFERENCED_PARAMETER(user), malloc(size))
# define sjson_free(user, ptr) (UNREFERENCED_PARAMETER(user), free(ptr))
# define sjson_realloc(user, ptr, size) (UNREFERENCED_PARAMETER(user), realloc(ptr, size))
# define sjson_malloc(user, size) ((UNREFERENCED_PARAMETER(user)), malloc(size))
# define sjson_free(user, ptr) ((UNREFERENCED_PARAMETER(user)), free(ptr))
# define sjson_realloc(user, ptr, size) ((UNREFERENCED_PARAMETER(user)), realloc(ptr, size))
#endif
#ifndef sjson_assert