]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/TianoCompress/TianoCompress.c
License header updated to match correct format.
[mirror_edk2.git] / BaseTools / Source / C / TianoCompress / TianoCompress.c
index 145288bb8038a508956d44169fa92cd4146aaa41..70f1b61a5ca31547b45b1b53097cd4b711e2380f 100644 (file)
@@ -1,6 +1,11 @@
 /** @file\r
-\r
-Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Compression routine. The compression algorithm is a mixture of LZ77 and Huffman \r
+coding. LZ77 transforms the source data into a sequence of Original Characters \r
+and Pointers to repeated strings.\r
+This sequence is further divided into Blocks and Huffman codings are applied to \r
+each Block.\r
+  \r
+Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -9,18 +14,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-Module Name:\r
-\r
-  TianoCompress.c\r
-\r
-Abstract:\r
-\r
-  Compression routine. The compression algorithm is a mixture of\r
-  LZ77 and Huffman coding. LZ77 transforms the source data into a\r
-  sequence of Original Characters and Pointers to repeated strings.\r
-  This sequence is further divided into Blocks and Huffman codings\r
-  are applied to each Block.\r
-\r
 **/\r
 \r
 #include "Compress.h"\r
@@ -1613,7 +1606,7 @@ Returns:
   //\r
   // Copy the file contents to the output buffer.\r
   //\r
-  InputFile = fopen (InputFileName, "rb");\r
+  InputFile = fopen (LongFilePath (InputFileName), "rb");\r
     if (InputFile == NULL) {\r
       Error (NULL, 0, 0001, "Error opening file: %s", InputFileName);\r
       return EFI_ABORTED;\r
@@ -1695,7 +1688,7 @@ Returns:
   //\r
   // Copyright declaration\r
   // \r
-  fprintf (stdout, "Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.\n\n");\r
+  fprintf (stdout, "Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.\n\n");\r
 \r
   //\r
   // Details Option\r
@@ -1889,7 +1882,7 @@ Returns:
     goto ERROR;\r
   }\r
     \r
-  InputFile = fopen (InputFileName, "rb");\r
+  InputFile = fopen (LongFilePath (InputFileName), "rb");\r
   if (InputFile == NULL) {\r
     Error (NULL, 0, 0001, "Error opening input file", InputFileName);\r
     goto ERROR;\r
@@ -1920,7 +1913,7 @@ Returns:
   }\r
    \r
   if (OutputFileName != NULL) {\r
-    OutputFile = fopen (OutputFileName, "wb");\r
+    OutputFile = fopen (LongFilePath (OutputFileName), "wb");\r
     if (OutputFile == NULL) {\r
       Error (NULL, 0, 0001, "Error opening output file for writing", OutputFileName);\r
     if (InputFile != NULL) {\r
@@ -1930,7 +1923,7 @@ Returns:
       }\r
     } else {\r
       OutputFileName = DEFAULT_OUTPUT_FILE;\r
-      OutputFile = fopen (OutputFileName, "wb");\r
+      OutputFile = fopen (LongFilePath (OutputFileName), "wb");\r
     }\r
     \r
   if (ENCODE) {\r