#if !defined(_WIN32)
char cmd[256];
sprintf(cmd, "mv %s %s", tmpName, outFile);
- int tmp = system(cmd);
+ system(cmd);
#else
if (rename(tmpName, outFile) != 0) {
remove(tmpName);
//---------------------------------------
int vnFileStreamConvert(int inCharset, int outCharset, FILE * inf, FILE *outf)
{
- int ret = 0;
-
VnCharset *pInCharset = VnCharsetLibObj.getVnCharset(inCharset);
VnCharset *pOutCharset = VnCharsetLibObj.getVnCharset(outCharset);
--- orginal/byteio.cpp 2009-04-14 00:16:33.000000000 +0700
-+++ byteio.cpp 2009-06-12 10:41:04.000000000 +0700
++++ byteio.cpp 2009-06-19 12:03:47.000000000 +0700
@@ -1,5 +1,5 @@
// -*- coding:unix; mode:c++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
-#include "prehdr.h"
--- orginal/charset.cpp 2009-04-14 00:16:33.000000000 +0700
-+++ charset.cpp 2009-06-12 10:44:20.000000000 +0700
++++ charset.cpp 2009-06-19 12:03:47.000000000 +0700
@@ -20,7 +20,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--------------------------------------------------------------------------------*/
--- orginal/convert.cpp 2009-04-14 00:16:33.000000000 +0700
-+++ convert.cpp 2009-06-12 14:00:32.000000000 +0700
++++ convert.cpp 2009-07-06 23:17:04.000000000 +0700
@@ -20,7 +20,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--------------------------------------------------------------------------------*/
ret = VNCONV_ERR_OUTPUT_FILE;
goto end;
}
-@@ -182,11 +181,10 @@
- #if !defined(_WIN32)
- char cmd[256];
- sprintf(cmd, "mv %s %s", tmpName, outFile);
-- system(cmd);
-+ int tmp = system(cmd);
+@@ -186,7 +185,6 @@
#else
if (rename(tmpName, outFile) != 0) {
remove(tmpName);
}
end:
-@@ -235,7 +232,7 @@
+@@ -213,8 +210,6 @@
+ //---------------------------------------
+ int vnFileStreamConvert(int inCharset, int outCharset, FILE * inf, FILE *outf)
+ {
+- int ret = 0;
+-
+ VnCharset *pInCharset = VnCharsetLibObj.getVnCharset(inCharset);
+ VnCharset *pOutCharset = VnCharsetLibObj.getVnCharset(outCharset);
+
+@@ -235,7 +230,7 @@
return genConvert(*pInCharset, *pOutCharset, is, os);
}
--- orginal/data.cpp 2009-04-14 00:16:33.000000000 +0700
-+++ data.cpp 2009-06-12 10:41:59.000000000 +0700
++++ data.cpp 2009-06-19 12:03:47.000000000 +0700
@@ -20,7 +20,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--------------------------------------------------------------------------------*/
--- orginal/inputproc.cpp 2009-04-14 00:16:33.000000000 +0700
-+++ inputproc.cpp 2009-06-19 11:45:58.000000000 +0700
++++ inputproc.cpp 2009-06-19 12:03:47.000000000 +0700
@@ -20,7 +20,7 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
--- orginal/keycons.h 2009-04-14 00:16:33.000000000 +0700
-+++ keycons.h 2009-06-19 11:46:22.000000000 +0700
++++ keycons.h 2009-06-19 12:03:47.000000000 +0700
@@ -34,7 +34,7 @@
#define CP_US_ANSI 1252
--- orginal/mactab.cpp 2009-04-14 00:16:33.000000000 +0700
-+++ mactab.cpp 2009-06-12 10:45:07.000000000 +0700
++++ mactab.cpp 2009-06-19 12:03:47.000000000 +0700
@@ -20,7 +20,7 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
--- orginal/pattern.cpp 2009-04-14 00:16:33.000000000 +0700
-+++ pattern.cpp 2009-06-12 10:42:40.000000000 +0700
++++ pattern.cpp 2009-06-19 12:03:47.000000000 +0700
@@ -19,7 +19,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--- orginal/ukengine.cpp 2009-04-14 00:16:33.000000000 +0700
-+++ ukengine.cpp 2009-06-12 10:42:52.000000000 +0700
++++ ukengine.cpp 2009-06-19 12:03:47.000000000 +0700
@@ -20,7 +20,7 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
--- orginal/ukengine.h 2009-04-14 00:16:33.000000000 +0700
-+++ ukengine.h 2009-06-12 10:45:23.000000000 +0700
++++ ukengine.h 2009-06-19 12:03:47.000000000 +0700
@@ -20,6 +20,7 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
--- orginal/unikey.cpp 2009-04-14 01:13:02.000000000 +0700
-+++ unikey.cpp 2009-06-19 11:44:56.000000000 +0700
++++ unikey.cpp 2009-06-19 12:03:47.000000000 +0700
@@ -48,7 +48,7 @@
//--------------------------------------------
void UnikeySetInputMethod(UkInputMethod im)
--- orginal/unikey.h 2009-04-14 01:14:29.000000000 +0700
-+++ unikey.h 2009-06-12 10:45:38.000000000 +0700
++++ unikey.h 2009-06-19 12:03:47.000000000 +0700
@@ -109,6 +109,9 @@
//e.g: GD&DDT,QDDND...
//The engine will return to normal mode when a word-break occurs.
--- orginal/usrkeymap.cpp 2009-04-14 01:12:54.000000000 +0700
-+++ usrkeymap.cpp 2009-06-12 10:45:46.000000000 +0700
++++ usrkeymap.cpp 2009-06-19 12:03:47.000000000 +0700
@@ -21,13 +21,15 @@
* Boston, MA 02111-1307, USA.
*/
--- orginal/vnconv.h 2009-04-14 00:16:33.000000000 +0700
-+++ vnconv.h 2009-06-12 10:45:58.000000000 +0700
++++ vnconv.h 2009-06-29 14:30:59.000000000 +0700
@@ -19,6 +19,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.