Fixed windows issues + one minor optimization on to_utf8

pull/7/head
Nicolay Korslund 15 years ago
parent 358e1ca5a5
commit 38ad2d98f9

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

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

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

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

Loading…
Cancel
Save