[Libreoffice-commits] .: basegfx/util i18npool/source i18nutil/source l10ntools/source

François Tigeot ftigeot at kemper.freedesktop.org
Wed Apr 27 23:49:48 PDT 2011


 basegfx/util/makefile.mk                    |    3 ---
 i18npool/source/isolang/insys.cxx           |    2 +-
 i18npool/source/localedata/data/makefile.mk |   19 -------------------
 i18npool/source/localedata/localedata.cxx   |    7 -------
 i18npool/source/search/makefile.mk          |    2 +-
 i18nutil/source/utility/makefile.mk         |    4 ----
 l10ntools/source/export2.cxx                |    2 +-
 l10ntools/source/filter/merge/makefile.mk   |    2 +-
 l10ntools/source/gsicheck.cxx               |    2 +-
 l10ntools/source/gsiconv.cxx                |    2 +-
 l10ntools/source/help/HelpLinker.cxx        |    4 ----
 l10ntools/source/helpex.cxx                 |    2 +-
 l10ntools/source/helpmerge.cxx              |    8 ++++----
 l10ntools/source/lngex.cxx                  |    2 +-
 l10ntools/source/localize.cxx               |    6 +++---
 l10ntools/source/tagtest.cxx                |    3 ---
 l10ntools/source/xgfconv.cxx                |    2 +-
 17 files changed, 16 insertions(+), 56 deletions(-)

New commits:
commit cc2130dea730592666f9ca8b5366fa7281f3edef
Author: Francois Tigeot <ftigeot at wolfpond.org>
Date:   Thu Apr 28 08:48:54 2011 +0200

    Remove some OS/2 code

diff --git a/basegfx/util/makefile.mk b/basegfx/util/makefile.mk
index 4d5d92c..777f30a 100644
--- a/basegfx/util/makefile.mk
+++ b/basegfx/util/makefile.mk
@@ -52,9 +52,6 @@ LIB1FILES=\
     $(SLB)$/raster.lib
 
 SHL1TARGET= basegfx$(DLLPOSTFIX)
-.IF "$(GUI)" == "OS2"
-SHL1TARGET= bgfx
-.ENDIF
 SHL1IMPLIB= ibasegfx
 
 SHL1STDLIBS=\
diff --git a/i18npool/source/isolang/insys.cxx b/i18npool/source/isolang/insys.cxx
index 1ff1d8f..e86f8b7 100644
--- a/i18npool/source/isolang/insys.cxx
+++ b/i18npool/source/isolang/insys.cxx
@@ -33,7 +33,7 @@
 
 #include "inwnt.cxx"
 
-#elif defined( UNX ) || defined( OS2 )
+#elif defined( UNX )
 
 #include "inunx.cxx"
 
diff --git a/i18npool/source/localedata/data/makefile.mk b/i18npool/source/localedata/data/makefile.mk
index ddf597d..56a3674 100644
--- a/i18npool/source/localedata/data/makefile.mk
+++ b/i18npool/source/localedata/data/makefile.mk
@@ -29,9 +29,6 @@ PRJ=..$/..$/..
 
 PRJNAME=i18npool
 TARGET=localedata
-.IF "$(GUI)" == "OS2"
-TARGET=ld
-.ENDIF
 LIBTARGET=NO
 
 # Disable debugging on MSC compilers, due linker bug
@@ -60,10 +57,6 @@ LINK_LOCALEDATA_ES_LIB=-l$(SHL2TARGET)
 LINK_LOCALEDATA_EN_LIB=$(LB)$/i$(SHL1TARGET).lib
 LINK_LOCALEDATA_ES_LIB=$(LB)$/i$(SHL2TARGET).lib
 .ENDIF
-.ELIF "$(GUI)" == "OS2"
-LINK_LOCALEDATA_EN_LIB=$(LB)$/i$(SHL1TARGET).lib
-LINK_LOCALEDATA_ES_LIB=$(LB)$/i$(SHL2TARGET).lib
-.ELSE
 LINK_LOCALEDATA_EN_LIB=-l$(SHL1TARGET)
 LINK_LOCALEDATA_ES_LIB=-l$(SHL2TARGET)
 .ENDIF
@@ -72,9 +65,6 @@ LINK_LOCALEDATA_ES_LIB=-l$(SHL2TARGET)
 
 # English Locales
 SHL1TARGET=localedata_en
-.IF "$(GUI)" == "OS2"
-SHL1TARGET=ld_en
-.ENDIF
 SHL1IMPLIB=i$(SHL1TARGET)
 
 SHL1VERSIONMAP=localedata_en.map
@@ -102,9 +92,6 @@ LIB1OBJFILES=$(SHL1OBJS)
 
 # Spanish Locales
 SHL2TARGET=localedata_es
-.IF "$(GUI)" == "OS2"
-SHL2TARGET=ld_es
-.ENDIF
 SHL2IMPLIB=i$(SHL2TARGET)
 
 SHL2VERSIONMAP=localedata_es.map
@@ -140,9 +127,6 @@ LIB2OBJFILES=$(SHL2OBJS)
 
 # European Locales
 SHL3TARGET=localedata_euro
-.IF "$(GUI)" == "OS2"
-SHL3TARGET=ld_eur
-.ENDIF
 SHL3IMPLIB=i$(SHL3TARGET)
 
 SHL3VERSIONMAP=localedata_euro.map
@@ -229,9 +213,6 @@ LIB3OBJFILES=$(SHL3OBJS)
 
 # Other Locales
 SHL4TARGET=localedata_others
-.IF "$(GUI)" == "OS2"
-SHL4TARGET=ld_oth
-.ENDIF
 SHL4IMPLIB=i$(SHL4TARGET)
 
 SHL4VERSIONMAP=localedata_others.map
diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx
index 7120664..3301ec9 100644
--- a/i18npool/source/localedata/localedata.cxx
+++ b/i18npool/source/localedata/localedata.cxx
@@ -52,17 +52,10 @@ typedef sal_Unicode***  (SAL_CALL * MyFunc_Type2)( sal_Int16&, sal_Int16& );
 typedef sal_Unicode**** (SAL_CALL * MyFunc_Type3)( sal_Int16&, sal_Int16&, sal_Int16& );
 typedef sal_Unicode const * const * (SAL_CALL * MyFunc_FormatCode)( sal_Int16&, sal_Unicode const *&, sal_Unicode const *& );
 
-#ifdef OS2 // YD 8.3!!
-static const char *lcl_DATA_EN = "ld_en";
-static const char *lcl_DATA_ES = "ld_es";
-static const char *lcl_DATA_EURO = "ld_eur";
-static const char *lcl_DATA_OTHERS = "ld_oth";
-#else
 static const char *lcl_DATA_EN = "localedata_en";
 static const char *lcl_DATA_ES = "localedata_es";
 static const char *lcl_DATA_EURO = "localedata_euro";
 static const char *lcl_DATA_OTHERS = "localedata_others";
-#endif
 
 static const struct {
     const char* pLocale;
diff --git a/i18npool/source/search/makefile.mk b/i18npool/source/search/makefile.mk
index 372b32a..ba47813 100644
--- a/i18npool/source/search/makefile.mk
+++ b/i18npool/source/search/makefile.mk
@@ -55,7 +55,7 @@ EXCEPTIONSNOOPTFILES= \
 SHL1TARGET= $(TARGET)
 SHL1OBJS=	$(SLOFILES)
 
-.IF ("$(GUI)"=="UNX" || "$(COM)"=="GCC") && "$(GUI)"!="OS2"
+.IF ("$(GUI)"=="UNX" || "$(COM)"=="GCC")
 I18NREGEXPLIB=-li18nregexp$(COMID)
 .ELSE
 I18NREGEXPLIB=ii18nregexp.lib
diff --git a/i18nutil/source/utility/makefile.mk b/i18nutil/source/utility/makefile.mk
index b380843..adfddd9 100644
--- a/i18nutil/source/utility/makefile.mk
+++ b/i18nutil/source/utility/makefile.mk
@@ -46,11 +46,7 @@ SLOFILES= \
     $(SLO)$/oneToOneMapping.obj
 
 # Unicode utilities 
-.IF "$(GUI)" == "OS2"
-SHL1TARGET=		$(TARGET)
-.ELSE
 SHL1TARGET=		$(TARGET)$(COMID)
-.ENDIF
 SHL1IMPLIB=		i$(TARGET)
 
 DEF1DEPN=		$(MISC)$/$(SHL1TARGET).flt
diff --git a/l10ntools/source/export2.cxx b/l10ntools/source/export2.cxx
index c39d9f9..91a0681 100644
--- a/l10ntools/source/export2.cxx
+++ b/l10ntools/source/export2.cxx
@@ -690,7 +690,7 @@ DirEntry Export::GetTempFile()
     String sDecodedStr = INetURLObject::decode( strTmp , '%' , eMechanism );
     ByteString sTmp( sDecodedStr , RTL_TEXTENCODING_UTF8 );
 
-#if defined(WNT) || defined(OS2)
+#if defined(WNT)
     sTmp.SearchAndReplace("file:///","");
     sTmp.SearchAndReplaceAll('/','\\');
 #else
diff --git a/l10ntools/source/filter/merge/makefile.mk b/l10ntools/source/filter/merge/makefile.mk
index b66e5b2..8ef73de 100644
--- a/l10ntools/source/filter/merge/makefile.mk
+++ b/l10ntools/source/filter/merge/makefile.mk
@@ -65,7 +65,7 @@ JARCOMPRESS     =   TRUE
 
 .INCLUDE :  target.mk
 
-.IF "$(SOLAR_JAVA)" != "" || "$(GUI)"=="OS2"
+.IF "$(SOLAR_JAVA)" != ""
 ALLTAR : $(OWNCOPY)
 
 .IF "$(JARTARGETN)" != ""
diff --git a/l10ntools/source/gsicheck.cxx b/l10ntools/source/gsicheck.cxx
index 73127cf..7bb9916 100644
--- a/l10ntools/source/gsicheck.cxx
+++ b/l10ntools/source/gsicheck.cxx
@@ -775,7 +775,7 @@ void Help()
 }
 
 /*****************************************************************************/
-#if defined(UNX) || defined(OS2)
+#if defined(UNX)
 int main( int argc, char *argv[] )
 #else
 int _cdecl main( int argc, char *argv[] )
diff --git a/l10ntools/source/gsiconv.cxx b/l10ntools/source/gsiconv.cxx
index f25bf10..48a380f 100644
--- a/l10ntools/source/gsiconv.cxx
+++ b/l10ntools/source/gsiconv.cxx
@@ -199,7 +199,7 @@ void Help()
 }
 
 /*****************************************************************************/
-#if defined(UNX) || defined(OS2)
+#if defined(UNX)
 int main( int argc, char *argv[] )
 #else
 int _cdecl main( int argc, char *argv[] )
diff --git a/l10ntools/source/help/HelpLinker.cxx b/l10ntools/source/help/HelpLinker.cxx
index 4bcdef5..81a96ce 100644
--- a/l10ntools/source/help/HelpLinker.cxx
+++ b/l10ntools/source/help/HelpLinker.cxx
@@ -486,10 +486,8 @@ void HelpLinker::link() throw( HelpProcessingException )
 
     if( !bExtensionMode )
     {
-#ifndef OS2 // YD @TODO@ crashes libc runtime :-(
         std::cout << "Making " << outputFile.native_file_string() <<
             " from " << helpFiles.size() << " input files" << std::endl;
-#endif
     }
 
     // here we start our loop over the hzip files.
@@ -1060,9 +1058,7 @@ int main(int argc, char**argv)
         exit(1);
     }
     sal_uInt32 endtime = osl_getGlobalTimer();
-#ifndef OS2 // YD @TODO@ crashes libc runtime :-(
     std::cout << "time taken was " << (endtime-starttime)/1000.0 << " seconds" << std::endl;
-#endif
     return 0;
 }
 
diff --git a/l10ntools/source/helpex.cxx b/l10ntools/source/helpex.cxx
index 469fbf9..f252e24 100644
--- a/l10ntools/source/helpex.cxx
+++ b/l10ntools/source/helpex.cxx
@@ -201,7 +201,7 @@ void Help()
 /*****************************************************************************/
 #ifndef TESTDRIVER
 
-#if defined(UNX) || defined(OS2)
+#if defined(UNX)
 int main( int argc, char *argv[] )
 #else
 int _cdecl main( int argc, char *argv[] )
diff --git a/l10ntools/source/helpmerge.cxx b/l10ntools/source/helpmerge.cxx
index b75f875..6f3c212 100644
--- a/l10ntools/source/helpmerge.cxx
+++ b/l10ntools/source/helpmerge.cxx
@@ -470,7 +470,7 @@ bool HelpParser::MergeSingleFile( XMLFile* file , MergeDataFile& aMergeDataFile
 
     if( !Export::CopyFile( sTempFile , sTempFileCopy ) )
     {
-#if defined(UNX) || defined(OS2)
+#if defined(UNX)
         sleep( 3 );
 #else
         Sleep( 3 );
@@ -488,7 +488,7 @@ bool HelpParser::MergeSingleFile( XMLFile* file , MergeDataFile& aMergeDataFile
         remove( sTargetFile.GetBuffer() );
     }
     int rc;
-#if defined(UNX) || defined(OS2)
+#if defined(UNX)
     rc = rename( sTempFile.GetBuffer() , sTargetFile.GetBuffer() );
 #else
     rc = MoveFileEx( sTempFile.GetBuffer() , sTargetFile.GetBuffer(), MOVEFILE_REPLACE_EXISTING );
@@ -504,7 +504,7 @@ bool HelpParser::MergeSingleFile( XMLFile* file , MergeDataFile& aMergeDataFile
 //    if( aFS.GetSize() < 1 )
 //#endif
     {
-#if defined(UNX) || defined(OS2)
+#if defined(UNX)
         sleep( 3 );
 #else
         Sleep( 3 );
@@ -514,7 +514,7 @@ bool HelpParser::MergeSingleFile( XMLFile* file , MergeDataFile& aMergeDataFile
         {
             remove( sTargetFile.GetBuffer() );
         }
-#if defined(UNX) || defined(OS2)
+#if defined(UNX)
         rc = rename( sTempFileCopy.GetBuffer() , sTargetFile.GetBuffer() );
 #else
         rc = MoveFileEx( sTempFileCopy.GetBuffer() , sTargetFile.GetBuffer() , MOVEFILE_REPLACE_EXISTING );
diff --git a/l10ntools/source/lngex.cxx b/l10ntools/source/lngex.cxx
index b7b05a2..291e8d1 100644
--- a/l10ntools/source/lngex.cxx
+++ b/l10ntools/source/lngex.cxx
@@ -171,7 +171,7 @@ void Help()
 }
 
 /*****************************************************************************/
-#if defined(UNX) || defined(OS2)
+#if defined(UNX)
 int main( int argc, char *argv[] )
 #else
 int _cdecl main( int argc, char *argv[] )
diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx
index 5aaaf19..64e5359 100644
--- a/l10ntools/source/localize.cxx
+++ b/l10ntools/source/localize.cxx
@@ -346,7 +346,7 @@ void SourceTreeLocalizer::WorkOnFile(
             ByteString sTempFile( aTemp.GetFull(), RTL_TEXTENCODING_ASCII_US );
 
             ByteString sDel;
-#if defined(WNT) || defined(OS2)
+#if defined(WNT)
             sDel=ByteString("\\");
 #else
             sDel=ByteString("/");
@@ -355,7 +355,7 @@ void SourceTreeLocalizer::WorkOnFile(
             ByteString sPath2( Export::GetEnv("INPATH") );
             ByteString sPath3( "bin" );
             ByteString sExecutable( sPath1 );
-#if defined(WNT) || defined(OS2)
+#if defined(WNT)
             sExecutable.SearchAndReplaceAll( "/", sDel );
 #endif
             sExecutable += sDel ;
@@ -876,7 +876,7 @@ sal_Bool CheckLanguages( ByteString &rLanguages )
 }
 
 /*****************************************************************************/
-#if defined(UNX) || defined(OS2)
+#if defined(UNX)
 int main( int argc, char *argv[] )
 #else
 int _cdecl main( int argc, char *argv[] )
diff --git a/l10ntools/source/tagtest.cxx b/l10ntools/source/tagtest.cxx
index 02527d4..f508380 100644
--- a/l10ntools/source/tagtest.cxx
+++ b/l10ntools/source/tagtest.cxx
@@ -953,7 +953,6 @@ void TokenParser::Paragraph()
                 Paragraph();
             }
             break;
-        case TAG_OS2:
         case TAG_WIN:
         case TAG_UNIX:
         case TAG_MAC: //...
@@ -1016,7 +1015,6 @@ void TokenParser::PfCase()
                 CaseEnd();
             }
             break;
-        case TAG_OS2:
         case TAG_WIN:
         case TAG_UNIX:
         case TAG_MAC: //First (PfBegin)
@@ -1035,7 +1033,6 @@ void TokenParser::PfCaseBegin()
 {
     switch ( aTag.nId )
     {
-        case TAG_OS2:
         case TAG_WIN:
         case TAG_UNIX:
         case TAG_MAC:
diff --git a/l10ntools/source/xgfconv.cxx b/l10ntools/source/xgfconv.cxx
index 4645ba7..59eadd8 100644
--- a/l10ntools/source/xgfconv.cxx
+++ b/l10ntools/source/xgfconv.cxx
@@ -8,7 +8,7 @@
 
 // MARKER(update_precomp.py): autogen include statement, do not remove
 #include "precompiled_l10ntools.hxx"
-#if defined(UNX) || defined(OS2)
+#if defined(UNX)
 int main( int argc, char *argv[] )
 #else
 int _cdecl main( int argc, char *argv[] )


More information about the Libreoffice-commits mailing list