[Bf-committers] my first little patch

Engel Sanchez bf-committers@blender.org
Fri, 8 Aug 2003 14:45:09 -0700 (PDT)


--0-1784561723-1060379109=:69940
Content-Type: text/plain; charset=us-ascii


Hi, everybody. I'd like somebody to check this simple patch that basically changes all the 

#include <iostream.h> 

 to

#include <iostream>

Which is what the C++ standard defines (<iostream.h> is a transitional syntax that many compilers still support). Simple, right? :)

This is one of the few things I had to change in the code to get it to compile in MS Visual C++ 7.1. More to come. I like taking baby steps. Hopefully I'll be able to contribute more meaningful things soon :) Let me know if there's a better way to submit these patches.

Here it is, and also as an attachment:

Index: source/blender/render/intern/include/RE_ShadowBuffer.h
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/render/intern/include/RE_ShadowBuffer.h,v
retrieving revision 1.5
diff -u -r1.5 RE_ShadowBuffer.h
--- source/blender/render/intern/include/RE_ShadowBuffer.h 27 Dec 2002 13:10:33 -0000 1.5
+++ source/blender/render/intern/include/RE_ShadowBuffer.h 8 Aug 2003 15:12:56 -0000
@@ -33,7 +33,7 @@
 #ifndef RE_SHADOWBUFFER_H
 #define RE_SHADOWBUFFER_H
 
-#include <iostream.h>
+#include <iostream>
 
 struct ShadBuf;
 struct LampRen;
Index: source/gameengine/GameLogic/SCA_IInputDevice.cpp
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/gameengine/GameLogic/SCA_IInputDevice.cpp,v
retrieving revision 1.3
diff -u -r1.3 SCA_IInputDevice.cpp
--- source/gameengine/GameLogic/SCA_IInputDevice.cpp 25 Nov 2002 15:29:42 -0000 1.3
+++ source/gameengine/GameLogic/SCA_IInputDevice.cpp 8 Aug 2003 15:12:57 -0000
@@ -29,7 +29,7 @@
  * ***** END GPL/BL DUAL LICENSE BLOCK *****
  */
 
-#include <iostream.h>
+#include <iostream>
 #include "SCA_IInputDevice.h"
 
 #ifdef HAVE_CONFIG_H
Index: source/gameengine/GameLogic/SCA_KeyboardManager.cpp
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/gameengine/GameLogic/SCA_KeyboardManager.cpp,v
retrieving revision 1.3
diff -u -r1.3 SCA_KeyboardManager.cpp
--- source/gameengine/GameLogic/SCA_KeyboardManager.cpp 25 Nov 2002 15:29:42 -0000 1.3
+++ source/gameengine/GameLogic/SCA_KeyboardManager.cpp 8 Aug 2003 15:12:57 -0000
@@ -32,7 +32,7 @@
  * ***** END GPL/BL DUAL LICENSE BLOCK *****
  */
 
-#include <iostream.h>
+#include <iostream>
 #include "BoolValue.h"
 #include "SCA_KeyboardManager.h"
 #include "SCA_KeyboardSensor.h"
Index: source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp,v
retrieving revision 1.3
diff -u -r1.3 GPC_KeyboardDevice.cpp
--- source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp 25 Nov 2002 15:29:45 -0000 1.3
+++ source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp 8 Aug 2003 15:12:57 -0000
@@ -30,7 +30,7 @@
  * ***** END GPL/BL DUAL LICENSE BLOCK *****
  */
 
-#include <iostream.h>
+#include <iostream>
 #include "GPC_KeyboardDevice.h"
 
 #ifdef HAVE_CONFIG_H





---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
--0-1784561723-1060379109=:69940
Content-Type: text/html; charset=us-ascii

