- just doing some C++ifying
authorRyan Flegel <rflegel@gmail.com>
Wed, 9 Jun 2004 04:43:15 +0000 (04:43 +0000)
committerRyan Flegel <rflegel@gmail.com>
Wed, 9 Jun 2004 04:43:15 +0000 (04:43 +0000)
SVN-Revision: 1452

src/screen/drawing_context.cpp
src/screen/drawing_context.h
src/screen/font.cpp
src/screen/font.h
src/screen/screen.cpp
src/screen/texture.cpp
src/screen/texture.h

index 480b8bd..c5903f5 100644 (file)
 //  You should have received a copy of the GNU General Public License
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-#include <assert.h>
-#include "drawing_context.h"
-
-#include <iostream>
 #include <algorithm>
+#include <cassert>
+#include <iostream>
+
+#include "drawing_context.h"
 #include "texture.h"
 #include "globals.h"
 #include "font.h"
index c71fda1..0051301 100644 (file)
 //  You should have received a copy of the GNU General Public License
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-#ifndef __DRAWINGCONTEXT_H__
-#define __DRAWINGCONTEXT_H__
+#ifndef SUPERTUX_DRAWINGCONTEXT_H
+#define SUPERTUX_DRAWINGCONTEXT_H
 
 #include <vector>
 #include <string>
+
+#include "SDL.h"
+
 #include "vector.h"
 #include "screen.h"
-#include <SDL.h>
 
 class Surface;
 class Font;
@@ -170,5 +172,5 @@ private:
   DrawingRequests drawingrequests;
 };
 
-#endif
+#endif /*SUPERTUX_DRAWINGCONTEXT_H*/
 
index b0c3ecb..af159b9 100644 (file)
@@ -18,8 +18,9 @@
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //  02111-1307, USA.
 
-#include <stdlib.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstring>
+
 #include "globals.h"
 #include "defines.h"
 #include "screen.h"
index 00b5041..5b44f6e 100644 (file)
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //  02111-1307, USA.
 
-#ifndef SUPERTUX_TEXT_H
-#define SUPERTUX_TEXT_H
+#ifndef SUPERTUX_FONT_H
+#define SUPERTUX_FONT_H
 
 #include <string>
+
 #include "texture.h"
 #include "vector.h"
 
@@ -69,5 +70,5 @@ private:
   int last_char;
 };
 
-#endif /*SUPERTUX_TEXT_H*/
+#endif /*SUPERTUX_FONT_H*/
 
index 8a442b2..a89f025 100644 (file)
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 #include <iostream>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <errno.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
+#include <cerrno>
+
 #include <unistd.h>
-#include <SDL.h>
-#include <SDL_image.h>
+
+#include "SDL.h"
+#include "SDL_image.h"
 
 #ifndef WIN32
 #include <sys/types.h>
index c82b10d..fbb9a10 100644 (file)
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //  02111-1307, USA.
 
-#include <assert.h>
+#include <cassert>
 #include <iostream>
 #include <algorithm>
+
 #include "SDL.h"
 #include "SDL_image.h"
+
 #include "texture.h"
 #include "globals.h"
 #include "setup.h"
index e39b3ee..469b309 100644 (file)
 #ifndef SUPERTUX_TEXTURE_H
 #define SUPERTUX_TEXTURE_H
 
-#include <SDL.h>
 #include <string>
+#include <list>
+
 #ifndef NOOPENGL
-#include <SDL_opengl.h>
+#include "SDL_opengl.h"
 #endif
 
-#include <list>
+#include "SDL.h"
+
 #include "screen.h"
 #include "vector.h"