You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(80) |
Aug
(36) |
Sep
(120) |
Oct
(89) |
Nov
(57) |
Dec
(22) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(308) |
Feb
(66) |
Mar
(88) |
Apr
(54) |
May
(43) |
Jun
(40) |
Jul
(33) |
Aug
(1) |
Sep
(7) |
Oct
(65) |
Nov
(19) |
Dec
(10) |
| 2007 |
Jan
(5) |
Feb
(8) |
Mar
(7) |
Apr
|
May
(7) |
Jun
|
Jul
(5) |
Aug
(3) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2008 |
Jan
|
Feb
|
Mar
(5) |
Apr
|
May
(5) |
Jun
(21) |
Jul
(27) |
Aug
(6) |
Sep
|
Oct
(1) |
Nov
(5) |
Dec
(10) |
| 2009 |
Jan
(67) |
Feb
(3) |
Mar
(26) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
(2) |
Sep
(10) |
Oct
(18) |
Nov
(20) |
Dec
(3) |
| 2010 |
Jan
|
Feb
|
Mar
(1) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(9) |
Oct
(3) |
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(7) |
Jul
|
Aug
|
Sep
(39) |
Oct
(43) |
Nov
(7) |
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(7) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <ric...@us...> - 2009-10-11 05:31:08
|
Revision: 1041
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1041&view=rev
Author: rich_sposato
Date: 2009-10-11 05:31:02 +0000 (Sun, 11 Oct 2009)
Log Message:
-----------
Project was missing some header files in include directory.
Modified Paths:
--------------
trunk/src/Library.vcproj
Modified: trunk/src/Library.vcproj
===================================================================
--- trunk/src/Library.vcproj 2009-10-11 05:26:46 UTC (rev 1040)
+++ trunk/src/Library.vcproj 2009-10-11 05:31:02 UTC (rev 1041)
@@ -160,6 +160,18 @@
>
</File>
<File
+ RelativePath="..\include\loki\CachedFactory.h"
+ >
+ </File>
+ <File
+ RelativePath="..\include\loki\Checker.h"
+ >
+ </File>
+ <File
+ RelativePath="..\include\loki\CheckReturn.h"
+ >
+ </File>
+ <File
RelativePath="..\include\loki\ConstPolicy.h"
>
</File>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-10-11 05:26:52
|
Revision: 1040
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1040&view=rev
Author: rich_sposato
Date: 2009-10-11 05:26:46 +0000 (Sun, 11 Oct 2009)
Log Message:
-----------
Minor changes to project settings.
Modified Paths:
--------------
trunk/Loki.cbp
Modified: trunk/Loki.cbp
===================================================================
--- trunk/Loki.cbp 2009-10-10 23:56:26 UTC (rev 1039)
+++ trunk/Loki.cbp 2009-10-11 05:26:46 UTC (rev 1040)
@@ -6,7 +6,7 @@
<Option compiler="cygwin" />
<Build>
<Target title="Debug_GCC">
- <Option output=".\lib\GCC\Loki_D" prefix_auto="0" extension_auto="1" />
+ <Option output=".\lib\GCC\Loki_D.a" prefix_auto="0" extension_auto="0" />
<Option working_dir="" />
<Option object_output="obj\Debug_GCC\" />
<Option type="2" />
@@ -21,7 +21,7 @@
</Compiler>
</Target>
<Target title="Release_GCC">
- <Option output=".\lib\GCC\Loki" prefix_auto="0" extension_auto="1" />
+ <Option output=".\lib\GCC\Loki.a" prefix_auto="0" extension_auto="0" />
<Option working_dir="" />
<Option object_output="obj\Release_GCC\" />
<Option type="2" />
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-10-10 23:56:35
|
Revision: 1039
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1039&view=rev
Author: rich_sposato
Date: 2009-10-10 23:56:26 +0000 (Sat, 10 Oct 2009)
Log Message:
-----------
Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
Modified Paths:
--------------
trunk/test/CheckReturn/CheckReturn.cbp
trunk/test/SmartPtr/SmartPtr.cbp
Modified: trunk/test/CheckReturn/CheckReturn.cbp
===================================================================
--- trunk/test/CheckReturn/CheckReturn.cbp 2009-10-10 23:54:57 UTC (rev 1038)
+++ trunk/test/CheckReturn/CheckReturn.cbp 2009-10-10 23:56:26 UTC (rev 1039)
@@ -5,9 +5,35 @@
<Option title="CheckReturn" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
+ <Target title="Debug_GCC">
+ <Option output="obj\Debug_GCC\CheckReturn" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="obj\Release_GCC\CheckReturn" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ </Target>
+ <Target title="Debug_Cygwin">
<Option output="obj\Debug\CheckReturn" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Option object_output="obj\Debug_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
@@ -17,9 +43,9 @@
<Add directory="..\..\include" />
</Compiler>
</Target>
- <Target title="Release">
+ <Target title="Release_Cygwin">
<Option output="obj\Release\CheckReturn" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
Modified: trunk/test/SmartPtr/SmartPtr.cbp
===================================================================
--- trunk/test/SmartPtr/SmartPtr.cbp 2009-10-10 23:54:57 UTC (rev 1038)
+++ trunk/test/SmartPtr/SmartPtr.cbp 2009-10-10 23:56:26 UTC (rev 1039)
@@ -3,12 +3,44 @@
<FileVersion major="1" minor="6" />
<Project>
<Option title="SmartPtr" />
- <Option compiler="cygwin" />
+ <Option compiler="gcc" />
<Build>
- <Target title="Debug">
- <Option output="bin\Debug\SmartPtr" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="bin\Debug_GCC\SmartPtr" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki_D.a" />
+ </Linker>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="bin\Release_GCC\SmartPtr" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki.a" />
+ </Linker>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="bin\Debug_Cygwin\SmartPtr" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,12 +49,12 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki_D.a" />
+ <Add library="..\..\lib\Cygwin\Loki_D.a" />
</Linker>
</Target>
- <Target title="Release">
- <Option output="bin\Release\SmartPtr" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="bin\Release_Cygwin\SmartPtr" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
@@ -34,7 +66,7 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki.a" />
+ <Add library="..\..\lib\Cygwin\Loki.a" />
</Linker>
</Target>
</Build>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-10-10 23:55:04
|
Revision: 1038
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1038&view=rev
Author: rich_sposato
Date: 2009-10-10 23:54:57 +0000 (Sat, 10 Oct 2009)
Log Message:
-----------
Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
Modified Paths:
--------------
trunk/test/Checker/Checker.cbp
trunk/test/Factory/Factory.cbp
trunk/test/LockingPtr/LockingPtr.cbp
Modified: trunk/test/Checker/Checker.cbp
===================================================================
--- trunk/test/Checker/Checker.cbp 2009-10-10 23:53:07 UTC (rev 1037)
+++ trunk/test/Checker/Checker.cbp 2009-10-10 23:54:57 UTC (rev 1038)
@@ -5,10 +5,36 @@
<Option title="Checker" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="obj\Debug\Checker" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="obj\Debug_GCC\Checker" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="obj\Release_GCC\Checker" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="obj\Debug_Cygwin\Checker" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,9 +43,9 @@
<Add directory="..\..\include" />
</Compiler>
</Target>
- <Target title="Release">
- <Option output="obj\Release\Checker" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="obj\Release_Cygwin\Checker" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
Modified: trunk/test/Factory/Factory.cbp
===================================================================
--- trunk/test/Factory/Factory.cbp 2009-10-10 23:53:07 UTC (rev 1037)
+++ trunk/test/Factory/Factory.cbp 2009-10-10 23:54:57 UTC (rev 1038)
@@ -5,10 +5,42 @@
<Option title="Factory" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="obj\Debug\Factory" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="obj\Debug_GCC\Factory" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki_D.a" />
+ </Linker>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="obj\Release_GCC\Factory" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki.a" />
+ </Linker>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="obj\Debug_Cygwin\Factory" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,12 +49,12 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki_D.a" />
+ <Add library="..\..\lib\Cygwin\Loki_D.a" />
</Linker>
</Target>
- <Target title="Release">
- <Option output="obj\Release\Factory" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="obj\Release_Cygwin\Factory" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
@@ -34,7 +66,7 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki.a" />
+ <Add library="..\..\lib\Cygwin\Loki.a" />
</Linker>
</Target>
</Build>
Modified: trunk/test/LockingPtr/LockingPtr.cbp
===================================================================
--- trunk/test/LockingPtr/LockingPtr.cbp 2009-10-10 23:53:07 UTC (rev 1037)
+++ trunk/test/LockingPtr/LockingPtr.cbp 2009-10-10 23:54:57 UTC (rev 1038)
@@ -5,10 +5,42 @@
<Option title="LockingPtr" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="obj\Debug\LockingPtr" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="obj\Debug_GCC\LockingPtr" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki_D.a" />
+ </Linker>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="obj\Release_GCC\LockingPtr" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki.a" />
+ </Linker>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="obj\Debug_Cygwin\LockingPtr" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,12 +49,12 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki_D.a" />
+ <Add library="..\..\lib\Cygwin\Loki_D.a" />
</Linker>
</Target>
- <Target title="Release">
- <Option output="obj\Release\LockingPtr" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="obj\Release_Cygwin\LockingPtr" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
@@ -34,7 +66,7 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki.a" />
+ <Add library="..\..\lib\Cygwin\Loki.a" />
</Linker>
</Target>
</Build>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-10-10 23:53:16
|
Revision: 1037
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1037&view=rev
Author: rich_sposato
Date: 2009-10-10 23:53:07 +0000 (Sat, 10 Oct 2009)
Log Message:
-----------
Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
Modified Paths:
--------------
trunk/test/DeletableSingleton/DeletableSingleton.cbp
trunk/test/SmallObj/DefaultAlloc.cbp
trunk/test/SmallObj/SmallObj.cbp
Modified: trunk/test/DeletableSingleton/DeletableSingleton.cbp
===================================================================
--- trunk/test/DeletableSingleton/DeletableSingleton.cbp 2009-10-10 23:51:27 UTC (rev 1036)
+++ trunk/test/DeletableSingleton/DeletableSingleton.cbp 2009-10-10 23:53:07 UTC (rev 1037)
@@ -5,10 +5,36 @@
<Option title="DeletableSingleton" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="obj\Debug\DeletableSingleton" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="obj\Debug_GCC\DeletableSingleton" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include" />
+ <Add directory="..\..\include\loki" />
+ </Compiler>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="obj\Release_GCC\DeletableSingleton" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="obj\Debug_Cygwin\DeletableSingleton" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,9 +43,9 @@
<Add directory="..\..\include\loki" />
</Compiler>
</Target>
- <Target title="Release">
- <Option output="obj\Release\DeletableSingleton" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="obj\Release_Cygwin\DeletableSingleton" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
Modified: trunk/test/SmallObj/DefaultAlloc.cbp
===================================================================
--- trunk/test/SmallObj/DefaultAlloc.cbp 2009-10-10 23:51:27 UTC (rev 1036)
+++ trunk/test/SmallObj/DefaultAlloc.cbp 2009-10-10 23:53:07 UTC (rev 1037)
@@ -5,10 +5,36 @@
<Option title="DefaultAlloc" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="bin\Debug\DefaultAlloc" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="bin\Debug_GCC\DefaultAlloc" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include" />
+ <Add directory="..\..\include\loki" />
+ </Compiler>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="bin\Release_GCC\DefaultAlloc" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="bin\Debug_Cygwin\DefaultAlloc" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,9 +43,9 @@
<Add directory="..\..\include\loki" />
</Compiler>
</Target>
- <Target title="Release">
- <Option output="bin\Release\DefaultAlloc" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="bin\Release_Cygwin\DefaultAlloc" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
Modified: trunk/test/SmallObj/SmallObj.cbp
===================================================================
--- trunk/test/SmallObj/SmallObj.cbp 2009-10-10 23:51:27 UTC (rev 1036)
+++ trunk/test/SmallObj/SmallObj.cbp 2009-10-10 23:53:07 UTC (rev 1037)
@@ -5,10 +5,42 @@
<Option title="SmallObj" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="bin\Debug\SmallObj" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="bin\Debug_GCC\SmallObj" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki_D.a" />
+ </Linker>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="bin\Release_GCC\SmallObj" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include" />
+ <Add directory="..\..\include\loki" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki.a" />
+ </Linker>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="bin\Debug_Cygwin\SmallObj" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,12 +49,12 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki_D.a" />
+ <Add library="..\..\lib\Cygwin\Loki_D.a" />
</Linker>
</Target>
- <Target title="Release">
- <Option output="bin\Release\SmallObj" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="bin\Release_Cygwin\SmallObj" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
@@ -34,7 +66,7 @@
<Add directory="..\..\include\loki" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki.a" />
+ <Add library="..\..\lib\Cygwin\Loki.a" />
</Linker>
</Target>
</Build>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-10-10 23:51:35
|
Revision: 1036
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1036&view=rev
Author: rich_sposato
Date: 2009-10-10 23:51:27 +0000 (Sat, 10 Oct 2009)
Log Message:
-----------
Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
Modified Paths:
--------------
trunk/test/SafeBits/SafeBits.cbp
trunk/test/Singleton/Singleton.cbp
trunk/test/Visitor/Visitor.cbp
Modified: trunk/test/SafeBits/SafeBits.cbp
===================================================================
--- trunk/test/SafeBits/SafeBits.cbp 2009-10-10 23:49:40 UTC (rev 1035)
+++ trunk/test/SafeBits/SafeBits.cbp 2009-10-10 23:51:27 UTC (rev 1036)
@@ -6,10 +6,32 @@
<Option pch_mode="2" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="obj\Debug\SafeBits" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="obj\Debug_GCC\SafeBits" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-Wall" />
+ <Add option="-g" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="obj\Release_GCC\SafeBits" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-Os" />
+ <Add option="-Wall" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="obj\Debug_Cygwin\SafeBits" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-Wall" />
@@ -17,9 +39,9 @@
<Add directory="..\..\include" />
</Compiler>
</Target>
- <Target title="Release">
- <Option output="obj\Release\SafeBits" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="obj\Release_Cygwin\SafeBits" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
Modified: trunk/test/Singleton/Singleton.cbp
===================================================================
--- trunk/test/Singleton/Singleton.cbp 2009-10-10 23:49:40 UTC (rev 1035)
+++ trunk/test/Singleton/Singleton.cbp 2009-10-10 23:51:27 UTC (rev 1036)
@@ -5,10 +5,42 @@
<Option title="Singleton" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="bin\Debug\Singleton" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="bin\Debug_GCC\Singleton" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki_D.a" />
+ </Linker>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="bin\Release_GCC\Singleton" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki.a" />
+ </Linker>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="bin\Debug_Cygwin\Singleton" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,12 +49,12 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki_D.a" />
+ <Add library="..\..\lib\Cygwin\Loki_D.a" />
</Linker>
</Target>
- <Target title="Release">
- <Option output="bin\Release\Singleton" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="bin\Release_Cygwin\Singleton" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
@@ -34,7 +66,7 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki.a" />
+ <Add library="..\..\lib\Cygwin\Loki.a" />
</Linker>
</Target>
</Build>
Modified: trunk/test/Visitor/Visitor.cbp
===================================================================
--- trunk/test/Visitor/Visitor.cbp 2009-10-10 23:49:40 UTC (rev 1035)
+++ trunk/test/Visitor/Visitor.cbp 2009-10-10 23:51:27 UTC (rev 1036)
@@ -5,10 +5,36 @@
<Option title="Visitor" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="bin\Debug\Visitor" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="bin\Debug_GCC\Visitor" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="bin\Release_GCC\Visitor" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="bin\Debug_Cygwin\Visitor" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,9 +43,9 @@
<Add directory="..\..\include" />
</Compiler>
</Target>
- <Target title="Release">
- <Option output="bin\Release\Visitor" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="bin\Release_Cygwin\Visitor" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-10-10 23:49:45
|
Revision: 1035
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1035&view=rev
Author: rich_sposato
Date: 2009-10-10 23:49:40 +0000 (Sat, 10 Oct 2009)
Log Message:
-----------
Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
Modified Paths:
--------------
trunk/test/CachedFactory/CachedFactory.cbp
trunk/test/OrderedStatic/OrderedStatic.cbp
trunk/test/ScopeGuard/ScopeGuard.cbp
Modified: trunk/test/CachedFactory/CachedFactory.cbp
===================================================================
--- trunk/test/CachedFactory/CachedFactory.cbp 2009-10-10 23:47:49 UTC (rev 1034)
+++ trunk/test/CachedFactory/CachedFactory.cbp 2009-10-10 23:49:40 UTC (rev 1035)
@@ -5,10 +5,42 @@
<Option title="CachedFactory" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="obj\Debug\CachedFactory" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="obj\Debug_GCC\CachedFactory" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki_D.a" />
+ </Linker>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="obj\Release_GCC\CachedFactory" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki.a" />
+ </Linker>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="obj\Debug_Cygwin\CachedFactory" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,12 +49,12 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki_D.a" />
+ <Add library="..\..\lib\Cygwin\Loki_D.a" />
</Linker>
</Target>
- <Target title="Release">
- <Option output="obj\Release\CachedFactory" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="obj\Release_Cygwin\CachedFactory" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
@@ -34,7 +66,7 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki.a" />
+ <Add library="..\..\lib\Cygwin\Loki.a" />
</Linker>
</Target>
</Build>
Modified: trunk/test/OrderedStatic/OrderedStatic.cbp
===================================================================
--- trunk/test/OrderedStatic/OrderedStatic.cbp 2009-10-10 23:47:49 UTC (rev 1034)
+++ trunk/test/OrderedStatic/OrderedStatic.cbp 2009-10-10 23:49:40 UTC (rev 1035)
@@ -5,10 +5,42 @@
<Option title="OrderedStatic" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="bin\Debug\OrderedStatic" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="bin\Debug_GCC\OrderedStatic" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki_D.a" />
+ </Linker>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="bin\Release_GCC\OrderedStatic" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki.a" />
+ </Linker>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="bin\Debug_Cygwin\OrderedStatic" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,12 +49,12 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki_D.a" />
+ <Add library="..\..\lib\Cygwin\Loki_D.a" />
</Linker>
</Target>
- <Target title="Release">
- <Option output="bin\Release\OrderedStatic" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="bin\Release_Cygwin\OrderedStatic" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
@@ -34,7 +66,7 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki.a" />
+ <Add library="..\..\lib\Cygwin\Loki.a" />
</Linker>
</Target>
</Build>
Modified: trunk/test/ScopeGuard/ScopeGuard.cbp
===================================================================
--- trunk/test/ScopeGuard/ScopeGuard.cbp 2009-10-10 23:47:49 UTC (rev 1034)
+++ trunk/test/ScopeGuard/ScopeGuard.cbp 2009-10-10 23:49:40 UTC (rev 1035)
@@ -5,10 +5,36 @@
<Option title="ScopeGuard" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="bin\Debug\ScopeGuard" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="bin\Debug_GCC\ScopeGuard" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="bin\Release_GCC\ScopeGuard" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="bin\Debug_Cygwin\ScopeGuard" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,9 +43,9 @@
<Add directory="..\..\include" />
</Compiler>
</Target>
- <Target title="Release">
- <Option output="bin\Release\ScopeGuard" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="bin\Release_Cygwin\ScopeGuard" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-10-10 23:48:03
|
Revision: 1034
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1034&view=rev
Author: rich_sposato
Date: 2009-10-10 23:47:49 +0000 (Sat, 10 Oct 2009)
Log Message:
-----------
Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
Modified Paths:
--------------
trunk/test/Function/Function.cbp
trunk/test/LevelMutex/LevelMutex.cbp
trunk/test/SafeFormat/SafeFormat.cbp
Modified: trunk/test/Function/Function.cbp
===================================================================
--- trunk/test/Function/Function.cbp 2009-10-10 23:45:58 UTC (rev 1033)
+++ trunk/test/Function/Function.cbp 2009-10-10 23:47:49 UTC (rev 1034)
@@ -5,10 +5,36 @@
<Option title="Function" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="obj\Debug\Function" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="obj\Debug_GCC\Function" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="obj\Release_GCC\Function" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include" />
+ <Add directory="..\..\include\loki" />
+ </Compiler>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="obj\Debug_Cygwin\Function" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,9 +43,9 @@
<Add directory="..\..\include" />
</Compiler>
</Target>
- <Target title="Release">
- <Option output="obj\Release\Function" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="obj\Release_Cygwin\Function" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
Modified: trunk/test/LevelMutex/LevelMutex.cbp
===================================================================
--- trunk/test/LevelMutex/LevelMutex.cbp 2009-10-10 23:45:58 UTC (rev 1033)
+++ trunk/test/LevelMutex/LevelMutex.cbp 2009-10-10 23:47:49 UTC (rev 1034)
@@ -5,10 +5,44 @@
<Option title="LevelMutex" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="obj\Debug\LevelMutex" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="obj\Debug_GCC\LevelMutex" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include" />
+ <Add directory="..\..\include\loki" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki_D.a" />
+ <Add library="..\..\..\PThreads\lib\pthreadVC2.lib" />
+ </Linker>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="obj\Release_GCC\LevelMutex" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include" />
+ <Add directory="..\..\include\loki" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki.a" />
+ <Add library="..\..\..\PThreads\lib\pthreadVC2.lib" />
+ </Linker>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="obj\Debug_Cygwin\LevelMutex" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,12 +51,13 @@
<Add directory="..\..\include\loki" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki_D.a" />
+ <Add library="..\..\lib\Cygwin\Loki_D.a" />
+ <Add library="..\..\..\PThreads\lib\pthreadVC2.lib" />
</Linker>
</Target>
- <Target title="Release">
- <Option output="obj\Release\LevelMutex" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="obj\Release_Cygwin\LevelMutex" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
@@ -34,7 +69,8 @@
<Add directory="..\..\include\loki" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki.a" />
+ <Add library="..\..\lib\Cygwin\Loki.a" />
+ <Add library="..\..\..\PThreads\lib\pthreadVC2.lib" />
</Linker>
</Target>
</Build>
Modified: trunk/test/SafeFormat/SafeFormat.cbp
===================================================================
--- trunk/test/SafeFormat/SafeFormat.cbp 2009-10-10 23:45:58 UTC (rev 1033)
+++ trunk/test/SafeFormat/SafeFormat.cbp 2009-10-10 23:47:49 UTC (rev 1034)
@@ -5,10 +5,42 @@
<Option title="SafeFormat" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="bin\Debug\SafeFormat" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="bin\Debug_GCC\SafeFormat" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki_D.a" />
+ </Linker>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="bin\Release_GCC\SafeFormat" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki.a" />
+ </Linker>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="bin\Debug_Cygwin\SafeFormat" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,12 +49,12 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki_D.a" />
+ <Add library="..\..\lib\Cygwin\Loki_D.a" />
</Linker>
</Target>
- <Target title="Release">
- <Option output="bin\Release\SafeFormat" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="bin\Release_Cygwin\SafeFormat" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
@@ -34,7 +66,7 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki.a" />
+ <Add library="..\..\lib\Cygwin\Loki.a" />
</Linker>
</Target>
</Build>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-10-10 23:46:08
|
Revision: 1033
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1033&view=rev
Author: rich_sposato
Date: 2009-10-10 23:45:58 +0000 (Sat, 10 Oct 2009)
Log Message:
-----------
Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
Modified Paths:
--------------
trunk/test/Pimpl/Pimpl.cbp
trunk/test/Register/Register.cbp
trunk/test/flex_string/flex_string.cbp
Modified: trunk/test/Pimpl/Pimpl.cbp
===================================================================
--- trunk/test/Pimpl/Pimpl.cbp 2009-10-10 23:43:02 UTC (rev 1032)
+++ trunk/test/Pimpl/Pimpl.cbp 2009-10-10 23:45:58 UTC (rev 1033)
@@ -5,10 +5,42 @@
<Option title="Pimpl" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="bin\Debug\Pimpl" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="bin\Debug_GCC\Pimpl" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki_D.a" />
+ </Linker>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="bin\Release_GCC\Pimpl" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki.a" />
+ </Linker>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="bin\Debug_Cygwin\Pimpl" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,12 +49,12 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki_D.a" />
+ <Add library="..\..\lib\Cygwin\Loki_D.a" />
</Linker>
</Target>
- <Target title="Release">
- <Option output="bin\Release\Pimpl" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="bin\Release_Cygwin\Pimpl" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
@@ -34,7 +66,7 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki.a" />
+ <Add library="..\..\lib\Cygwin\Loki.a" />
</Linker>
</Target>
</Build>
Modified: trunk/test/Register/Register.cbp
===================================================================
--- trunk/test/Register/Register.cbp 2009-10-10 23:43:02 UTC (rev 1032)
+++ trunk/test/Register/Register.cbp 2009-10-10 23:45:58 UTC (rev 1033)
@@ -5,10 +5,42 @@
<Option title="Register" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="bin\Debug\Register" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="bin\Debug_GCC\Register" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki_D.a" />
+ </Linker>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="bin\Release_GCC\Register" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki.a" />
+ </Linker>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="bin\Debug_Cygwin\Register" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,12 +49,12 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki_D.a" />
+ <Add library="..\..\lib\Cygwin\Loki_D.a" />
</Linker>
</Target>
- <Target title="Release">
- <Option output="bin\Release\Register" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="bin\Release_Cygwin\Register" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
@@ -34,7 +66,7 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki.a" />
+ <Add library="..\..\lib\Cygwin\Loki.a" />
</Linker>
</Target>
</Build>
Modified: trunk/test/flex_string/flex_string.cbp
===================================================================
--- trunk/test/flex_string/flex_string.cbp 2009-10-10 23:43:02 UTC (rev 1032)
+++ trunk/test/flex_string/flex_string.cbp 2009-10-10 23:45:58 UTC (rev 1033)
@@ -5,10 +5,44 @@
<Option title="flex_string" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="obj\Debug\flex_string" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="obj\Debug_GCC\flex_string" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ <Add directory="..\..\include\loki\flex" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki_D.a" />
+ </Linker>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="obj\Release_GCC\flex_string" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ <Add directory="..\..\include\loki\flex" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki.a" />
+ </Linker>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="obj\Debug_Cygwin\flex_string" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -18,12 +52,12 @@
<Add directory="..\..\include\loki\flex" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki_D.a" />
+ <Add library="..\..\lib\Cygwin\Loki_D.a" />
</Linker>
</Target>
- <Target title="Release">
- <Option output="obj\Release\flex_string" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="obj\Release_Cygwin\flex_string" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
@@ -36,7 +70,7 @@
<Add directory="..\..\include\loki\flex" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki.a" />
+ <Add library="..\..\lib\Cygwin\Loki.a" />
</Linker>
</Target>
</Build>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-10-10 23:43:10
|
Revision: 1032
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1032&view=rev
Author: rich_sposato
Date: 2009-10-10 23:43:02 +0000 (Sat, 10 Oct 2009)
Log Message:
-----------
Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
Modified Paths:
--------------
trunk/Loki.cbp
trunk/test/Longevity/Longevity.cbp
trunk/test/RegressionTest/RegressionTest.cbp
Modified: trunk/Loki.cbp
===================================================================
--- trunk/Loki.cbp 2009-10-10 23:11:31 UTC (rev 1031)
+++ trunk/Loki.cbp 2009-10-10 23:43:02 UTC (rev 1032)
@@ -5,11 +5,39 @@
<Option title="Loki" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output=".\lib\Loki_D" prefix_auto="0" extension_auto="1" />
+ <Target title="Debug_GCC">
+ <Option output=".\lib\GCC\Loki_D" prefix_auto="0" extension_auto="1" />
<Option working_dir="" />
- <Option object_output="obj\Debug\" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="2" />
+ <Option compiler="gcc" />
+ <Option createDefFile="1" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="." />
+ <Add directory=".\include" />
+ <Add directory=".\include\loki" />
+ </Compiler>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output=".\lib\GCC\Loki" prefix_auto="0" extension_auto="1" />
+ <Option working_dir="" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="2" />
+ <Option compiler="gcc" />
+ <Option createDefFile="1" />
+ <Compiler>
+ <Add option="-W" />
+ <Add directory=".\include\loki" />
+ <Add directory=".\include" />
+ </Compiler>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output=".\lib\Cygwin\Loki_D.a" prefix_auto="0" extension_auto="0" />
+ <Option working_dir="" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="2" />
<Option compiler="cygwin" />
<Option createDefFile="1" />
<Compiler>
@@ -20,10 +48,10 @@
<Add directory=".\include\loki" />
</Compiler>
</Target>
- <Target title="Release">
- <Option output=".\lib\Loki" prefix_auto="0" extension_auto="1" />
+ <Target title="Release_Cygwin">
+ <Option output=".\lib\Cygwin\Loki.a" prefix_auto="0" extension_auto="0" />
<Option working_dir="" />
- <Option object_output="obj\Release\" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="2" />
<Option compiler="cygwin" />
<Option createDefFile="1" />
Modified: trunk/test/Longevity/Longevity.cbp
===================================================================
--- trunk/test/Longevity/Longevity.cbp 2009-10-10 23:11:31 UTC (rev 1031)
+++ trunk/test/Longevity/Longevity.cbp 2009-10-10 23:43:02 UTC (rev 1032)
@@ -5,10 +5,42 @@
<Option title="Longevity" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="obj\Debug\Longevity" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="obj\Debug_GCC\Longevity" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki_D.a" />
+ </Linker>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="obj\Release_GCC\Longevity" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ <Linker>
+ <Add library="..\..\lib\GCC\Loki.a" />
+ </Linker>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="obj\Debug_Cygwin\Longevity" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,12 +49,12 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki_D.a" />
+ <Add library="..\..\lib\Cygwin\Loki_D.a" />
</Linker>
</Target>
- <Target title="Release">
- <Option output="obj\Release\Longevity" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="obj\Release_Cygwin\Longevity" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
@@ -34,7 +66,7 @@
<Add directory="..\..\include" />
</Compiler>
<Linker>
- <Add library="..\..\lib\Loki.a" />
+ <Add library="..\..\lib\Cygwin\Loki.a" />
</Linker>
</Target>
</Build>
Modified: trunk/test/RegressionTest/RegressionTest.cbp
===================================================================
--- trunk/test/RegressionTest/RegressionTest.cbp 2009-10-10 23:11:31 UTC (rev 1031)
+++ trunk/test/RegressionTest/RegressionTest.cbp 2009-10-10 23:43:02 UTC (rev 1032)
@@ -5,10 +5,36 @@
<Option title="RegressionTest" />
<Option compiler="cygwin" />
<Build>
- <Target title="Debug">
- <Option output="bin\Debug\RegressionTest" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Debug\" />
+ <Target title="Debug_GCC">
+ <Option output="bin\Debug_GCC\RegressionTest" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_GCC\" />
<Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-W" />
+ <Add option="-g" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ </Target>
+ <Target title="Release_GCC">
+ <Option output="bin\Release_GCC\RegressionTest" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_GCC\" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-fexpensive-optimizations" />
+ <Add option="-Os" />
+ <Add option="-O3" />
+ <Add option="-W" />
+ <Add directory="..\..\include\loki" />
+ <Add directory="..\..\include" />
+ </Compiler>
+ </Target>
+ <Target title="Debug_Cygwin">
+ <Option output="bin\Debug_Cygwin\RegressionTest" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Debug_Cygwin\" />
+ <Option type="1" />
<Option compiler="cygwin" />
<Compiler>
<Add option="-W" />
@@ -17,9 +43,9 @@
<Add directory="..\..\include" />
</Compiler>
</Target>
- <Target title="Release">
- <Option output="bin\Release\RegressionTest" prefix_auto="1" extension_auto="1" />
- <Option object_output="obj\Release\" />
+ <Target title="Release_Cygwin">
+ <Option output="bin\Release_Cygwin\RegressionTest" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj\Release_Cygwin\" />
<Option type="1" />
<Option compiler="cygwin" />
<Compiler>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-10-10 23:11:37
|
Revision: 1031
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1031&view=rev
Author: rich_sposato
Date: 2009-10-10 23:11:31 +0000 (Sat, 10 Oct 2009)
Log Message:
-----------
Changed main declaration to remove GCC warning.
Modified Paths:
--------------
trunk/test/CheckReturn/main.cpp
trunk/test/Checker/main.cpp
Modified: trunk/test/CheckReturn/main.cpp
===================================================================
--- trunk/test/CheckReturn/main.cpp 2009-10-10 23:09:23 UTC (rev 1030)
+++ trunk/test/CheckReturn/main.cpp 2009-10-10 23:11:31 UTC (rev 1031)
@@ -1,12 +1,12 @@
////////////////////////////////////////////////////////////////////////////////
// The Loki Library
// Copyright (c) 2007 Rich Sposato
-// Permission to use, copy, modify, distribute and sell this software for any
-// purpose is hereby granted without fee, provided that the above copyright
-// notice appear in all copies and that both that copyright notice and this
+// Permission to use, copy, modify, distribute and sell this software for any
+// purpose is hereby granted without fee, provided that the above copyright
+// notice appear in all copies and that both that copyright notice and this
// permission notice appear in supporting documentation.
-// The author makes no representations about the
-// suitability of this software for any purpose. It is provided "as is"
+// The author makes no representations about the
+// suitability of this software for any purpose. It is provided "as is"
// without express or implied warranty.
////////////////////////////////////////////////////////////////////////////////
@@ -88,7 +88,7 @@
// ----------------------------------------------------------------------------
-int main( unsigned int argc, const char * argv[] )
+int main( int argc, const char * argv[] )
{
if ( 2 == argc )
Modified: trunk/test/Checker/main.cpp
===================================================================
--- trunk/test/Checker/main.cpp 2009-10-10 23:09:23 UTC (rev 1030)
+++ trunk/test/Checker/main.cpp 2009-10-10 23:11:31 UTC (rev 1031)
@@ -355,7 +355,7 @@
// ----------------------------------------------------------------------------
-int main( unsigned int argc, const char * const argv[] )
+int main( int argc, const char * const argv[] )
{
(void)argc;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-10-10 23:09:31
|
Revision: 1030
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1030&view=rev
Author: rich_sposato
Date: 2009-10-10 23:09:23 +0000 (Sat, 10 Oct 2009)
Log Message:
-----------
Added include statements and changed main() declaration.
Modified Paths:
--------------
trunk/test/SmallObj/DefaultAlloc.cpp
Modified: trunk/test/SmallObj/DefaultAlloc.cpp
===================================================================
--- trunk/test/SmallObj/DefaultAlloc.cpp 2009-10-07 00:41:02 UTC (rev 1029)
+++ trunk/test/SmallObj/DefaultAlloc.cpp 2009-10-10 23:09:23 UTC (rev 1030)
@@ -45,6 +45,9 @@
// ----------------------------------------------------------------------------
+#include <stdio.h>
+#include <string.h>
+
#include <iostream>
#include <new>
@@ -430,7 +433,7 @@
static char buffer[ 64 ];
sprintf( buffer, "GNU version %d.%d.%d", major, minor, patch );
return buffer;
-
+
#else
return "not a GNU compiler";
#endif
@@ -751,11 +754,11 @@
// ----------------------------------------------------------------------------
-int main( unsigned int argc, const char * const argv[] )
+int main( int argc, const char * const argv[] )
{
bool caught = false;
- for ( unsigned int aa = 1; aa < argc; ++aa )
+ for ( int aa = 1; aa < argc; ++aa )
{
if ( ::strcmp( argv[aa], "-v" ) == 0 )
s_verbose = true;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-10-07 00:41:14
|
Revision: 1029
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1029&view=rev
Author: rich_sposato
Date: 2009-10-07 00:41:02 +0000 (Wed, 07 Oct 2009)
Log Message:
-----------
Changed functions in all policies from public to protected.
Modified Paths:
--------------
trunk/include/loki/SmartPtr.h
Modified: trunk/include/loki/SmartPtr.h
===================================================================
--- trunk/include/loki/SmartPtr.h 2009-10-07 00:28:23 UTC (rev 1028)
+++ trunk/include/loki/SmartPtr.h 2009-10-07 00:41:02 UTC (rev 1029)
@@ -70,12 +70,14 @@
template <class T>
class HeapStorage
{
- protected:
+ public:
typedef T* StoredType; /// the type of the pointee_ object
typedef T* InitPointerType; /// type used to declare OwnershipPolicy type.
typedef T* PointerType; /// type returned by operator->
typedef T& ReferenceType; /// type returned by operator*
+ protected:
+
HeapStorage() : pointee_(Default())
{}
@@ -107,7 +109,6 @@
template <class F>
friend typename HeapStorage<F>::StoredType& GetImplRef(HeapStorage<F>& sp);
- protected:
// Destroys the data stored
// (Destruction might be taken over by the OwnershipPolicy)
void Destroy()
@@ -152,12 +153,14 @@
template <class T>
class DefaultSPStorage
{
- protected:
+ public:
typedef T* StoredType; // the type of the pointee_ object
typedef T* InitPointerType; /// type used to declare OwnershipPolicy type.
typedef T* PointerType; // type returned by operator->
typedef T& ReferenceType; // type returned by operator*
+ protected:
+
DefaultSPStorage() : pointee_(Default())
{}
@@ -189,7 +192,6 @@
template <class F>
friend typename DefaultSPStorage<F>::StoredType& GetImplRef(DefaultSPStorage<F>& sp);
- protected:
// Destroys the data stored
// (Destruction might be taken over by the OwnershipPolicy)
//
@@ -287,6 +289,8 @@
typedef Locker< T > PointerType; /// type returned by operator->
typedef T& ReferenceType; /// type returned by operator*
+ protected:
+
LockedStorage() : pointee_( Default() ) {}
~LockedStorage( void ) {}
@@ -315,7 +319,6 @@
template <class F>
friend typename LockedStorage<F>::StoredType& GetImplRef(LockedStorage<F>& sp);
- protected:
// Destroys the data stored
// (Destruction might be taken over by the OwnershipPolicy)
void Destroy()
@@ -359,12 +362,15 @@
template <class T>
class ArrayStorage
{
- protected:
+ public:
+
typedef T* StoredType; // the type of the pointee_ object
typedef T* InitPointerType; /// type used to declare OwnershipPolicy type.
typedef T* PointerType; // type returned by operator->
typedef T& ReferenceType; // type returned by operator*
+ protected:
+
ArrayStorage() : pointee_(Default())
{}
@@ -396,7 +402,6 @@
template <class F>
friend typename ArrayStorage<F>::StoredType& GetImplRef(ArrayStorage<F>& sp);
- protected:
// Destroys the data stored
// (Destruction might be taken over by the OwnershipPolicy)
void Destroy()
@@ -507,6 +512,8 @@
template <class P>
class RefCountedMT : public ThreadingModel< RefCountedMT<P>, MX >
{
+ public:
+
typedef ThreadingModel< RefCountedMT<P>, MX > base_type;
typedef typename base_type::IntType CountType;
typedef volatile CountType *CountPtrType;
@@ -646,7 +653,7 @@
{
class LOKI_EXPORT RefLinkedBase
{
- public:
+ protected:
RefLinkedBase()
{ prev_ = next_ = this; }
@@ -818,6 +825,8 @@
template <class P>
struct NoCheck
{
+ protected:
+
NoCheck()
{}
@@ -850,6 +859,8 @@
template <class P>
struct AssertCheck
{
+ protected:
+
AssertCheck()
{}
@@ -886,6 +897,8 @@
template <class P>
struct AssertCheckStrict
{
+ protected:
+
AssertCheckStrict()
{}
@@ -940,6 +953,8 @@
template <class P>
struct RejectNullStatic
{
+ protected:
+
RejectNullStatic()
{}
@@ -988,6 +1003,8 @@
template <class P>
struct RejectNull
{
+ protected:
+
RejectNull()
{}
@@ -1022,6 +1039,8 @@
template <class P>
struct RejectNullStrict
{
+ protected:
+
RejectNullStrict()
{}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-10-07 00:28:38
|
Revision: 1028
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1028&view=rev
Author: rich_sposato
Date: 2009-10-07 00:28:23 +0000 (Wed, 07 Oct 2009)
Log Message:
-----------
Changed functions in ownership policies from public to protected.
Modified Paths:
--------------
trunk/include/loki/SmartPtr.h
Modified: trunk/include/loki/SmartPtr.h
===================================================================
--- trunk/include/loki/SmartPtr.h 2009-10-01 17:54:38 UTC (rev 1027)
+++ trunk/include/loki/SmartPtr.h 2009-10-07 00:28:23 UTC (rev 1028)
@@ -70,7 +70,7 @@
template <class T>
class HeapStorage
{
- public:
+ protected:
typedef T* StoredType; /// the type of the pointee_ object
typedef T* InitPointerType; /// type used to declare OwnershipPolicy type.
typedef T* PointerType; /// type returned by operator->
@@ -152,7 +152,7 @@
template <class T>
class DefaultSPStorage
{
- public:
+ protected:
typedef T* StoredType; // the type of the pointee_ object
typedef T* InitPointerType; /// type used to declare OwnershipPolicy type.
typedef T* PointerType; // type returned by operator->
@@ -359,7 +359,7 @@
template <class T>
class ArrayStorage
{
- public:
+ protected:
typedef T* StoredType; // the type of the pointee_ object
typedef T* InitPointerType; /// type used to declare OwnershipPolicy type.
typedef T* PointerType; // type returned by operator->
@@ -435,7 +435,7 @@
template <class P>
class RefCounted
{
- public:
+ protected:
RefCounted()
: pCount_(static_cast<uintptr_t*>(
SmallObject<>::operator new(sizeof(uintptr_t))))
@@ -511,7 +511,7 @@
typedef typename base_type::IntType CountType;
typedef volatile CountType *CountPtrType;
- public:
+ protected:
RefCountedMT()
{
pCount_ = static_cast<CountPtrType>(
@@ -574,7 +574,7 @@
template <class P>
class COMRefCounted
{
- public:
+ protected:
COMRefCounted()
{}
@@ -614,6 +614,7 @@
template <class P>
struct DeepCopy
{
+ protected:
DeepCopy()
{}
@@ -673,7 +674,7 @@
template <class P>
class RefLinked : public Private::RefLinkedBase
{
- public:
+ protected:
RefLinked()
{}
@@ -706,7 +707,7 @@
template <class P>
class DestructiveCopy
{
- public:
+ protected:
DestructiveCopy()
{}
@@ -742,7 +743,7 @@
template <class P>
class NoCopy
{
- public:
+ protected:
NoCopy()
{}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-10-01 17:54:47
|
Revision: 1027
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1027&view=rev
Author: rich_sposato
Date: 2009-10-01 17:54:38 +0000 (Thu, 01 Oct 2009)
Log Message:
-----------
Replaced sleep with usleep.
Modified Paths:
--------------
trunk/src/LevelMutex.cpp
Modified: trunk/src/LevelMutex.cpp
===================================================================
--- trunk/src/LevelMutex.cpp 2009-09-29 19:02:43 UTC (rev 1026)
+++ trunk/src/LevelMutex.cpp 2009-10-01 17:54:38 UTC (rev 1027)
@@ -40,8 +40,11 @@
#if defined( COMPILER_ALLOWS_THREAD_LOCAL_STORAGE )
-#include <loki/LevelMutex.h>
+#include "../include/loki/LevelMutex.h"
+#if !defined( _MSC_VER )
+ #include <unistd.h> // needed for usleep function.
+#endif
#include <algorithm>
#include <cerrno>
@@ -784,7 +787,9 @@
#if defined( _MSC_VER )
::SleepEx( sleepTime, true );
#else
- ::sleep( sleepTime );
+ if ( 0 == sleepTime )
+ sleepTime = 1;
+ ::usleep( sleepTime * 1000 );
#endif
}
@@ -911,29 +916,28 @@
// ----------------------------------------------------------------------------
-#if defined( _MSC_VER )
-
SleepLevelMutex::SleepLevelMutex( unsigned int level ) :
SpinLevelMutex( level ),
- m_sleepTime( 1 ),
- m_wakable( true )
+ m_sleepTime( 1 )
+#if defined( _MSC_VER )
+ , m_wakable( true )
+#endif
{
}
// ----------------------------------------------------------------------------
-#else
-
SleepLevelMutex::SleepLevelMutex( unsigned int level, unsigned int sleepTime ) :
SpinLevelMutex( level ),
- m_sleepTime( sleepTime / 1000 )
+ m_sleepTime( sleepTime )
+#if defined( _MSC_VER )
+ , m_wakable( true )
+#endif
{
if ( 0 == m_sleepTime )
- m_sleepTime = 1; // Can't have a resolution less than 1 second.
+ m_sleepTime = 1; // Can't have a resolution less than 1 millisecond.
}
-#endif
-
// ----------------------------------------------------------------------------
SleepLevelMutex::~SleepLevelMutex( void )
@@ -953,7 +957,7 @@
#if defined( _MSC_VER )
::SleepEx( m_sleepTime, m_wakable );
#else
- ::sleep( m_sleepTime );
+ ::usleep( m_sleepTime * 1000 );
#endif
}
return MutexErrors::Success;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-09-29 19:02:51
|
Revision: 1026
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1026&view=rev
Author: rich_sposato
Date: 2009-09-29 19:02:43 +0000 (Tue, 29 Sep 2009)
Log Message:
-----------
Changed #if statement used to decide to compile code.
Modified Paths:
--------------
trunk/src/LevelMutex.cpp
Modified: trunk/src/LevelMutex.cpp
===================================================================
--- trunk/src/LevelMutex.cpp 2009-09-26 23:49:05 UTC (rev 1025)
+++ trunk/src/LevelMutex.cpp 2009-09-29 19:02:43 UTC (rev 1026)
@@ -20,8 +20,26 @@
// ----------------------------------------------------------------------------
-#if (!defined(__CYGWIN__) || (defined(__CYGWIN__) && __GNUC__ > 3)) && !defined(__APPLE__)
+// First assume the compiler does allow thread-local storage by #defining the
+// macro which allows compiler to see the code inside this file.
+// Then #undefine the macro for compilers which are known for not supporting
+// thread-local storage.
+#define COMPILER_ALLOWS_THREAD_LOCAL_STORAGE 1
+// The __APPLE__ macro does not refer to a compiler, but to the Apple OSX operating system.
+#if defined( __APPLE__ )
+ #warning "GCC for Apple does not allow thread_local storage, so you can not use Loki::LevelMutex."
+ #undef COMPILER_ALLOWS_THREAD_LOCAL_STORAGE
+#endif
+
+#if ( defined( __CYGWIN__ ) && ( __GNUC__ <= 3 ) )
+ #warning "Older versions of GCC for Cygwin do not allow thread_local storage, so you can not use Loki::LevelMutex."
+ #undef COMPILER_ALLOWS_THREAD_LOCAL_STORAGE
+#endif
+
+#if defined( COMPILER_ALLOWS_THREAD_LOCAL_STORAGE )
+
+
#include <loki/LevelMutex.h>
#include <algorithm>
@@ -1143,6 +1161,4 @@
} // end namespace Loki
-
-#endif
-
+#endif // #if defined( COMPILER_ALLOWS_THREAD_LOCAL_STORAGE )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-09-26 23:49:17
|
Revision: 1025
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1025&view=rev
Author: rich_sposato
Date: 2009-09-26 23:49:05 +0000 (Sat, 26 Sep 2009)
Log Message:
-----------
Added test for pointer to const object.
Modified Paths:
--------------
trunk/test/LockingPtr/main.cpp
Modified: trunk/test/LockingPtr/main.cpp
===================================================================
--- trunk/test/LockingPtr/main.cpp 2009-09-26 23:07:10 UTC (rev 1024)
+++ trunk/test/LockingPtr/main.cpp 2009-09-26 23:49:05 UTC (rev 1025)
@@ -99,6 +99,8 @@
{
std::vector<Thread*> threads;
+ Printf("--------------------------------------------------------------------------------------\n");
+
for(int i=0; i<numThreads; i++)
{
Printf("Creating thread %d\n")(i);
@@ -111,8 +113,19 @@
Thread::DeleteThreads(threads);
Printf("--------------------------------------------------------------------------------------\n");
+
+ for(int i=0; i<numThreads; i++)
+ {
+ Printf("Creating thread %d\n")(i);
+ threads.push_back(new Thread(RunConstLocked,reinterpret_cast<void*>(i)));
+ }
+ for(int i=0; i<numThreads; i++)
+ threads.at(i)->start();
+
+ Thread::JoinThreads(threads);
+ Thread::DeleteThreads(threads);
+
Printf("--------------------------------------------------------------------------------------\n");
- Printf("--------------------------------------------------------------------------------------\n");
for(int i=0; i<numThreads; i++)
{
@@ -125,6 +138,7 @@
Thread::JoinThreads(threads);
Thread::DeleteThreads(threads);
+ Printf("--------------------------------------------------------------------------------------\n");
// test pair ctor
volatile A a;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-09-26 23:07:17
|
Revision: 1024
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1024&view=rev
Author: rich_sposato
Date: 2009-09-26 23:07:10 +0000 (Sat, 26 Sep 2009)
Log Message:
-----------
Replaced assert( IsValid() ) with checker's call to IsValid.
Modified Paths:
--------------
trunk/include/loki/LevelMutex.h
Modified: trunk/include/loki/LevelMutex.h
===================================================================
--- trunk/include/loki/LevelMutex.h 2009-09-26 21:10:43 UTC (rev 1023)
+++ trunk/include/loki/LevelMutex.h 2009-09-26 23:07:10 UTC (rev 1024)
@@ -280,8 +280,9 @@
{
public:
inline explicit Checker( const volatile LevelMutexInfo * mutex ) :
- m_mutex( mutex ) {}
- inline ~Checker( void ) { m_mutex->IsValid(); }
+ m_mutex( mutex ) { Check(); }
+ inline ~Checker( void ) { Check(); }
+ inline bool Check( void ) const { return m_mutex->IsValid(); }
private:
Checker( void );
Checker( const Checker & );
@@ -782,7 +783,6 @@
virtual MutexErrors::Type TryLock( void ) volatile
{
- assert( IsValid() );
LOKI_MUTEX_DEBUG_CODE( Checker checker( this ); (void)checker; )
MutexErrors::Type result = LevelMutexInfo::PreLockCheck( true );
@@ -804,7 +804,6 @@
virtual MutexErrors::Type Lock( void ) volatile
{
- assert( IsValid() );
LOKI_MUTEX_DEBUG_CODE( Checker checker( this ); (void)checker; )
MutexErrors::Type result = LevelMutexInfo::PreLockCheck( false );
@@ -824,7 +823,6 @@
virtual MutexErrors::Type Lock( unsigned int milliSeconds ) volatile
{
- assert( IsValid() );
LOKI_MUTEX_DEBUG_CODE( Checker checker( this ); (void)checker; )
MutexErrors::Type result = LevelMutexInfo::PreLockCheck( false );
@@ -860,7 +858,6 @@
virtual MutexErrors::Type Unlock( void ) volatile
{
- assert( IsValid() );
LOKI_MUTEX_DEBUG_CODE( Checker checker( this ); (void)checker; )
MutexErrors::Type result = LevelMutexInfo::PreUnlockCheck();
@@ -906,7 +903,6 @@
*/
virtual MutexErrors::Type LockThis( void ) volatile
{
- assert( IsValid() );
LOKI_MUTEX_DEBUG_CODE( Checker checker( this ); (void)checker; )
assert( this != LevelMutexInfo::GetCurrentMutex() );
@@ -927,7 +923,6 @@
*/
virtual MutexErrors::Type LockThis( unsigned int milliSeconds ) volatile
{
- assert( IsValid() );
LOKI_MUTEX_DEBUG_CODE( Checker checker( this ); (void)checker; )
clock_t timeOut = clock() + milliSeconds;
@@ -953,9 +948,8 @@
*/
virtual MutexErrors::Type UnlockThis( void ) volatile
{
- assert( IsValid() );
- assert( NULL != LevelMutexInfo::GetCurrentMutex() );
LOKI_MUTEX_DEBUG_CODE( Checker checker( this ); (void)checker; )
+ assert( NULL != LevelMutexInfo::GetCurrentMutex() );
if ( 1 < LevelMutexInfo::GetLockCount() )
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-09-26 21:10:49
|
Revision: 1023
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1023&view=rev
Author: rich_sposato
Date: 2009-09-26 21:10:43 +0000 (Sat, 26 Sep 2009)
Log Message:
-----------
Added year to copyright notice.
Modified Paths:
--------------
trunk/test/Checker/main.cpp
Modified: trunk/test/Checker/main.cpp
===================================================================
--- trunk/test/Checker/main.cpp 2009-09-26 21:03:36 UTC (rev 1022)
+++ trunk/test/Checker/main.cpp 2009-09-26 21:10:43 UTC (rev 1023)
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////////////////
//
// Test program for The Loki Library
-// Copyright (c) 2008 Richard Sposato
+// Copyright (c) 2008, 2009 Richard Sposato
// The copyright on this file is protected under the terms of the MIT license.
//
// Permission to use, copy, modify, distribute and sell this software for any
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-09-26 21:03:43
|
Revision: 1022
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1022&view=rev
Author: rich_sposato
Date: 2009-09-26 21:03:36 +0000 (Sat, 26 Sep 2009)
Log Message:
-----------
Fixed bug 2789197 by adding include statement.
Modified Paths:
--------------
trunk/include/loki/yasli/random.h
Modified: trunk/include/loki/yasli/random.h
===================================================================
--- trunk/include/loki/yasli/random.h 2009-09-26 20:43:11 UTC (rev 1021)
+++ trunk/include/loki/yasli/random.h 2009-09-26 21:03:36 UTC (rev 1022)
@@ -5,7 +5,9 @@
#include <ctime>
+#include <limits.h>
+
class Random
{
unsigned int seed_;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-09-26 20:43:19
|
Revision: 1021
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1021&view=rev
Author: rich_sposato
Date: 2009-09-26 20:43:11 +0000 (Sat, 26 Sep 2009)
Log Message:
-----------
Fixed bug 2803535 by adding const qualifier.
Modified Paths:
--------------
trunk/include/loki/SmartPtr.h
Modified: trunk/include/loki/SmartPtr.h
===================================================================
--- trunk/include/loki/SmartPtr.h 2009-09-26 20:28:24 UTC (rev 1020)
+++ trunk/include/loki/SmartPtr.h 2009-09-26 20:43:11 UTC (rev 1021)
@@ -295,7 +295,7 @@
explicit LockedStorage( const StoredType & p ) : pointee_( p ) {}
- PointerType operator->()
+ PointerType operator->() const
{
return Locker< T >( pointee_ );
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-09-26 20:28:32
|
Revision: 1020
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1020&view=rev
Author: rich_sposato
Date: 2009-09-26 20:28:24 +0000 (Sat, 26 Sep 2009)
Log Message:
-----------
Added explicit qualifier to constructor.
Modified Paths:
--------------
trunk/include/loki/LockingPtr.h
Modified: trunk/include/loki/LockingPtr.h
===================================================================
--- trunk/include/loki/LockingPtr.h 2009-09-26 20:27:34 UTC (rev 1019)
+++ trunk/include/loki/LockingPtr.h 2009-09-26 20:28:24 UTC (rev 1020)
@@ -60,7 +60,7 @@
/** Constructor locks mutex associated with an object.
@param lockpair a std::pair of pointers to the object and the mutex
*/
- LockingPtr( Pair lockpair )
+ explicit LockingPtr( Pair lockpair )
: pObject_( const_cast< SharedObject * >( lockpair.first ) ),
pMutex_( lockpair.second )
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-09-26 20:27:41
|
Revision: 1019
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1019&view=rev
Author: rich_sposato
Date: 2009-09-26 20:27:34 +0000 (Sat, 26 Sep 2009)
Log Message:
-----------
Fixed bug 2831440 by making constructors explicit.
Modified Paths:
--------------
trunk/include/loki/SmartPtr.h
Modified: trunk/include/loki/SmartPtr.h
===================================================================
--- trunk/include/loki/SmartPtr.h 2009-09-26 19:42:09 UTC (rev 1018)
+++ trunk/include/loki/SmartPtr.h 2009-09-26 20:27:34 UTC (rev 1019)
@@ -88,7 +88,7 @@
HeapStorage(const HeapStorage<U>&) : pointee_(0)
{}
- HeapStorage(const StoredType& p) : pointee_(p) {}
+ explicit HeapStorage(const StoredType& p) : pointee_(p) {}
PointerType operator->() const { return pointee_; }
@@ -170,7 +170,7 @@
DefaultSPStorage(const DefaultSPStorage<U>&) : pointee_(0)
{}
- DefaultSPStorage(const StoredType& p) : pointee_(p) {}
+ explicit DefaultSPStorage(const StoredType& p) : pointee_(p) {}
PointerType operator->() const { return pointee_; }
@@ -249,7 +249,7 @@
class Locker
{
public:
- Locker( const T * p ) : pointee_( const_cast< T * >( p ) )
+ explicit Locker( const T * p ) : pointee_( const_cast< T * >( p ) )
{
if ( pointee_ != 0 )
pointee_->Lock();
@@ -293,7 +293,7 @@
LockedStorage( const LockedStorage&) : pointee_( 0 ) {}
- LockedStorage( const StoredType & p ) : pointee_( p ) {}
+ explicit LockedStorage( const StoredType & p ) : pointee_( p ) {}
PointerType operator->()
{
@@ -377,7 +377,7 @@
ArrayStorage(const ArrayStorage<U>&) : pointee_(0)
{}
- ArrayStorage(const StoredType& p) : pointee_(p) {}
+ explicit ArrayStorage(const StoredType& p) : pointee_(p) {}
PointerType operator->() const { return pointee_; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-09-26 19:42:16
|
Revision: 1018
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1018&view=rev
Author: rich_sposato
Date: 2009-09-26 19:42:09 +0000 (Sat, 26 Sep 2009)
Log Message:
-----------
Added tests which compare host to memento.
Modified Paths:
--------------
trunk/test/Checker/main.cpp
Modified: trunk/test/Checker/main.cpp
===================================================================
--- trunk/test/Checker/main.cpp 2009-09-26 19:40:20 UTC (rev 1017)
+++ trunk/test/Checker/main.cpp 2009-09-26 19:42:09 UTC (rev 1018)
@@ -80,6 +80,17 @@
private:
+ class Memento
+ {
+ public:
+ explicit Memento( const Thingy & t ) : m_count( t.m_counts.size() ) {}
+ bool operator == ( const Thingy & t ) const
+ {
+ return ( m_count == t.m_counts.size() );
+ }
+ unsigned int m_count;
+ };
+
/// This is a static validator.
static bool StaticIsValid( void );
@@ -95,6 +106,9 @@
// This shows how to declare checkers for non-static functions in a host class.
typedef ::Loki::CheckFor< Thingy > CheckFor;
+ // This shows how to declare checkers for non-static functions in a host class.
+ typedef ::Loki::CheckFor< Thingy, Memento > CheckMementoFor;
+
// This shows how to declare checkers for static functions of a host class.
typedef ::Loki::CheckStaticFor CheckStaticFor;
@@ -221,7 +235,7 @@
// This example shows how to use the equality checker.
unsigned int Thingy::DoSomething( bool doThrow ) const
{
- CheckFor::Equality checker( this, &Thingy::IsValid );
+ CheckMementoFor::Equality checker( this, &Thingy::IsValid );
(void)checker;
if ( doThrow )
throw ::std::logic_error( "Test Exception." );
@@ -233,7 +247,7 @@
// This example shows how to use the no-change checker.
void Thingy::DoSomethingElse( void ) const
{
- CheckFor::NoChange checker( this, &Thingy::IsValid );
+ CheckMementoFor::NoChange checker( this, &Thingy::IsValid );
(void)checker;
}
@@ -256,7 +270,7 @@
// This function's checker cares about class invariants and both the pre- and
// post-conditions, so it passes in pointers for all 3 validators. The pre-
// and post-conditions are both about making sure the container is not empty.
- CheckFor::NoChangeOrThrow checker( this, &Thingy::IsValid, &Thingy::IsValidFull, &Thingy::IsValidFull );
+ CheckMementoFor::NoChangeOrThrow checker( this, &Thingy::IsValid, &Thingy::IsValidFull, &Thingy::IsValidFull );
if ( m_counts.size() <= index )
return 0;
const unsigned int count = m_counts[ index ];
@@ -456,7 +470,7 @@
cout << "Caught an exception!" << endl;
}
- cout << "All done!" << endl;
+ cout << "All done! If you see this line, and no assertions failed, then the test passed!" << endl;
return 0;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2009-09-26 19:40:28
|
Revision: 1017
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1017&view=rev
Author: rich_sposato
Date: 2009-09-26 19:40:20 +0000 (Sat, 26 Sep 2009)
Log Message:
-----------
Added ability to compare host to memento.
Modified Paths:
--------------
trunk/include/loki/Checker.h
Modified: trunk/include/loki/Checker.h
===================================================================
--- trunk/include/loki/Checker.h 2009-08-16 20:33:52 UTC (rev 1016)
+++ trunk/include/loki/Checker.h 2009-09-26 19:40:20 UTC (rev 1017)
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////////////////
//
// The Loki Library
-// Copyright (c) 2008 Rich Sposato
+// Copyright (c) 2008, 2009 Rich Sposato
// The copyright on this file is protected under the terms of the MIT license.
//
// Permission to use, copy, modify, distribute and sell this software for any
@@ -32,15 +32,25 @@
{
/** @par ContractChecker and StaticChecker Overview
- The ContractChecker and StaticChecker classes have two purposes:
- - provide a mechanism by which programmers can determine which functions
+ ContractChecker and StaticChecker classes provide a mechanism to enforce
+ "Design by Contract" programming practices. According to Design by Contract,
+ each function and class provides a contract with client code. Each contract
+ says:
+ - what operations the class or function performs,
+ - what input it needs,
+ - what output it provides,
+ - what exception safety level it guarantees, and
+ - what constraints it enforces on its data.
+
+ ContractChecker and StaticChecker encourage Design by Contract by:
+ - providing a mechanism by which programmers can determine if functions
violate class/data invariants,
- - and determine which exception safety a function provides.
+ - and determining which exception safety level a function provides.
@par Class & Data Invariants
- The ContractChecker and StaticChecker define invariants as "expressions that
- are true for particular data". They call a function which returns true if all
- data are valid, and returns false if any datum is invalid. This is called the
+ ContractChecker and StaticChecker define invariants as "expressions that are
+ true for particular data". They call a function which returns true if all data
+ are valid, and returns false if any datum is invalid. This is called the
validator function, and the host class or function provides a pointer to it.
The validator could also assert for any invariant which fails rather than
return false. If the validator is a static member function, you can use it
@@ -68,25 +78,76 @@
in a valid state if an exception occurs. (Which I call either the no-leak
or no-break guarantee depending on context.)
- @par Writing Your Own Policies
+ @par Provided Exception Policies
+ Loki provides several exception policies for use with ContractChecker.
+ - CheckForNoChangeOrThrow
+ - CheckForNoThrow
+ - CheckForNoChange
+ - CheckForEquality
+ - CheckForNothing
+ Loki also provides these two policies for StaticChecker.
+ - CheckStaticForNoThrow
+ - CheckStaticForNothing
+
+ @par Writing Your Own Policies for ContractChecker
Loki provides several exception policies for ContractChecker. These policies
assert if an object changed or a function threw an exception. If you prefer
- policies that log failures to a file, pop-up a message box, notify your unit-
- test framework, or whatever else, you can easily write your own policies.
- Your policy class should have two functions, a constructor and a Check
- function, both of which accept a pointer to const instance of the host class.
- Your policy class will become a base class of ContractChecker. Check should
- return true if all is okay, and false if any failure was detected. Check
- should never throw any exceptions since it is called from ContractChecker's
- destructor. You may add other functions to the policy class. This code
- snippet shows the signatures for the two required functions.
+ policies that log failures to a file, send an email, file a bug report, pop-up
+ a message box, notify your unit-test framework, or whatever else, you can
+ easily write your own policies. Please follow these guidelines when writing
+ your own policies:
+ - Each policy class must provide three public functions, a constructor, a destructor, and a Check function.
+ - The destructor could be implied. (Not actually written, and provided by the compiler.)
+ - The constructor and Check functions accept a pointer to const instance of the host class.
+ - Your policy class will become a base class of ContractChecker.
+ - Check should return true if all is okay, and false for any failures.
+ - Check should never throw any exceptions since it is called by a destructor.
+ - You may add other functions or features to your policy class.
+
+ @par Using a Memento
+ Sometimes copying or comparing the host object is very expensive. If you do
+ not want ContractChecker to copy the host object, you can provide an optional
+ template parameter called Memento. The memento stores a little information on
+ the host object's state so that when the Host's function ends, ContractChecker
+ will use the memento to determine if the host object changed. A Host class can
+ declare a Memento class as an internal class. These guidelines will help you
+ design a memento class:
+ - Your exception policy's constructor should not copy the host object but use a memento to store info about the host.
+ - The memento should provide a constructor, an equality operator, and a destructor.
+ - The memento's destructor could be implied. (Not actually written, and provided by the compiler.)
+ - The memento's constructor and equality operator must accept a reference to a const Host object.
+ - The memento's equality operator should return false if the memento differs from the host.
+
+ This code snippet shows the template parameters for an exception policy that
+ uses a Memento and the signatures for the three required functions for a
+ ContractChecker policy.
@code
+ template < class Host, class Memento >
class YourPolicy
- { public:
+ {
+ public:
explicit YourPolicy( const Host * );
bool Check( const Host * ) const;
+ ~YourPolicy();
+ private:
+ Memento m_compare;
}
@endcode
+
+ The following code snippet shows the template parameters and function
+ declarations for an exception policy that does not use a Memento.
+ @code
+ template < class Host >
+ class YourPolicy< Host, void >
+ {
+ public:
+ explicit YourPolicy( const Host * );
+ bool Check( const Host * ) const;
+ ~YourPolicy();
+ }
+ @endcode
+
+ @par Writing Your Own Policies for StaticChecker
Loki provides two exception policies for StaticChecker - one that asserts if
an exception occurred, and one that does not care about exceptions. You can
make your own policy to log failures, send an email, file a bug report, or do
@@ -101,8 +162,37 @@
bool Check() const;
}
@endcode
+
+ @par Requirements for Host Object
+ CheckForNoThrow and CheckForNothing impose no restrictions on the host class.
+ The policies for StaticChecker impose no restrictions either. All other
+ policies require the Host class to either provide a Memento class or have a
+ public copy-constructor, destructor, and equality operator. If the Host class
+ provides a Memento class, then follow the guidelines listed above in the
+ section called "Using a Memento".
+
+ @par Writing Your Own Policies for StaticChecker
+ Loki provides two exception policies for StaticChecker - one that asserts if
+ an exception occurred, and one that does not care about exceptions. Please
+ follow these guidelines when writing policies:
+ - Each policy needs a default constructor, a destructor, and a function named Check.
+ - The constructor and destructor may be implied.
+ - Make sure your Check function never throws any exceptions.
+ - Any additional functions or features of the policy are up to you.
+
+ This code snippet shows the signatures for the three required functions for a
+ StaticChecker policy.
+ @code
+ class YourPolicy
+ { public:
+ YourPolicy();
+ bool Check() const;
+ ~YourPolicy();
+ }
+ @endcode
*/
+
// ----------------------------------------------------------------------------
/** @class CheckForNoThrow
@@ -110,13 +200,16 @@
@par Exception Safety Level:
This exception-checking policy class for ContractChecker asserts if an
exception exists. Host classes can use this to show that a member function
- provides the no-throw exception safety guarantees.
+ provides the no-throw exception safety guarantees. Since this policy does not
+ care if the host object changed, use this policy for operations which change
+ the host object but never throw.
@par Requirements For Host Class:
- This policy imposes no requirements on a host class.
+ This policy imposes no requirements on a host class. This ignores the Memento
+ template parameter.
*/
-template < class Host >
+template < class Host, class Memento >
class CheckForNoThrow
{
public:
@@ -133,6 +226,8 @@
// ----------------------------------------------------------------------------
+template < class Host, class Memento > class CheckForNoChange;
+
/** @class CheckForNoChange
@par Exception Safety Level:
@@ -144,11 +239,10 @@
@par Requirements:
This policy requires hosts to provide both the copy-constructor and the
equality operator, and is intended for classes with value semantics.
- equality operator.
*/
template < class Host >
-class CheckForNoChange
+class CheckForNoChange< Host, void >
{
public:
@@ -167,22 +261,48 @@
Host m_compare;
};
+template < class Host, class Memento >
+class CheckForNoChange
+{
+public:
+
+ inline explicit CheckForNoChange( const Host * host ) :
+ m_compare( *host ) {}
+
+ inline bool Check( const Host * host ) const
+ {
+ const bool okay = ( !::std::uncaught_exception() )
+ || ( m_compare == *host );
+ assert( okay );
+ return okay;
+ }
+
+private:
+ Memento m_compare;
+};
+
// ----------------------------------------------------------------------------
+template < class Host, class Memento > class CheckForNoChangeOrThrow;
+
/** @class CheckForNoChangeOrThrow
+ This policy comes in two forms - one uses a memento, and one does not. The
+ memento form does not copy the host object, but stores info about the host in
+ a memento for later comparison with the host. The other form copies the host
+ object to a temporary and then compares that to the original.
@par Exception Safety Level:
This exception-checking policy class for ContractChecker asserts either if a
copy of the host differs from the original host object, or if an exception
occurs. Host classes can use this policy to show which member functions provide
- the no-throw exception guarantee, and would never change data anyway.
+ the no-throw exception guarantee and never change data anyway.
@par Requirements For Host Class:
This policy requires hosts to provide both the copy-constructor and the
equality operator, and is intended for classes with value semantics.
*/
-template < class Host >
+template < class Host, class Memento >
class CheckForNoChangeOrThrow
{
public:
@@ -200,11 +320,34 @@
}
private:
+ Memento m_compare;
+};
+
+template < class Host >
+class CheckForNoChangeOrThrow< Host, void >
+{
+public:
+
+ inline explicit CheckForNoChangeOrThrow( const Host * host ) :
+ m_compare( *host ) {}
+
+ inline bool Check( const Host * host ) const
+ {
+ bool okay = ( !::std::uncaught_exception() );
+ assert( okay );
+ okay = ( m_compare == *host );
+ assert( okay );
+ return okay;
+ }
+
+private:
Host m_compare;
};
// ----------------------------------------------------------------------------
+template < class Host, class Memento > class CheckForEquality;
+
/** @class CheckForEquality
@par Exception Safety Level:
@@ -216,9 +359,13 @@
@par Requirements For Host Class:
This policy requires hosts to provide both the copy-constructor and the
equality operator, and is intended for classes with value semantics.
+
+ @par Requirements For Memento Class:
+ This policy requires Memento to provide a constructor and an equality operator
+ that accept a reference to a const host.
*/
-template < class Host >
+template < class Host, class Memento >
class CheckForEquality
{
public:
@@ -234,6 +381,25 @@
}
private:
+ Memento m_compare;
+};
+
+template < class Host >
+class CheckForEquality< Host, void >
+{
+public:
+
+ inline explicit CheckForEquality( const Host * host ) :
+ m_compare( *host ) {}
+
+ inline bool Check( const Host * host ) const
+ {
+ const bool okay = ( m_compare == *host );
+ assert( okay );
+ return okay;
+ }
+
+private:
Host m_compare;
};
@@ -245,13 +411,15 @@
This exception-checking policy class for ContractChecker does nothing when
called. Host classes can use this to show which member functions provide
neither the strong nor no-throw exception guarantees. The best guarantee such
- functions can provide is that nothing gets leaked.
+ functions can provide is that nothing gets leaked. Use this policy for any
+ function that may throw exceptions and will change the host object.
@par Requirements For Host Class:
- This policy imposes no requirements on a host class.
+ This policy imposes no requirements on a host class. This ignores the Memento
+ template parameter.
*/
-template < class Host >
+template < class Host, class Memento >
class CheckForNothing
{
public:
@@ -308,12 +476,13 @@
template
<
class Host,
- template < class > class ExceptionPolicy
+ template < class, class > class ExceptionPolicy,
+ class Memento = void
>
-class ContractChecker : public ExceptionPolicy< Host >
+class ContractChecker : public ExceptionPolicy< Host, Memento >
{
/// Shorthand for the ExceptionPolicy class.
- typedef ExceptionPolicy< Host > Ep;
+ typedef ExceptionPolicy< Host, Memento > Ep;
public:
@@ -405,15 +574,15 @@
exception policies for ContractChecker, you might want to also write a struct
similiar to CheckFor to conveniently declare all your policies.
*/
-template < class Host >
+template < class Host, class Memento = void >
struct CheckFor
{
// These lines declare checkers for non-static functions in a host class.
- typedef ContractChecker< Host, CheckForNoChangeOrThrow > NoChangeOrThrow;
- typedef ContractChecker< Host, CheckForNoThrow > NoThrow;
- typedef ContractChecker< Host, CheckForNoChange > NoChange;
- typedef ContractChecker< Host, CheckForEquality > Equality;
- typedef ContractChecker< Host, CheckForNothing > Invariants;
+ typedef ContractChecker< Host, CheckForNoChangeOrThrow, Memento > NoChangeOrThrow;
+ typedef ContractChecker< Host, CheckForNoThrow, Memento > NoThrow;
+ typedef ContractChecker< Host, CheckForNoChange, Memento > NoChange;
+ typedef ContractChecker< Host, CheckForEquality, Memento > Equality;
+ typedef ContractChecker< Host, CheckForNothing, Memento > Invariants;
};
// ----------------------------------------------------------------------------
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|