<DIV>
<DIV>
<P>Hi, everybody. I'd like somebody to check this simple patch that basically changes all the </P>
<P>#include &lt;iostream.h&gt; </P>
<P>&nbsp;to</P>
<P>#include &lt;iostream&gt;</P>
<P>Which is what the C++ standard defines (&lt;iostream.h&gt; is a transitional syntax that many compilers still support). Simple, right? :)</P>
<P>This is one of the few things I had to change in the code to get it to compile in MS Visual C++ 7.1. More to come. I like taking baby steps. Hopefully I'll be able to contribute more meaningful things soon :) Let me know if there's a better way to submit these patches.</P>
<P>Here it is, and also as an attachment:</P>
<P>Index: source/blender/render/intern/include/RE_ShadowBuffer.h<BR>===================================================================<BR>RCS file: /cvsroot/bf-blender/blender/source/blender/render/intern/include/RE_ShadowBuffer.h,v<BR>retrieving revision 1.5<BR>diff -u -r1.5 RE_ShadowBuffer.h<BR>--- source/blender/render/intern/include/RE_ShadowBuffer.h&nbsp;27 Dec 2002 13:10:33 -0000&nbsp;1.5<BR>+++ source/blender/render/intern/include/RE_ShadowBuffer.h&nbsp;8 Aug 2003 15:12:56 -0000<BR>@@ -33,7 +33,7 @@<BR>&nbsp;#ifndef RE_SHADOWBUFFER_H<BR>&nbsp;#define RE_SHADOWBUFFER_H<BR>&nbsp;<BR>-#include &lt;iostream.h&gt;<BR>+#include &lt;iostream&gt;<BR>&nbsp;<BR>&nbsp;struct ShadBuf;<BR>&nbsp;struct LampRen;<BR>Index: source/gameengine/GameLogic/SCA_IInputDevice.cpp<BR>===================================================================<BR>RCS file: /cvsroot/bf-blender/blender/source/gameengine/GameLogic/SCA_IInputDevice.cpp,v<BR>retrieving revision 1.3<BR>diff -u -r1.3
 SCA_IInputDevice.cpp<BR>--- source/gameengine/GameLogic/SCA_IInputDevice.cpp&nbsp;25 Nov 2002 15:29:42 -0000&nbsp;1.3<BR>+++ source/gameengine/GameLogic/SCA_IInputDevice.cpp&nbsp;8 Aug 2003 15:12:57 -0000<BR>@@ -29,7 +29,7 @@<BR>&nbsp; * ***** END GPL/BL DUAL LICENSE BLOCK *****<BR>&nbsp; */<BR>&nbsp;<BR>-#include &lt;iostream.h&gt;<BR>+#include &lt;iostream&gt;<BR>&nbsp;#include "SCA_IInputDevice.h"<BR>&nbsp;<BR>&nbsp;#ifdef HAVE_CONFIG_H<BR>Index: source/gameengine/GameLogic/SCA_KeyboardManager.cpp<BR>===================================================================<BR>RCS file: /cvsroot/bf-blender/blender/source/gameengine/GameLogic/SCA_KeyboardManager.cpp,v<BR>retrieving revision 1.3<BR>diff -u -r1.3 SCA_KeyboardManager.cpp<BR>--- source/gameengine/GameLogic/SCA_KeyboardManager.cpp&nbsp;25 Nov 2002 15:29:42 -0000&nbsp;1.3<BR>+++ source/gameengine/GameLogic/SCA_KeyboardManager.cpp&nbsp;8 Aug 2003 15:12:57 -0000<BR>@@ -32,7 +32,7 @@<BR>&nbsp; * ***** END GPL/BL DUAL LICENSE
 BLOCK *****<BR>&nbsp; */<BR>&nbsp;<BR>-#include &lt;iostream.h&gt;<BR>+#include &lt;iostream&gt;<BR>&nbsp;#include "BoolValue.h"<BR>&nbsp;#include "SCA_KeyboardManager.h"<BR>&nbsp;#include "SCA_KeyboardSensor.h"<BR>Index: source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp<BR>===================================================================<BR>RCS file: /cvsroot/bf-blender/blender/source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp,v<BR>retrieving revision 1.3<BR>diff -u -r1.3 GPC_KeyboardDevice.cpp<BR>--- source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp&nbsp;25 Nov 2002 15:29:45 -0000&nbsp;1.3<BR>+++ source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp&nbsp;8 Aug 2003 15:12:57 -0000<BR>@@ -30,7 +30,7 @@<BR>&nbsp; * ***** END GPL/BL DUAL LICENSE BLOCK *****<BR>&nbsp; */<BR>&nbsp;<BR>-#include &lt;iostream.h&gt;<BR>+#include &lt;iostream&gt;<BR>&nbsp;#include "GPC_KeyboardDevice.h"<BR>&nbsp;<BR>&nbsp;#ifdef HAVE_CONFIG_H<BR></P></DIV></DIV><p><hr
 SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/evt=10469/*http://sitebuilder.yahoo.com">Yahoo! SiteBuilder</a> - Free, easy-to-use web site design software
--0-1784561723-1060379109=:69940--