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