Debian Codegraph @

unikey/error.cpp

raw
1 // -*- coding:unix; mode:c++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 /*------------------------------------------------------------------------------
3 VnConv: Vietnamese Encoding Converter Library
4 UniKey Project: http://unikey.sourceforge.net
5 Copyleft (C) 1998-2002 Pham Kim Long
6 Contact: [email protected]
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
21 --------------------------------------------------------------------------------*/
22 // For some unknown reasons, the functions in this file cannot be exported
23 // We had to move them to convert.cpp.
24 // TODO: inspect this problem later!
25 /*
26 #include "stdafx.h"
27 #include "vnconv.h"
28
29 char *ErrTable[VNCONV_LAST_ERROR] =
30 {"No error",
31 "Unknown error",
32 "Invalid charset",
33 "Error opening input file",
34 "Error opening output file",
35 "Error writing to output stream",
36 "Not enough memory",
37 };
38
39 DllExport const char * VnConvErrMsg(int errCode)
40 {
41 if (errCode < 0 || errCode >= VNCONV_LAST_ERROR)
42 errCode = VNCONV_UNKNOWN_ERROR;
43 return ErrTable[errCode];
44 }
45
46 */