Go to file
Daniel Richard G 0afb5618ce Quash warnings for floating-point equality comparisons
GCC and Clang's -Wfloat-equal warning notes that comparing floating-point
values with == or != may be questionable. But the few instances of these in
SolveSpace are defensibly correct (as discussed with Jonathan), so to keep
folks from getting nervous that a CAD application isn't handling its floats
correctly, we define an EXACT() macro inside which the -Wfloat-equal
warning is disabled. This macro will also serve as a source-code
annotation, like a comment but better.

(The warning is only disabled for Clang, alas, because GCC is particular
about where _Pragma() can be used. This isn't so bad, however, because the
warning is much easier to enable on Clang [thanks to -Weverything], whereas
with GCC it has to be requested explicitly.)
2013-10-28 00:43:37 -04:00
exposed Use C99 integer types and C++ boolean types/values 2013-10-02 01:45:13 -04:00
extlib Add support for the 3dconnexion six degree of freedom input devices 2009-07-20 11:05:33 -08:00
icons Add two more icons to the toolbar, for text in a TrueType font and 2010-05-16 09:04:56 -08:00
obj This is my initial checkin for solvespace, a second attempt at 2008-03-25 02:02:13 -08:00
srf Quash warnings for floating-point equality comparisons 2013-10-28 00:43:37 -04:00
tools Use C99 integer types and C++ boolean types/values 2013-10-02 01:45:13 -04:00
win32 Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
COPYING.txt Changes in preparation for the release of SolveSpace under the GPL, 2013-07-28 14:08:34 -08:00
Makefile.msvc Make optional the use of the SpaceNavigator libraries 2013-09-20 15:25:14 -04:00
bitmapextra.table.h Renamed *.table files to *.table.h 2013-09-16 17:14:53 -04:00
bitmapfont.table.h Use C99 integer types and C++ boolean types/values 2013-10-02 01:45:13 -04:00
bsp.cpp Quash "variable may be used uninitialized" warnings 2013-08-26 15:36:00 -04:00
clipboard.cpp Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
confscreen.cpp Replaced RGB-color integers with dedicated data structure 2013-10-25 01:49:12 -04:00
constraint.cpp Added const qualifiers 2013-08-26 14:58:35 -04:00
constrainteq.cpp Changes in preparation for the release of SolveSpace under the GPL, 2013-07-28 14:08:34 -08:00
describescreen.cpp Use C99 integer types and C++ boolean types/values 2013-10-02 01:45:13 -04:00
draw.cpp Replaced RGB-color integers with dedicated data structure 2013-10-25 01:49:12 -04:00
drawconstraint.cpp Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
drawentity.cpp Quash "variable may be used uninitialized" warnings 2013-08-26 15:36:00 -04:00
dsc.h Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
entity.cpp Changes in preparation for the release of SolveSpace under the GPL, 2013-07-28 14:08:34 -08:00
export.cpp Replaced RGB-color integers with dedicated data structure 2013-10-25 01:49:12 -04:00
exportstep.cpp Changes in preparation for the release of SolveSpace under the GPL, 2013-07-28 14:08:34 -08:00
exportvector.cpp Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
expr.cpp Use C99 integer types and C++ boolean types/values 2013-10-02 01:45:13 -04:00
expr.h Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
file.cpp Replaced RGB-color integers with dedicated data structure 2013-10-25 01:49:12 -04:00
font.table.h Renamed *.table files to *.table.h 2013-09-16 17:14:53 -04:00
generate.cpp Use C99 integer types and C++ boolean types/values 2013-10-02 01:45:13 -04:00
glhelper.cpp Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
graphicswin.cpp Quash warnings for floating-point equality comparisons 2013-10-28 00:43:37 -04:00
group.cpp Miscellaneous adjustments for warnings and code quality 2013-09-19 02:35:56 -04:00
groupmesh.cpp Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
icon.ico Add an icon file (ugly, but at least it's not the default anymore). 2008-07-18 01:50:52 -08:00
mesh.cpp Use C99 integer types and C++ boolean types/values 2013-10-02 01:45:13 -04:00
modify.cpp Quash "variable may be used uninitialized" warnings 2013-08-26 15:36:00 -04:00
mouse.cpp Use C99 integer types and C++ boolean types/values 2013-10-02 01:45:13 -04:00
png2c.pl Revised the Perl scripts 2013-08-26 17:45:09 -04:00
pngchar2c.pl Revised the Perl scripts 2013-08-26 17:45:09 -04:00
polygon.cpp Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
polygon.h Replaced RGB-color integers with dedicated data structure 2013-10-25 01:49:12 -04:00
request.cpp Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
sketch.h Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
solvespace.cpp Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
solvespace.h Quash warnings for floating-point equality comparisons 2013-10-28 00:43:37 -04:00
style.cpp Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
system.cpp Use C99 integer types and C++ boolean types/values 2013-10-02 01:45:13 -04:00
textscreens.cpp Replaced RGB-color integers with dedicated data structure 2013-10-25 01:49:12 -04:00
textwin.cpp Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
toolbar.cpp Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
ttf.cpp Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
ui.h Various fixes for warnings and minutia 2013-10-28 00:42:39 -04:00
undoredo.cpp Changes in preparation for the release of SolveSpace under the GPL, 2013-07-28 14:08:34 -08:00
util.cpp Quash warnings for floating-point equality comparisons 2013-10-28 00:43:37 -04:00
view.cpp Use C99 integer types and C++ boolean types/values 2013-10-02 01:45:13 -04:00
wishlist.txt Make oops() calls exit instead of entering debugger by default, 2011-03-05 12:52:57 -08:00