sl@0: // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32test\dll\t_ver1.cpp sl@0: // sl@0: // sl@0: sl@0: #include "t_ver.h" sl@0: sl@0: TInt Global = 10; sl@0: sl@0: EXPORT_C TInt Export1() sl@0: { sl@0: return 1; sl@0: } sl@0: sl@0: EXPORT_C TInt Export2() sl@0: { sl@0: return Global; sl@0: } sl@0: sl@0: EXPORT_C TInt Export3() sl@0: { sl@0: return ++Global; sl@0: } sl@0: sl@0: #ifdef __INCLUDE_EXPORT_4__ sl@0: EXPORT_C TInt Export4() sl@0: { sl@0: return Global--; sl@0: } sl@0: #endif sl@0: sl@0: #ifdef __INCLUDE_EXPORT_5__ sl@0: EXPORT_C TInt Export5(TInt a) sl@0: { sl@0: TInt r = Global; sl@0: Global += a; sl@0: return r; sl@0: } sl@0: #endif sl@0: sl@0: #ifdef __INCLUDE_EXPORT_6__ sl@0: EXPORT_C TInt Export6(TInt a) sl@0: { sl@0: TInt r = Global; sl@0: Global = a; sl@0: return r; sl@0: } sl@0: #endif sl@0: sl@0: sl@0: sl@0: