1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

Fixed windows issues + one minor optimization on to_utf8

This commit is contained in:
Nicolay Korslund 2010-08-18 19:50:59 +02:00
parent 358e1ca5a5
commit 38ad2d98f9
4 changed files with 8 additions and 5 deletions

View file

@ -926,10 +926,10 @@ int update_arg(void *field, char **orig_field,
const char *long_opt, char short_opt, const char *long_opt, char short_opt,
const char *additional_error) const char *additional_error)
{ {
FIX_UNUSED (field);
char *stop_char = 0; char *stop_char = 0;
const char *val = value; const char *val = value;
int found; int found;
FIX_UNUSED (field);
stop_char = 0; stop_char = 0;
found = 0; found = 0;

View file

@ -9,7 +9,7 @@
namespace ESMS namespace ESMS
{ {
class ESMStore; struct ESMStore;
} }
namespace MWGui namespace MWGui

View file

@ -8,6 +8,7 @@
#include <cctype> #include <cctype>
#include <assert.h> #include <assert.h>
#include <stdexcept> #include <stdexcept>
#include <iterator>
namespace ESMS namespace ESMS
{ {

View file

@ -39,9 +39,11 @@
// Generated tables // Generated tables
#include "tables_gen.hpp" #include "tables_gen.hpp"
// Shared global buffers, we love you. // Shared global buffers, we love you. These initial sizes are large
static std::vector<char> buf; // enough to hold the largest books in Morrowind.esm, but we will
static std::vector<char> output; // resize automaticall if necessary.
static std::vector<char> buf (50*1024);
static std::vector<char> output (50*1024);
static int size; static int size;
// Make sure the given vector is large enough for 'size' bytes, // Make sure the given vector is large enough for 'size' bytes,