mirror of
https://github.com/GNOME/libxml2.git
synced 2025-03-19 18:50:25 +08:00
applied small changes to portability layer for compilation on DJGPP Ms-DOS
* xmlIO.c: applied small changes to portability layer for compilation on DJGPP Ms-DOS compiler. Daniel
This commit is contained in:
parent
d9d32aebd3
commit
1997c3e259
@ -1,3 +1,8 @@
|
||||
Sat Jul 5 22:40:23 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* xmlIO.c: applied small changes to portability layer for
|
||||
compilation on DJGPP Ms-DOS compiler.
|
||||
|
||||
Sat Jul 5 22:30:25 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* parser.c HTMLparser.c: use the character() SAX callback
|
||||
|
26
xmlIO.c
26
xmlIO.c
@ -308,13 +308,13 @@ xmlFileOpen_real (const char *filename) {
|
||||
}
|
||||
|
||||
if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost/", 17))
|
||||
#if defined (_WIN32) && !defined(__CYGWIN__)
|
||||
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
|
||||
path = &filename[17];
|
||||
#else
|
||||
path = &filename[16];
|
||||
#endif
|
||||
else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) {
|
||||
#if defined (_WIN32) && !defined(__CYGWIN__)
|
||||
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
|
||||
path = &filename[8];
|
||||
#else
|
||||
path = &filename[7];
|
||||
@ -327,7 +327,7 @@ xmlFileOpen_real (const char *filename) {
|
||||
if (!xmlCheckFilename(path))
|
||||
return(NULL);
|
||||
|
||||
#if defined(WIN32) || defined (__CYGWIN__)
|
||||
#if defined(WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__)
|
||||
fd = fopen(path, "rb");
|
||||
#else
|
||||
fd = fopen(path, "r");
|
||||
@ -378,13 +378,13 @@ xmlFileOpenW (const char *filename) {
|
||||
}
|
||||
|
||||
if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost/", 17))
|
||||
#if defined (_WIN32) && !defined(__CYGWIN__)
|
||||
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
|
||||
path = &filename[17];
|
||||
#else
|
||||
path = &filename[16];
|
||||
#endif
|
||||
else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) {
|
||||
#if defined (_WIN32) && !defined(__CYGWIN__)
|
||||
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
|
||||
path = &filename[8];
|
||||
#else
|
||||
path = &filename[7];
|
||||
@ -505,13 +505,13 @@ xmlGzfileOpen_real (const char *filename) {
|
||||
}
|
||||
|
||||
if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost/", 17))
|
||||
#if defined (_WIN32) && !defined(__CYGWIN__)
|
||||
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
|
||||
path = &filename[17];
|
||||
#else
|
||||
path = &filename[16];
|
||||
#endif
|
||||
else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) {
|
||||
#if defined (_WIN32) && !defined(__CYGWIN__)
|
||||
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
|
||||
path = &filename[8];
|
||||
#else
|
||||
path = &filename[7];
|
||||
@ -574,13 +574,13 @@ xmlGzfileOpenW (const char *filename, int compression) {
|
||||
}
|
||||
|
||||
if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost/", 17))
|
||||
#if defined (_WIN32) && !defined(__CYGWIN__)
|
||||
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
|
||||
path = &filename[17];
|
||||
#else
|
||||
path = &filename[16];
|
||||
#endif
|
||||
else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) {
|
||||
#if defined (_WIN32) && !defined(__CYGWIN__)
|
||||
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
|
||||
path = &filename[8];
|
||||
#else
|
||||
path = &filename[7];
|
||||
@ -2499,13 +2499,13 @@ static int xmlSysIDExists(const char *URL) {
|
||||
return(0);
|
||||
|
||||
if (!xmlStrncasecmp(BAD_CAST URL, BAD_CAST "file://localhost/", 17))
|
||||
#if defined (_WIN32) && !defined(__CYGWIN__)
|
||||
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
|
||||
path = &URL[17];
|
||||
#else
|
||||
path = &URL[16];
|
||||
#endif
|
||||
else if (!xmlStrncasecmp(BAD_CAST URL, BAD_CAST "file:///", 8)) {
|
||||
#if defined (_WIN32) && !defined(__CYGWIN__)
|
||||
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
|
||||
path = &URL[8];
|
||||
#else
|
||||
path = &URL[7];
|
||||
@ -2707,13 +2707,13 @@ xmlNoNetExists(const char *URL)
|
||||
return (0);
|
||||
|
||||
if (!xmlStrncasecmp(BAD_CAST URL, BAD_CAST "file://localhost/", 17))
|
||||
#if defined (_WIN32) && !defined(__CYGWIN__)
|
||||
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
|
||||
path = &URL[17];
|
||||
#else
|
||||
path = &URL[16];
|
||||
#endif
|
||||
else if (!xmlStrncasecmp(BAD_CAST URL, BAD_CAST "file:///", 8)) {
|
||||
#if defined (_WIN32) && !defined(__CYGWIN__)
|
||||
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
|
||||
path = &URL[8];
|
||||
#else
|
||||
path = &URL[7];
|
||||
|
Loading…
x
Reference in New Issue
Block a user