Revision: 54074
http://brlcad.svn.sourceforge.net/brlcad/?rev=54074&view=rev
Author: brlcad
Date: 2012-12-17 18:44:11 +0000 (Mon, 17 Dec 2012)
Log Message:
-----------
revert the fastf_t change to float introduced after r54057, that was not
intentional with the comment change on fclose().
Revision Links:
--------------
http://brlcad.svn.sourceforge.net/brlcad/?rev=54057&view=rev
Modified Paths:
--------------
brlcad/trunk/include/bu.h
Modified: brlcad/trunk/include/bu.h
===================================================================
--- brlcad/trunk/include/bu.h 2012-12-17 17:18:53 UTC (rev 54073)
+++ brlcad/trunk/include/bu.h 2012-12-17 18:44:11 UTC (rev 54074)
@@ -1178,7 +1178,7 @@
* TODO: If used pervasively, it should eventually be possible to make
* fastf_t a GMP C++ type for fixed-precision computations.
*/
-typedef float fastf_t;
+typedef double fastf_t;
/**
* Definitions about limits of floating point representation
@@ -1210,8 +1210,6 @@
* (DEPRECATED)
*
*/
-#if 0
-
#if defined(vax)
/* DEC VAX "D" format, the most restrictive */
# define MAX_FASTF 1.0e37 /* Very close to the largest number */
@@ -1230,24 +1228,6 @@
# endif
#endif
-#else
-
-# define MAX_FASTF 1.0e37 /* Very close to the largest number */
-# define SQRT_MAX_FASTF 1.0e18 /* This squared just avoids overflow */
-# define SMALL_FASTF 1.0e-37 /* Anything smaller is zero */
-# define SQRT_SMALL_FASTF 1.0e-18 /* This squared gives zero */
-
-#if 0
-
-#include <float.h>
-# define MAX_FASTF (sizeof(fastf_t) == sizeof(float) ? FLT_MAX : DBL_MAX)
-# define SQRT_MAX_FASTF sqrt(MAX_FASTF)
-# define SMALL_FASTF (sizeof(fastf_t) == sizeof(float) ? FLT_MIN : DBL_MIN)
-# define SQRT_SMALL_FASTF sqrt(SMALL_FASTF)
-#endif
-
-#endif /* testing new macros */
-
/** DEPRECATED, do not use */
#define SMALL SQRT_SMALL_FASTF
@@ -3302,7 +3282,7 @@
char filename[MAXPATHLEN];
fp = bu_temp_file(&filename, MAXPATHLEN); // get file name
...
- fclose(fp); // close the file when you're done
+ fclose(fp); // optional, auto-closed on exit
...
fp = bu_temp_file(NULL, 0); // don't need file name
bu_fchmod(fileno(fp), 0777);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits