Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-28 03:54:34

0001 #include "LzmaFile.h"
0002 
0003 #include <cstdio>
0004 #include <cstdlib>
0005 #include <cstring>
0006 
0007 int main(int numArgs, const char *args[]) {
0008   // int res;
0009 
0010   if (numArgs != 2) {
0011     //PrintHelp(rs);
0012     return 0;
0013   }
0014 
0015   {
0016     size_t t4 = sizeof(UInt32);
0017     size_t t8 = sizeof(UInt64);
0018     if (t4 != 4 || t8 != 8) {
0019       //return PrintError(rs, "Incorrect UInt32 or UInt64");
0020     }
0021   }
0022 
0023   LzmaFile lzma;
0024   /*res =*/lzma.Open(args[1]);
0025   /*res =*/lzma.DecodeAll();
0026   /*res =*/lzma.Close();
0027   /*
0028   if (res != SZ_OK) {
0029     if (res == SZ_ERROR_MEM) {
0030       return 0;  //PrintError(rs, kCantAllocateMessage);
0031     } else if (res == SZ_ERROR_DATA) {
0032       return 0;  //PrintError(rs, kDataErrorMessage);
0033     } else if (res == SZ_ERROR_WRITE) {
0034       return 0;  //PrintError(rs, kCantWriteMessage);
0035     } else if (res == SZ_ERROR_READ) {
0036       return 0;  //PrintError(rs, kCantReadMessage);
0037     }
0038     return 0;  //PrintErrorNumber(rs, res);
0039   }
0040   */
0041   return 0;
0042 }