summaryrefslogtreecommitdiff
path: root/sal/systools
diff options
context:
space:
mode:
Diffstat (limited to 'sal/systools')
-rwxr-xr-xsal/systools/win32/onlineupdate/makefile.mk78
-rw-r--r--sal/systools/win32/onlineupdate/onlinecheck.cxx71
-rw-r--r--sal/systools/win32/onlineupdate/onlinecheck.dxp28
-rw-r--r--sal/systools/win32/uwinapi/makefile.mk86
-rw-r--r--sal/systools/win32/uwinapi/snprintf.c13
-rw-r--r--sal/systools/win32/uwinapi/sntprintf.c125
-rw-r--r--sal/systools/win32/uwinapi/snwprintf.c8
7 files changed, 0 insertions, 409 deletions
diff --git a/sal/systools/win32/onlineupdate/makefile.mk b/sal/systools/win32/onlineupdate/makefile.mk
deleted file mode 100755
index 027ddef11..000000000
--- a/sal/systools/win32/onlineupdate/makefile.mk
+++ /dev/null
@@ -1,78 +0,0 @@
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2000, 2010 Oracle and/or its affiliates.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# This file is part of OpenOffice.org.
-#
-# OpenOffice.org is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# only, as published by the Free Software Foundation.
-#
-# OpenOffice.org is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License version 3 for more details
-# (a copy is included in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU Lesser General Public License
-# version 3 along with OpenOffice.org. If not, see
-# <http://www.openoffice.org/license.html>
-# for a copy of the LGPLv3 License.
-#
-#*************************************************************************
-
-PRJ=..$/..$/..
-PRJNAME=sal
-TARGET=onlinecheck
-
-USE_DEFFILE=TRUE
-LIBTARGET=NO
-
-# --- Settings ----------------------------------
-
-.INCLUDE : settings.mk
-
-CFLAGS+= $(LFS_CFLAGS)
-CXXFLAGS+= $(LFS_CFLAGS)
-
-# --- Targets ----------------------------------
-
-.IF "$(GUI)"=="WNT"
-
-.IF "$(COMEX)"=="9"
-.IF "$(PSDK_HOME)"!=""
-# Since the 02/2003 PSDK the "new" linker is needed here.
-LINK=$(WRAPCMD) "$(PSDK_HOME)$/Bin$/Win64$/LINK.EXE"
-.ENDIF
-.ENDIF
-
-SLOFILES=\
- $(SLO)$/onlinecheck.obj
-
-
-SHL1TARGET=$(TARGET)
-SHL1IMPLIB=$(SHL1TARGET)
-SHL1DEF=$(MISC)/$(SHL1TARGET).def
-DEF1NAME=$(SHL1TARGET)
-DEF1EXPORTFILE=$(SHL1TARGET).dxp
-
-DEF1DEPN=\
- $(DEF1EXPORTFILE)\
- makefile.mk
-
-SHL1OBJS=$(SLOFILES)
-
-SHL1STDLIBS=\
- $(KERNEL32LIB)\
- $(LIBCMT)\
- $(WININETLIB)
-
-
-.ENDIF
-
-.INCLUDE : target.mk
-
diff --git a/sal/systools/win32/onlineupdate/onlinecheck.cxx b/sal/systools/win32/onlineupdate/onlinecheck.cxx
deleted file mode 100644
index dd09b7d83..000000000
--- a/sal/systools/win32/onlineupdate/onlinecheck.cxx
+++ /dev/null
@@ -1,71 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-// MARKER(update_precomp.py): autogen include statement, do not remove
-#include "precompiled_sal.hxx"
-#ifdef _MSC_VER
-#pragma warning( disable: 4668 )
-#endif
-
-#include <sal/types.h>
-#include <sal/macros.h>
-
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-#include <wininet.h>
-
-#ifdef UNICODE
-#define _UNICODE
-#endif
-#include <tchar.h>
-
-// #i71984
-extern "C" sal_Bool SAL_CALL hasInternetConnection()
-{
- DWORD dwFlags;
- TCHAR szConnectionName[1024];
-
-#ifndef __MINGW32__
- __try {
-#endif
- BOOL fIsConnected = InternetGetConnectedStateEx(
- &dwFlags,
- szConnectionName,
- SAL_N_ELEMENTS(szConnectionName),
- 0 );
-
- return fIsConnected ? sal_True : sal_False;
-
-#ifndef __MINGW32__
- } __except( EXCEPTION_EXECUTE_HANDLER ) {
- return sal_False;
- }
-#endif
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/systools/win32/onlineupdate/onlinecheck.dxp b/sal/systools/win32/onlineupdate/onlinecheck.dxp
deleted file mode 100644
index 7d3a3cac0..000000000
--- a/sal/systools/win32/onlineupdate/onlinecheck.dxp
+++ /dev/null
@@ -1,28 +0,0 @@
-;*************************************************************************
-;
-; DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-;
-; Copyright 2000, 2010 Oracle and/or its affiliates.
-;
-; OpenOffice.org - a multi-platform office productivity suite
-;
-; This file is part of OpenOffice.org.
-;
-; OpenOffice.org is free software: you can redistribute it and/or modify
-; it under the terms of the GNU Lesser General Public License version 3
-; only, as published by the Free Software Foundation.
-;
-; OpenOffice.org is distributed in the hope that it will be useful,
-; but WITHOUT ANY WARRANTY; without even the implied warranty of
-; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-; GNU Lesser General Public License version 3 for more details
-; (a copy is included in the LICENSE file that accompanied this code).
-;
-; You should have received a copy of the GNU Lesser General Public License
-; version 3 along with OpenOffice.org. If not, see
-; <http://www.openoffice.org/license.html>
-; for a copy of the LGPLv3 License.
-;
-;*************************************************************************
-
-hasInternetConnection
diff --git a/sal/systools/win32/uwinapi/makefile.mk b/sal/systools/win32/uwinapi/makefile.mk
deleted file mode 100644
index 0989b6121..000000000
--- a/sal/systools/win32/uwinapi/makefile.mk
+++ /dev/null
@@ -1,86 +0,0 @@
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2000, 2010 Oracle and/or its affiliates.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# This file is part of OpenOffice.org.
-#
-# OpenOffice.org is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# only, as published by the Free Software Foundation.
-#
-# OpenOffice.org is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License version 3 for more details
-# (a copy is included in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU Lesser General Public License
-# version 3 along with OpenOffice.org. If not, see
-# <http://www.openoffice.org/license.html>
-# for a copy of the LGPLv3 License.
-#
-#*************************************************************************
-
-PRJ=..$/..$/..
-PRJNAME=sal
-TARGET=uwinapi
-
-USE_DEFFILE=TRUE
-LIBTARGET=NO
-
-# --- Settings ----------------------------------
-
-.INCLUDE : settings.mk
-
-CFLAGS+= $(LFS_CFLAGS)
-CXXFLAGS+= $(LFS_CFLAGS)
-
-# --- Targets ----------------------------------
-
-
-.IF "$(GUI)"=="WNT"
-.IF "$(COM)"=="GCC"
-CFLAGSCXX+=-Wno-unused-parameter -Wno-return-type
-.ENDIF
-
-SLOFILES=\
- $(SLO)$/snprintf.obj\
- $(SLO)$/snwprintf.obj
-
-SHL1TARGET=$(TARGET)
-SHL1IMPLIB=$(SHL1TARGET)
-SHL1DEF=$(MISC)/$(SHL1TARGET).def
-DEF1NAME=$(SHL1TARGET)
-DEF1DEPN=\
- $(DEF1EXPORTFILE)\
- makefile.mk
-
-SHL1OBJS=$(SLOFILES)
-
-#No default libraries
-STDSHL=
-
-.IF "$(COM)"=="GCC"
-SHL1STDLIBS=\
- -lmingw32 \
- $(MINGW_LIBGCC)
-MINGWSSTDOBJ=
-MINGWSSTDENDOBJ=
-.ENDIF
-
-SHL1STDLIBS+=\
- $(KERNEL32LIB)\
- $(USER32LIB)\
- $(ADVAPI32LIB)\
- $(VERSIONLIB)\
- $(LIBCMT)\
- $(SHLWAPILIB)
-
-
-.ENDIF
-
-.INCLUDE : target.mk
diff --git a/sal/systools/win32/uwinapi/snprintf.c b/sal/systools/win32/uwinapi/snprintf.c
deleted file mode 100644
index 3c07e6863..000000000
--- a/sal/systools/win32/uwinapi/snprintf.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/* Not unicode */
-#undef _UNICODE
-
-/* Support MBCS and SBCS */
-
-#ifndef _MBCS
-#define _MBCS
-#endif
-
-#include "sntprintf.c"
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/systools/win32/uwinapi/sntprintf.c b/sal/systools/win32/uwinapi/sntprintf.c
deleted file mode 100644
index b5316f022..000000000
--- a/sal/systools/win32/uwinapi/sntprintf.c
+++ /dev/null
@@ -1,125 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#define _SNPRINTF_DLLIMPORT __declspec( dllexport )
-
-#include <stdarg.h>
-#include <stdio.h>
-
-#ifdef __MINGW32__
-/* MinGW-w64 doesn't have a _tcsinc() inline or library function */
-#define _MB_MAP_DIRECT
-#endif
-#include <tchar.h>
-#include <systools/win32/snprintf.h>
-
-#if defined(_MSC_VER) && (_MSC_VER >= 1400)
-#pragma warning(disable:4273) // inconsistent dll linkage
-#endif
-
-#if (defined(_MSC_VER) && (_MSC_VER < 1300)) || (defined(__MINGW32_VERSION) && ((__MINGW32_MAJOR_VERSION < 3)||((__MINGW32_MAJOR_VERSION == 3)&&(__MINGW32_MINOR_VERSION < 18))))
-
-/* The non-debug versions of _vscprintf/_scprintf are just calls
- to _vsprintf/_sprintf with string buffer pointer set to NULL,
- requires MSVCRT version 7.0 */
-#ifdef __MINGW32__
-static int __cdecl _vsctprintf( const TCHAR *format, va_list ap )
-#else
-static int __cdecl _vsctprintf( const _TXCHAR *format, va_list ap )
-#endif
-{
- FILE *fp = _tfopen( _T("NUL"), _T("wb") );
-
- if ( fp )
- {
- int retval = _vftprintf( fp, format, ap );
- fclose( fp );
-
- return retval;
- }
-
- return -1;
-}
-#endif
-
-/* This function retrieves the pointer to the last character of a buffer.
- That is the pointer to the last character of the buffer that fits
- completly into that buffer or the position of the terminating zero.
-
- buffer Pointer to a _TXCHAR buffer to be examined
- count size of the buffer to be examined
-
- return The pointer to the last character that fits into the buffer or
- NULL if count is zero or count is one and the first byte was a
- leading DBCS character
-*/
-
-static _TCHAR *GetLastBufferChar( _TCHAR *buffer, size_t count )
-{
- _TCHAR *last = NULL;
- _TCHAR *cur = buffer;
-
- while ( (size_t)(cur - buffer) < count )
- {
- last = cur;
-
- if ( !*last )
- break;
-
- cur = _tcsinc(last);
- }
-
- return last;
-}
-
-/* Implementation of snprintf following the ISO/IEC 9899:1999 (ISO C99) standard */
-
-_SNPRINTF_DLLIMPORT int __cdecl vsntprintf( _TCHAR *buffer, size_t count, const _TCHAR *format, va_list list )
-{
- int retval;
-
- /* First of all call the existing non POSIX standard function assuming
- the buffer size will be large enough */
-
- retval = _vsntprintf( buffer, count, format, list );
-
- if ( retval < 0 )
- {
- /* If the buffer wasn't large enough ensure that the buffer will be
- zero terminated */
-
- _TCHAR *last = GetLastBufferChar( buffer, count );
- if (last )
- *last = 0;
-
- /* Retrieve the count of characters that would have been written
- if the buffer were large enough */
-
- retval = _vsctprintf( format, list );
- }
- else if ( (size_t)retval == count && count )
- {
- /* If the buffer was large enough but not large enough for the trailing
- zero make the buffer zero terminated */
-
- _TCHAR *last = GetLastBufferChar( buffer, count );
- if (last )
- *last = 0;
- }
-
- return retval;
-}
-
-/* Implementation of snprintf following the ISO/IEC 9899:1999 (ISO C99) standard */
-
-_SNPRINTF_DLLIMPORT int __cdecl sntprintf( _TCHAR *buffer, size_t count, const _TCHAR *format, ... )
-{
- va_list list;
- int retval;
-
- va_start( list, format );
- retval = vsntprintf( buffer, count, format, list );
- va_end( list );
-
- return retval;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/systools/win32/uwinapi/snwprintf.c b/sal/systools/win32/uwinapi/snwprintf.c
deleted file mode 100644
index 9b159c9b2..000000000
--- a/sal/systools/win32/uwinapi/snwprintf.c
+++ /dev/null
@@ -1,8 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef _UNICODE
-#define _UNICODE
-#endif
-
-#include "sntprintf.c"
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */