forked from github/server
parent
ef124c56ee
commit
3cd89d8839
|
@ -52,7 +52,7 @@
|
||||||
RuntimeLibrary="3"
|
RuntimeLibrary="3"
|
||||||
UsePrecompiledHeader="2"
|
UsePrecompiledHeader="2"
|
||||||
PrecompiledHeaderThrough="stdafx.h"
|
PrecompiledHeaderThrough="stdafx.h"
|
||||||
WarningLevel="3"
|
WarningLevel="4"
|
||||||
Detect64BitPortabilityProblems="true"
|
Detect64BitPortabilityProblems="true"
|
||||||
DebugInformationFormat="4"
|
DebugInformationFormat="4"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
#include <platform.h>
|
#include <platform.h>
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable: 4244)
|
||||||
|
#pragma warning(disable: 4127)
|
||||||
#include <external/sqlite3.c>
|
#include <external/sqlite3.c>
|
||||||
|
#pragma warning(pop)
|
||||||
#include <external/md5.c>
|
#include <external/md5.c>
|
||||||
#include <external/bson/bson.c>
|
#include <external/bson/bson.c>
|
||||||
#include <external/bson/numbers.c>
|
#include <external/bson/numbers.c>
|
||||||
|
|
|
@ -19,4 +19,5 @@ void RunAllTests(void) {
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
RunAllTests();
|
RunAllTests();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
RuntimeLibrary="3"
|
RuntimeLibrary="3"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
PrecompiledHeaderThrough="stdafx.h"
|
PrecompiledHeaderThrough="stdafx.h"
|
||||||
WarningLevel="3"
|
WarningLevel="4"
|
||||||
Detect64BitPortabilityProblems="true"
|
Detect64BitPortabilityProblems="true"
|
||||||
DebugInformationFormat="4"
|
DebugInformationFormat="4"
|
||||||
/>
|
/>
|
||||||
|
@ -197,6 +197,14 @@
|
||||||
<File
|
<File
|
||||||
RelativePath="..\external\cutest\CuTest.c"
|
RelativePath="..\external\cutest\CuTest.c"
|
||||||
>
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\tests.c"
|
RelativePath=".\tests.c"
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
RuntimeLibrary="3"
|
RuntimeLibrary="3"
|
||||||
UsePrecompiledHeader="2"
|
UsePrecompiledHeader="2"
|
||||||
PrecompiledHeaderThrough="stdafx.h"
|
PrecompiledHeaderThrough="stdafx.h"
|
||||||
WarningLevel="3"
|
WarningLevel="4"
|
||||||
Detect64BitPortabilityProblems="true"
|
Detect64BitPortabilityProblems="true"
|
||||||
DebugInformationFormat="4"
|
DebugInformationFormat="4"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -297,7 +297,7 @@ static struct curse_type ct_magicresistance = {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int
|
static int
|
||||||
read_skill(struct storage * store, void * target, curse * c)
|
read_skill(struct storage * store, curse * c, void * target)
|
||||||
{
|
{
|
||||||
int skill;
|
int skill;
|
||||||
if (store->version<CURSETYPE_VERSION) {
|
if (store->version<CURSETYPE_VERSION) {
|
||||||
|
@ -312,7 +312,7 @@ read_skill(struct storage * store, void * target, curse * c)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
write_skill(struct storage * store, const void * target, const curse * c)
|
write_skill(struct storage * store, const curse * c, const void * target)
|
||||||
{
|
{
|
||||||
store->w_int(store, c->data.i);
|
store->w_int(store, c->data.i);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue