forked from github/server
Unicode WIP: Mostly Jamfile fixes for linux and some unuse code disabled
This commit is contained in:
parent
260d518fa1
commit
6b4ad684af
|
@ -6,6 +6,7 @@ SubDirHdrs $(SUBDIR)/../kernel ;
|
||||||
SubDirHdrs $(SUBDIR)/../util ;
|
SubDirHdrs $(SUBDIR)/../util ;
|
||||||
SubDirHdrs $(SUBDIR)/.. ;
|
SubDirHdrs $(SUBDIR)/.. ;
|
||||||
SubDirHdrs $(SUBDIR)/../.. ;
|
SubDirHdrs $(SUBDIR)/../.. ;
|
||||||
|
SubDirHdrs $(XMLHDRS) ;
|
||||||
|
|
||||||
SOURCES =
|
SOURCES =
|
||||||
artrewards.c
|
artrewards.c
|
||||||
|
|
|
@ -15,6 +15,7 @@ SOURCES =
|
||||||
building.c
|
building.c
|
||||||
calendar.c
|
calendar.c
|
||||||
curse.c
|
curse.c
|
||||||
|
command.c
|
||||||
eressea.c
|
eressea.c
|
||||||
equipment.c
|
equipment.c
|
||||||
faction.c
|
faction.c
|
||||||
|
|
|
@ -6,6 +6,7 @@ SubDirHdrs $(SUBDIR)/../kernel ;
|
||||||
SubDirHdrs $(SUBDIR)/../util ;
|
SubDirHdrs $(SUBDIR)/../util ;
|
||||||
SubDirHdrs $(SUBDIR)/.. ;
|
SubDirHdrs $(SUBDIR)/.. ;
|
||||||
SubDirHdrs $(SUBDIR)/../.. ;
|
SubDirHdrs $(SUBDIR)/../.. ;
|
||||||
|
SubDirHdrs $(XMLHDRS) ;
|
||||||
|
|
||||||
SOURCES =
|
SOURCES =
|
||||||
arena.c
|
arena.c
|
||||||
|
|
|
@ -68,11 +68,13 @@ plane * arena = NULL;
|
||||||
/* local vars */
|
/* local vars */
|
||||||
#define CENTRAL_VOLCANO 1
|
#define CENTRAL_VOLCANO 1
|
||||||
|
|
||||||
|
#ifdef ARENA_CREATION
|
||||||
static unsigned int arena_id = 0;
|
static unsigned int arena_id = 0;
|
||||||
static region * arena_center = NULL;
|
static region * arena_center = NULL;
|
||||||
|
static int newarena = 0;
|
||||||
|
#endif
|
||||||
static region * tower_region[6];
|
static region * tower_region[6];
|
||||||
static region * start_region[6];
|
static region * start_region[6];
|
||||||
static int newarena = 0;
|
|
||||||
|
|
||||||
static region *
|
static region *
|
||||||
arena_region(int magic)
|
arena_region(int magic)
|
||||||
|
@ -434,6 +436,7 @@ struct trigger_type tt_caldera = {
|
||||||
caldera_read
|
caldera_read
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef ARENA_CREATION
|
||||||
static trigger *
|
static trigger *
|
||||||
trigger_caldera(building * b)
|
trigger_caldera(building * b)
|
||||||
{
|
{
|
||||||
|
@ -441,6 +444,7 @@ trigger_caldera(building * b)
|
||||||
t->data.v = b;
|
t->data.v = b;
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ARENA_CREATION
|
#ifdef ARENA_CREATION
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -6,6 +6,7 @@ SubDirHdrs $(SUBDIR)/../kernel ;
|
||||||
SubDirHdrs $(SUBDIR)/../util ;
|
SubDirHdrs $(SUBDIR)/../util ;
|
||||||
SubDirHdrs $(SUBDIR)/.. ;
|
SubDirHdrs $(SUBDIR)/.. ;
|
||||||
SubDirHdrs $(SUBDIR)/../.. ;
|
SubDirHdrs $(SUBDIR)/../.. ;
|
||||||
|
SubDirHdrs $(XMLHDRS) ;
|
||||||
|
|
||||||
SOURCES =
|
SOURCES =
|
||||||
dragons.c
|
dragons.c
|
||||||
|
|
|
@ -12,7 +12,6 @@ SOURCES =
|
||||||
attrib.c
|
attrib.c
|
||||||
base36.c
|
base36.c
|
||||||
bsdstring.c
|
bsdstring.c
|
||||||
command.c
|
|
||||||
crmessage.c
|
crmessage.c
|
||||||
cvector.c
|
cvector.c
|
||||||
dice.c
|
dice.c
|
||||||
|
|
|
@ -18,7 +18,6 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct locale;
|
struct locale;
|
||||||
typedef unsigned char xmlChar;
|
|
||||||
|
|
||||||
/** managing multiple locales: **/
|
/** managing multiple locales: **/
|
||||||
extern struct locale * find_locale(const char * name);
|
extern struct locale * find_locale(const char * name);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <ctype.h>
|
#include <wctype.h>
|
||||||
#include <memory.h>
|
#include <memory.h>
|
||||||
|
|
||||||
#define SPACE_REPLACEMENT '~'
|
#define SPACE_REPLACEMENT '~'
|
||||||
|
@ -30,7 +30,7 @@ eatwhitespace_c(const xmlChar ** str)
|
||||||
for (;;) {
|
for (;;) {
|
||||||
xmlChar utf8_character = (*str)[0];
|
xmlChar utf8_character = (*str)[0];
|
||||||
if (utf8_character <= 0x7F) {
|
if (utf8_character <= 0x7F) {
|
||||||
if (!isspace(utf8_character)) break;
|
if (!iswspace(utf8_character)) break;
|
||||||
++*str;
|
++*str;
|
||||||
} else {
|
} else {
|
||||||
ret = unicode_utf8_to_ucs4(&ucs, *str, &len);
|
ret = unicode_utf8_to_ucs4(&ucs, *str, &len);
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "unicode.h"
|
#include "unicode.h"
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <wctype.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -54,7 +54,7 @@ addtoken(tnode * root, const xmlChar * str, variant id)
|
||||||
{ 230, "AE"},
|
{ 230, "AE"},
|
||||||
{ 248, "OE"},
|
{ 248, "OE"},
|
||||||
{ 229, "AA"},
|
{ 229, "AA"},
|
||||||
{ 0, 0 }
|
{ 0, "" }
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!*str) {
|
if (!*str) {
|
||||||
|
|
Loading…
Reference in New Issue