From: cascade Date: Tue, 5 Sep 2006 21:46:34 +0000 (+0000) Subject: OCC12146 New cxx, pc X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=60f424d0ecf50cea2935f22c18e948ed231da92b;p=occt-wok.git OCC12146 New cxx, pc --- diff --git a/src/WOKNT/WOKNT_Shell_1.cxx b/src/WOKNT/WOKNT_Shell_1.cxx index b539cdf..5a82827 100755 --- a/src/WOKNT/WOKNT_Shell_1.cxx +++ b/src/WOKNT/WOKNT_Shell_1.cxx @@ -108,10 +108,12 @@ extern "C" __declspec( dllexport ) int __fastcall __TKWOK_INIT__ ( class _regExpInit { // provides initialisation in case of UNICODE environment public: - + _regExpInit () { - for ( int i = ( 1 << CHAR_BIT ); i < ( 1 << BYTEWIDTH ); ++i ) + int i; + + for ( i = ( 1 << CHAR_BIT ); i < ( 1 << BYTEWIDTH ); ++i ) caseTrans[ i ] = ( _TUCHAR )i; diff --git a/src/WOKNT/WOKNT_chmod.cxx b/src/WOKNT/WOKNT_chmod.cxx index 13c8a3c..0cfd642 100755 --- a/src/WOKNT/WOKNT_chmod.cxx +++ b/src/WOKNT/WOKNT_chmod.cxx @@ -44,7 +44,7 @@ static BOOL _chmod_func ( LPTSTR, BOOL, void* ); static int nFiles; -extern "C" __declspec( dllexport ) wokCHMOD ( int, char** ); +extern "C" __declspec( dllexport ) int wokCHMOD ( int, char** ); int wokCHMOD ( int argc, char** argv ) {