Bug fix and Windows compat change.

This commit is contained in:
Mark Valence 2001-02-19 19:09:54 +00:00
parent efcb4533be
commit f9a76ce1ab

View File

@ -36,6 +36,12 @@
#include "ucdata.h"
#ifdef WIN32
#define UC_DIRSEP '\\'
#else
#define UC_DIRSEP '/'
#endif
/**************************************************************************
*
* Miscellaneous types, data, and support functions.
@ -83,7 +89,7 @@ _ucopenfile(char *paths, char *filename, char *mode)
pp = path;
while (*dp && *dp != ':')
*pp++ = *dp++;
*pp++ = '/';
*pp++ = UC_DIRSEP;
fp = filename;
while (*fp)
@ -223,6 +229,9 @@ _ucprop_lookup(unsigned long code, unsigned long n)
{
long l, r, m;
if (_ucprop_size == 0)
return 0;
/*
* There is an extra node on the end of the offsets to allow this routine
* to work right. If the index is 0xffff, then there are no nodes for the