"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "CPP/7zip/Archive/XarHandler.cpp" between
p7zip_15.14.1_src_all.tar.gz and p7zip_16.02_src_all.tar.gz

About: p7zip is a command-line file archiver with a high compression ratio (a port of the Windows program 7za.exe).

XarHandler.cpp  (p7zip_15.14.1_src_all):XarHandler.cpp  (p7zip_16.02_src_all)
skipping to change at line 488 skipping to change at line 488
switch (propID) switch (propID)
{ {
case kpidMethod: Utf8StringToProp(item.Method, prop); break; case kpidMethod: Utf8StringToProp(item.Method, prop); break;
case kpidPath: case kpidPath:
{ {
AString path; AString path;
int cur = index; int cur = index;
do do
{ {
const CFile &item = _files[cur]; const CFile &item2 = _files[cur];
if (!path.IsEmpty()) if (!path.IsEmpty())
path.InsertAtFront(CHAR_PATH_SEPARATOR); path.InsertAtFront(CHAR_PATH_SEPARATOR);
if (item.Name.IsEmpty()) if (item2.Name.IsEmpty())
path.Insert(0, "unknown"); path.Insert(0, "unknown");
else else
path.Insert(0, item.Name); path.Insert(0, item2.Name);
cur = item.Parent; cur = item2.Parent;
} }
while (cur >= 0); while (cur >= 0);
Utf8StringToProp(path, prop); Utf8StringToProp(path, prop);
break; break;
} }
case kpidIsDir: prop = item.IsDir; break; case kpidIsDir: prop = item.IsDir; break;
case kpidSize: if (!item.IsDir) prop = item.Size; break; case kpidSize: if (!item.IsDir) prop = item.Size; break;
case kpidPackSize: if (!item.IsDir) prop = item.PackSize; break; case kpidPackSize: if (!item.IsDir) prop = item.PackSize; break;
 End of changes. 3 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS