summaryrefslogtreecommitdiff
path: root/salhelper/test/Symbols
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-01-28 20:57:40 +0100
committerMichael Stahl <mstahl@redhat.com>2012-01-28 20:57:40 +0100
commit2716f7dce26f16a2b677c178aa7d01cea096ae47 (patch)
tree9e9f67205cd5b72f1031721273e1534a3a1e5b0f /salhelper/test/Symbols
parent10ac9e750447fd57e3cef7993b0ad6c6538d6269 (diff)
replace obsolete "master" branch with README that points at new repoHEADmaster-deletedmaster
Diffstat (limited to 'salhelper/test/Symbols')
-rw-r--r--salhelper/test/Symbols/loader.cxx41
-rw-r--r--salhelper/test/Symbols/makefile.mk95
-rw-r--r--salhelper/test/Symbols/samplelib.cxx39
-rw-r--r--salhelper/test/Symbols/samplelib.hxx25
4 files changed, 0 insertions, 200 deletions
diff --git a/salhelper/test/Symbols/loader.cxx b/salhelper/test/Symbols/loader.cxx
deleted file mode 100644
index 900b09725..000000000
--- a/salhelper/test/Symbols/loader.cxx
+++ /dev/null
@@ -1,41 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-
-#include <salhelper/dynload.hxx>
-#include <rtl/ustring>
-#include <stdio.h>
-#include "samplelib.hxx"
-
-
-using namespace salhelper;
-
-using ::rtl::OUString;
-
-
-class SampleLibLoader
- : public ::salhelper::ODynamicLoader<SampleLib_Api>
-{
-public:
- SampleLibLoader():
- ::salhelper::ODynamicLoader<SampleLib_Api>
- (::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SAL_MODULENAME( "samplelib") ) ),
- ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(SAMPLELIB_INIT_FUNCTION_NAME) ))
- {}
-
-};
-
-
-int main( int argc, char *argv[ ], char *envp[ ] )
-{
- SampleLibLoader Loader;
- SampleLibLoader Loader2;
- Loader= Loader2;
- SampleLib_Api *pApi= Loader.getApi();
-
- sal_Int32 retint= pApi->funcA( 10);
- double retdouble= pApi->funcB( 3.14);
-
-
- return 0;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/salhelper/test/Symbols/makefile.mk b/salhelper/test/Symbols/makefile.mk
deleted file mode 100644
index e91066670..000000000
--- a/salhelper/test/Symbols/makefile.mk
+++ /dev/null
@@ -1,95 +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=salhelper
-TARGET=dynloader
-TARGET1=samplelib
-TARGETTYPE=CUI
-LIBTARGET=NO
-
-NO_BSYMBOLIC= TRUE
-ENABLE_EXCEPTIONS=TRUE
-
-# --- Settings ---
-
-.INCLUDE : settings.mk
-
-# --- Files ---
-
-#RTTI on
-.IF "$(OS)" == "WNT"
-CFLAGS+= -GR
-.ENDIF
-
-
-#---------------------------------------------------------------------------
-# Build the test library which is loaded by the
-# RealDynamicLoader
-
-SLOFILES= $(SLO)$/samplelib.obj
-
-LIB1TARGET= $(SLB)$/$(TARGET1).lib
-LIB1OBJFILES= $(SLOFILES)
-
-
-SHL1TARGET= $(TARGET1)
-
-SHL1STDLIBS= \
- $(SALLIB)
-
-SHL1DEPN=
-SHL1IMPLIB= i$(TARGET1)
-SHL1LIBS= $(SLB)$/$(TARGET1).lib
-SHL1DEF= $(MISC)$/$(SHL1TARGET).def
-
-DEF1NAME= $(SHL1TARGET)
-DEFLIB1NAME= $(TARGET1)
-DEF1DEPN= $(MISC)$/$(SHL1TARGET).flt
-
-# ------------------------------------------------------------------------------
-
-OBJFILES= $(OBJ)$/loader.obj
-
-APP1TARGET= $(TARGET)
-APP1OBJS= $(OBJFILES)
-
-APP1STDLIBS= \
- $(SALHELPERLIB) \
- $(SALLIB)
-
-APP1DEF= $(MISC)\$(APP1TARGET).def
-
-# --- Targets ---
-
-.INCLUDE : target.mk
-
-$(MISC)$/$(SHL1TARGET).flt: makefile.mk
- @echo ------------------------------
- @echo Making: $@
- @echo __CT>>$@
diff --git a/salhelper/test/Symbols/samplelib.cxx b/salhelper/test/Symbols/samplelib.cxx
deleted file mode 100644
index edc76fa5a..000000000
--- a/salhelper/test/Symbols/samplelib.cxx
+++ /dev/null
@@ -1,39 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#include "samplelib.hxx"
-#include <sal/types.h>
-/*
-
-
-*/
-
-extern "C"
-SampleLib_Api* SAL_CALL initSampleLibApi(void)
-{
- static SampleLib_Api aApi= {0,0};
- if (!aApi.funcA)
- {
- aApi.funcA= &funcA;
- aApi.funcB= &funcB;
- return (&aApi);
- }
- else
- {
- return (&aApi);
- }
-
-}
-
-
-sal_Int32 SAL_CALL funcA( sal_Int32 a)
-{
- return a;
-}
-
-
-double SAL_CALL funcB( double a)
-{
- return a;
-}
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/salhelper/test/Symbols/samplelib.hxx b/salhelper/test/Symbols/samplelib.hxx
deleted file mode 100644
index fbe96c372..000000000
--- a/salhelper/test/Symbols/samplelib.hxx
+++ /dev/null
@@ -1,25 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef __SAMPLELIB_HXX_
-#define __SAMPLELIB_HXX_
-
-#include <sal/types.h>
-
-struct SampleLib_Api
-{
- sal_Int32 (SAL_CALL *funcA)( sal_Int32 );
- double (SAL_CALL *funcB)( double );
-};
-
-
-typedef SampleLib_Api* (SAL_CALL *InitSampleLib_Api)(void);
-
-#define SAMPLELIB_INIT_FUNCTION_NAME "initSampleLibApi"
-
-
-sal_Int32 SAL_CALL funcA( sal_Int32 a);
-double SAL_CALL funcB( double a);
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */