[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35139] trunk/blender/source/creator: fix #if errors, add defined() in proper places

Nathan Letwory nathan at letworyinteractive.com
Fri Feb 25 11:01:33 CET 2011


Revision: 35139
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35139
Author:   jesterking
Date:     2011-02-25 10:01:33 +0000 (Fri, 25 Feb 2011)
Log Message:
-----------
fix #if errors, add defined() in proper places
doxygen: add file tags

Modified Paths:
--------------
    trunk/blender/source/creator/buildinfo.c
    trunk/blender/source/creator/creator.c

Modified: trunk/blender/source/creator/buildinfo.c
===================================================================
--- trunk/blender/source/creator/buildinfo.c	2011-02-25 08:40:57 UTC (rev 35138)
+++ trunk/blender/source/creator/buildinfo.c	2011-02-25 10:01:33 UTC (rev 35139)
@@ -27,6 +27,11 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
+/** \file creator/buildinfo.c
+ *  \ingroup creator
+ */
+
+
 #ifdef WITH_BUILDINFO_HEADER
 #include "buildinfo.h"
 #endif

Modified: trunk/blender/source/creator/creator.c
===================================================================
--- trunk/blender/source/creator/creator.c	2011-02-25 08:40:57 UTC (rev 35138)
+++ trunk/blender/source/creator/creator.c	2011-02-25 10:01:33 UTC (rev 35139)
@@ -27,6 +27,11 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
+/** \file creator/creator.c
+ *  \ingroup creator
+ */
+
+
 #if defined(__linux__) && defined(__GNUC__)
 #define _GNU_SOURCE
 #include <fenv.h>
@@ -34,7 +39,7 @@
 
 #define OSX_SSE_FPE (defined(__APPLE__) && (defined(__i386__) || defined(__x86_64__)))
 
-#if OSX_SSE_FPE
+#if defined(OSX_SSE_FPE)
 #include <xmmintrin.h>
 #endif
 
@@ -151,7 +156,7 @@
 static void setCallbacks(void); 
 
 /* set breakpoints here when running in debug mode, useful to catch floating point errors */
-#if defined(__sgi) || defined(__linux__) || defined(_WIN32) || OSX_SSE_FPE
+#if defined(__sgi) || defined(__linux__) || defined(_WIN32) || defined(OSX_SSE_FPE)
 static void fpe_handler(int UNUSED(sig))
 {
 	// printf("SIGFPE trapped\n");
@@ -383,7 +388,7 @@
 
 static int set_fpe(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data))
 {
-#if defined(__sgi) || defined(__linux__) || defined(_WIN32) || OSX_SSE_FPE
+#if defined(__sgi) || defined(__linux__) || defined(_WIN32) || defined(OSX_SSE_FPE)
 	/* zealous but makes float issues a heck of a lot easier to find!
 	 * set breakpoints on fpe_handler */
 	signal(SIGFPE, fpe_handler);
@@ -391,7 +396,7 @@
 # if defined(__linux__) && defined(__GNUC__)
 	feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW );
 # endif	/* defined(__linux__) && defined(__GNUC__) */
-# if OSX_SSE_FPE
+# if defined(OSX_SSE_FPE)
 	/* OSX uses SSE for floating point by default, so here 
 	 * use SSE instructions to throw floating point exceptions */
 	_MM_SET_EXCEPTION_MASK(_MM_MASK_MASK &~




More information about the Bf-blender-cvs mailing list