equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * e32tools\petran\Szip\panic.cpp |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #include "panic.h" |
|
21 #include "h_utl.h" |
|
22 #include <stdlib.h> |
|
23 |
|
24 char* HuffmanError[]= { |
|
25 "Huffman: Too many codes\n", |
|
26 "Huffman: Invalid coding\n", |
|
27 "Huffman: Buffer overflow\n", |
|
28 "Huffman: Out Of Memory\n", |
|
29 "Huffman: Corrupt File\n", |
|
30 }; |
|
31 |
|
32 const TInt KHuffmanErrorBase=700; |
|
33 |
|
34 void Panic(TPanic aPanic) |
|
35 { |
|
36 Print(ESevereError,HuffmanError[TInt(aPanic)]); |
|
37 exit(KHuffmanErrorBase+TInt(aPanic)); |
|
38 } |