Commit Graph

283 Commits

Author SHA1 Message Date
Sylvain Pion 9d7a609ff2 Make assertions trigger an error only for *certain* conditions (using CGAL::certainly()).
This is useful for interval arithmetic code.
(replay of r44002 with the header order hopefully fixed)
2008-07-10 21:49:17 +00:00
Sylvain Pion 2b4ebf01f7 Undo r44002 as it's buggy 2008-07-06 20:47:29 +00:00
Sylvain Pion 514a17ad4f Improve the interaction of assertions and interval computations.
Things like "CGAL_assertion(denominator != 0)" produced assertion failures for no gain.
So now, the assertion is triggered only if the condition is certain, using CGAL::certainly().
That is, change the following in all assertion files :
  ((EX)?(static_cast<void>(0)): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__))
to :
  (CGAL::certainly(EX)?(static_cast<void>(0)): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__))
2008-07-06 17:05:47 +00:00
Fernando Cacciola f93437ca22 Removed *unmodified* auto-generated CMakeLists.txt (now created by create_internal_release) 2008-05-05 14:01:55 +00:00
Andreas Meyer 20315de571 * replaced CGAL_test_assert with ::assert, instead of CGAL_assertion
* removed include/Testsuite/assert.h
2008-03-19 13:45:36 +00:00
Fernando Cacciola b704509dcf Examples/Demos/Test CMake scripts updated 2008-03-05 21:14:02 +00:00
Fernando Cacciola a659cd852a Added project() and conditional test for CGAL_DIR 2008-02-14 15:42:36 +00:00
Fernando Cacciola 14043c43a0 Replaced CGALROOT by CGAL_DIR (the latters is used by CMake automatically) 2008-02-08 17:47:21 +00:00
Fernando Cacciola afddfc4fca CMake scripts for demos/examples/test added 2008-02-06 19:06:24 +00:00
Sylvain Pion 4d1b8d63e3 Remove workarounds and support for the BORLAND compiler. 2008-01-20 20:24:20 +00:00
Sylvain Pion 838dab23ab Add missing #include <cassert> . 2008-01-20 19:13:05 +00:00
Sylvain Pion b24108f5fd Remove #include <cassert> from everywhere under include/CGAL/.
CGAL code has to use CGAL assertions instead.
2008-01-20 18:47:19 +00:00
Sylvain Pion 5c551050a5 Remove obsolete VC++ 6 specific code. 2008-01-20 15:27:47 +00:00
Sylvain Pion cfa600f93e Fix previously erronously removed closing curly brace... 2008-01-03 22:01:37 +00:00
Sylvain Pion 284cfd9468 More removal of SUNPRO+RW's STL obsolete workarounds:
CGAL_CFG_RWSTD_NO_MEMBER_TEMPLATES
2008-01-03 15:19:39 +00:00
Sylvain Pion 88ed563f44 Remove some workarounds for SunPRO + RW's STL:
CGAL_CFG_MISSING_TEMPLATE_VECTOR_CONSTRUCTORS_BUG
CGAL_CFG_RWSTD_NO_MEMBER_TEMPLATES  (partially so far)
CGAL_make_vector
CGAL_make_list
2008-01-03 14:50:13 +00:00
Sylvain Pion dc36f95429 Remove warning for empty body of for loop 2007-12-30 15:11:49 +00:00
Sylvain Pion d49e006c53 Remove default argument "0" to calls to assertion_fail() et al,
as the default is now the empty string "".
It should fix the problem that we have lost the assertion messages
(seeing "what():  basic_string::_S_construct NULL not valid" instead),
for packages that use package-specific assertion macros.
2007-12-21 21:58:27 +00:00
Sylvain Pion a46b55bf71 The files "changes.txt", "description.txt", "long_description.txt" and "maintainer"
are now under /trunk/$Package/package_info/$Package/ .
2007-12-02 15:06:42 +00:00
Andreas Meyer 6623d525eb * replaced assert in */test/*/*.{cpp,h} with CGAL_test_assertion
* replaced #include <assert.h> with the according CGAL/Testsuite/assert.h
2007-11-07 21:35:42 +00:00
Andreas Fabri 20d0950686 When reading an object recenter the window 2007-10-09 11:52:15 +00:00
Marc Glisse a9a80e947e Fix RWSTD workaround. 2007-08-24 14:29:39 +00:00
Camille Wormser 5a8c4f8280 Adds the Equal_2 predicate to the Partition_2 traits
to fulfill the new requirements of is_convex_2
2007-06-28 08:46:53 +00:00
Fernando Cacciola 88111fcf70 VS project files merged back 2007-06-06 15:35:17 +00:00
Andreas Fabri a98c8e72b1 add demo 2007-05-04 13:49:33 +00:00
Andreas Meyer c1e9765ff4 manual fix: moved labels inside sectioning command 2007-04-18 14:20:12 +00:00
Sylvain Pion 3a51d2744c Use \ccc{} around concept names (protects the spell checker). 2007-04-17 16:12:18 +00:00
Sylvain Pion 48d60415a1 Spell check. 2007-04-17 16:07:31 +00:00
Andreas Fabri ea71b8eaa1 .C ->.cpp and autolinking 2007-04-11 13:59:20 +00:00
Efi Fogel 83f773cf28 cleanup - added parentheses to pacify some come compiler 2007-04-07 09:39:45 +00:00
Andreas Fabri 5639250769 initialization must be in the nested namespace 2007-04-03 10:28:28 +00:00
Fernando Cacciola 9905e5ab77 Fixed singular iterator issue using new safe circulator 2007-04-02 19:10:52 +00:00
Andreas Fabri e52bf7fec5 fixed template parameter for SunPro 2007-03-30 15:21:02 +00:00
Andreas Fabri f28d552ad8 copy constructor without deep copy but safe initialization 2007-03-30 11:05:27 +00:00
Andreas Meyer 41169fc270 * updated howtocite bibkeys for upcoming 3.3 release
* typo fixes/cosmetic changes
2007-03-29 17:40:13 +00:00
Fernando Cacciola ec9a2507a2 Fixed singular iterator in Partition_vertex 2007-03-21 14:51:42 +00:00
Joachim Reichel d08f6bea45 replace obsolete variable CGAL_QT_LDFLAGS by CGAL_LDFLAGS 2007-03-11 09:54:17 +00:00
Sylvain Pion b2630cd7e1 Apply trailing whites-spaces and leadgin+trailing empty-lines cleanups
to demo/**/*.h and .cpp.
2007-03-10 16:55:12 +00:00
Sylvain Pion 847c23a15e Removing leading and trailing empty lines from all example files.
Using the following Perl script:
-----------------------------------------------------
#!/usr/bin/perl

local($/) = undef;
my $text = <>;

$text =~ s/\A\n+//mg;
$text =~ s/\n+\Z/\n/mg;

print "$text";
-----------------------------------------------------
2007-03-10 16:17:17 +00:00
Sylvain Pion 6fb5cb906b Remove trailing white spaces and end of lines.
(using : perl -pi.bak -e 's/\s+$/\n/' */examples/*/*.cpp )
2007-03-10 14:59:41 +00:00
Sylvain Pion b8b87ab5a5 Actually, the "// file: example_bla.cpp" lines are not needed anymore,
since the manual tools know it.  So let's just remove them (many were
not uptodate with the filemane anyway).
2007-03-10 14:48:00 +00:00
Sylvain Pion 23edc11d3b Fix all first lines of examples "// file : example_file.C" to .cpp suffix.
Using :

for i in * ; do  cd $i ; for f in examples/*/*.cpp ; do ( head -1 $f | grep file | grep -v '\.cpp' ) && echo $f && perl -pi.bak -e 's/\.C$/.cpp/' $f ; done ; cd .. ; done
2007-03-10 14:34:05 +00:00
Sylvain Pion d7a6a0f560 Add missing CGAL:: (spotted by g++ 4.3) 2007-03-01 10:44:59 +00:00
Andreas Fabri 72f5159ec9 Put Edge_list in a subnamespace as it collides with Apollonius_graph's Edge_list 2007-02-23 14:35:16 +00:00
Sylvain Pion f672e83fd5 macros must be prefixed by CGAL_ 2007-02-15 21:29:22 +00:00
Sylvain Pion 26e1954d53 remove g++ 4.3 warning 2007-02-11 22:44:29 +00:00
Marc Glisse 4d7829ad71 can't do: typedef A<B> A
instead: typedef C::A<B> A
2007-02-09 19:14:20 +00:00
Mariette Yvinec 6dfe83ad60 update the maintainer file 2007-02-05 17:26:33 +00:00
Sylvain Pion d7fc298c8c Guess what ? rename .C to .cpp. 2007-01-27 20:56:40 +00:00
Fernando Cacciola e6ddc1f499 VC8 STL Fixes 2007-01-15 14:08:48 +00:00
Sylvain Pion 29d13841fb Uniformize the format. Add some missing/updates. 2006-12-17 11:58:21 +00:00
Andreas Meyer 92e439cf19 added some more package description illustrations 2006-10-30 15:44:23 +00:00
Ron Wein 4774049577 Added this-> before inherited member-functions. 2006-08-21 06:40:13 +00:00
Andreas Fabri 473bb9c249 changed .C to .cpp in examples 2006-07-09 19:34:04 +00:00
Andreas Fabri 1349d5e02c fix of \ccPkgIntroducedInCGAL 2006-06-20 11:27:58 +00:00
Andreas Fabri 64ba58316d Added package description 2006-06-16 13:43:30 +00:00
Ron Wein 3cea9dd951 Fixed a renaming problem. 2006-06-04 15:21:22 +00:00
Ron Wein 3d2ed6cbb4 Changed the *.C files to *_impl.h files. Also moved all non-interface include
files under the folder Partition_2.
2006-05-29 08:30:22 +00:00
Andreas Fabri a1b698c8a4 upgrade to VC7.3 and fixes 2006-04-25 14:40:22 +00:00
Laurent Saboret 87d65f75e3 Fixed svn properties of ASCII files (as defined by Maintenance/svn_client/config) 2006-04-18 12:42:52 +00:00
Laurent Saboret 312353dd51 Global fix of svn:executable property in trunk 2006-04-14 15:07:17 +00:00
Andreas Meyer 10e67ca4d7 make to work with \ccEnableRawListOfRefpages 2006-04-09 12:37:15 +00:00
Andreas Meyer 5b5a60cecf rewritten the whole manual
ok. seriously:

renamed \chapter into \ccUserChapter and \ccRefChapter
2006-04-06 17:03:37 +00:00
Andreas Fabri fc96d2ad5a cleanup of \sections 2006-04-05 13:40:29 +00:00
Andreas Fabri 88b64560ad cleanup of \sections 2006-04-05 07:42:43 +00:00
Sylvain Pion 44bec1b413 - Flatten code structure to remove warning. 2006-03-27 09:13:37 +00:00
Sylvain Pion f1410d4d9d Some CGAL_USE_QT versus <CGAL/basic.h> ordering issues spotted
by the following (quick and very dirty) perl regexp :
perl -0777pi.bak -e 'print m!CGAL_USE_QT(.|[\r\n])*CGAL/basic!g;' */demo/*/*.C
2006-03-19 22:43:06 +00:00
Joachim Reichel f582718758 rename create_makefile to cgal_create_makefile to avoid name clashes,
adjust all occurences of create_makefile and create\_makefile in the entire
repository (well, trunk only)
2006-03-15 22:10:02 +00:00
Joachim Reichel 11a449ae00 Added/fixed CGAL_MAKEFILE= line in makefiles 2006-03-14 19:35:55 +00:00
Andreas Fabri ebba8ba6b4 Fixed the demo by using the same kernel in all .C files 2006-03-14 13:29:11 +00:00
Andreas Meyer ef93538e87 fixed some additional IncludeExampleCode bugs 2006-03-10 11:45:51 +00:00
Andreas Meyer 2859db4e6f fixed example filename. 2006-03-10 11:27:04 +00:00
Andreas Fabri 7dcda6ff48 Changed names of examamples 2006-03-09 11:29:27 +00:00
Andreas Fabri 20226557c4 Replaced Planar with 2D in the chapter heading 2006-03-09 10:05:28 +00:00
Andreas Fabri e8c6d4ad37 #include <CGAL/basic.h> in the demo 2006-03-09 08:36:13 +00:00
Andreas Fabri 227f0c1112 #include <CGAL/basic.h> in the demo 2006-03-08 13:33:50 +00:00
Sylvain Pion 0e130994a7 - Fix for universal brain damage: "the the" -> "the". 2006-03-06 17:38:43 +00:00
Laurent Saboret db6a8f948c Change CVS keywords to SVN style 2006-02-16 14:30:13 +00:00
Andreas Fabri 073ec58f32 Replaced a : by a ; 2006-02-15 17:36:18 +00:00
Andreas Fabri 654a1b7131 Added CGAL:: 2006-02-15 17:19:25 +00:00
Andreas Fabri 5ed46dc299 Replaced kernel 2006-02-15 17:18:27 +00:00
Laurent Saboret 1aad55d4cb Change CVS keywords to SVN style 2006-02-14 10:08:15 +00:00
Laurent Saboret 7ca4a37690 Move packages to trunk root 2006-02-14 08:58:18 +00:00