Enlightenment CVS committal
Author : mej
Project : eterm
Module : libast
Dir : eterm/libast/include
Modified Files:
libast.h
Log Message:
Mon Nov 10 14:28:09 2003 Michael Jennings (mej)
Added assertions/requirements for string member functions.
Changed pointer printouts to %010p instead of %8p, since the latter
didn't account for the possibility of a leading "0x".
Fixed typos in hex_dump().
===================================================================
RCS file: /cvsroot/enlightenment/eterm/libast/include/libast.h,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- libast.h 8 Apr 2003 21:15:10 -0000 1.36
+++ libast.h 10 Nov 2003 19:29:17 -0000 1.37
@@ -30,8 +30,8 @@
* including all required system headers and LibAST Object headers.
*
* @author Michael Jennings <[EMAIL PROTECTED]>
- * @version $Revision: 1.36 $
- * @date $Date: 2003/04/08 21:15:10 $
+ * @version $Revision: 1.37 $
+ * @date $Date: 2003/11/10 19:29:17 $
*/
#ifndef _LIBAST_H_
@@ -67,6 +67,7 @@
#include <errno.h>
#include <signal.h>
#include <limits.h>
+#include <math.h>
#ifdef TIME_WITH_SYS_TIME
# include <sys/time.h>
#endif
@@ -301,6 +302,24 @@
* @return @a x, or if @a x is NULL, the string "<@a x null>"
*/
#define NONULL(x) (((char *) (x)) ? ((char *) (x)) : ((char *) ("<" #x " null>")))
+
+/**
+ * Not-A-Number
+ *
+ * This makes sure NAN is defined.
+ */
+#ifndef NAN
+# ifdef MAX_FLOAT
+# define NAN MAX_FLOAT
+# elsif defined(MAXFLOAT)
+# define NAN MAX_FLOAT
+# elsif defined(HUGE)
+# define NAN HUGE
+# else
+/* FIXME: This could be dangerous...anyone have a better idea? */
+# define NAN 3.40282347e+38F
+# endif
+#endif
/****************************** DEBUGGING GOOP ********************************/
#ifndef LIBAST_DEBUG_FD
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs