"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "goo/gfile.cc" between
xpdf-4.01.01.tar.gz and xpdf-4.02.tar.gz

About: Xpdf is a PDF viewer for X.

gfile.cc  (xpdf-4.01.01):gfile.cc  (xpdf-4.02)
skipping to change at line 14 skipping to change at line 14
// //
// Miscellaneous file and directory name manipulation. // Miscellaneous file and directory name manipulation.
// //
// Copyright 1996-2003 Glyph & Cog, LLC // Copyright 1996-2003 Glyph & Cog, LLC
// //
//======================================================================== //========================================================================
#include <aconf.h> #include <aconf.h>
#ifdef _WIN32 #ifdef _WIN32
# undef WIN32_LEAN_AND_MEAN
# include <windows.h>
# include <time.h> # include <time.h>
# include <direct.h> # include <direct.h>
#else #else
# if !defined(ACORN) # if !defined(ACORN)
# include <sys/types.h> # include <sys/types.h>
# include <sys/stat.h> # include <sys/stat.h>
# include <fcntl.h> # include <fcntl.h>
# endif # endif
# include <time.h> # include <time.h>
# include <limits.h> # include <limits.h>
skipping to change at line 605 skipping to change at line 607
wPath[i] = (wchar_t)(((p[0] & 0x0f) << 12) | wPath[i] = (wchar_t)(((p[0] & 0x0f) << 12) |
((p[1] & 0x3f) << 6) | ((p[1] & 0x3f) << 6) |
(p[2] & 0x3f)); (p[2] & 0x3f));
p += 3; p += 3;
} else { } else {
wPath[i] = (wchar_t)(p[0] & 0xff); wPath[i] = (wchar_t)(p[0] & 0xff);
p += 1; p += 1;
} }
} }
wPath[i] = (wchar_t)0; wPath[i] = (wchar_t)0;
for (i = 0; mode[i] && i < sizeof(wMode) - 1; ++i) { for (i = 0; mode[i] && i < sizeof(wMode)/sizeof(wchar_t) - 1; ++i) {
wMode[i] = (wchar_t)(mode[i] & 0xff); wMode[i] = (wchar_t)(mode[i] & 0xff);
} }
wMode[i] = (wchar_t)0; wMode[i] = (wchar_t)0;
return _wfopen(wPath, wMode); return _wfopen(wPath, wMode);
} else { } else {
for (p = path, i = 0; *p && i < _MAX_PATH; ++i) { for (p = path, i = 0; *p && i < _MAX_PATH; ++i) {
if ((p[0] & 0xe0) == 0xc0 && if ((p[0] & 0xe0) == 0xc0 &&
p[1] && (p[1] & 0xc0) == 0x80) { p[1] && (p[1] & 0xc0) == 0x80) {
nPath[i] = (char)(((p[0] & 0x1f) << 6) | nPath[i] = (char)(((p[0] & 0x1f) << 6) |
(p[1] & 0x3f)); (p[1] & 0x3f));
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)