浏览代码

readme and fixed a bunch of ifndef headers

Former-commit-id: bc138a55d45cd923b88e04a7fc6a1a9892684798
jalec 13 年之前
父节点
当前提交
2910231501
共有 10 个文件被更改,包括 22 次插入18 次删除
  1. 2 2
      gl_type_size.h
  2. 2 2
      limit_faces.h
  3. 2 2
      moveFV.h
  4. 2 2
      point_in_circle.h
  5. 4 0
      readme.txt
  6. 2 2
      report_gl_error.h
  7. 2 2
      stdin_to_temp.h
  8. 2 2
      texture_from_tga.h
  9. 2 2
      transpose_blocks.h
  10. 2 2
      uniform_type_to_string.h

+ 2 - 2
gl_type_size.h

@@ -1,5 +1,5 @@
-#ifndef IGL_GL_TYPE_SIZE
-#define IGL_GL_TYPE_SIZE
+#ifndef IGL_GL_TYPE_SIZE_H
+#define IGL_GL_TYPE_SIZE_H
 
 #if __APPLE__
 #  include <OpenGL/gl.h>

+ 2 - 2
limit_faces.h

@@ -1,5 +1,5 @@
-#ifndef IGL_LIMIT_FACES
-#define IGL_LIMIT_FACES
+#ifndef IGL_LIMIT_FACES_H
+#define IGL_LIMIT_FACES_H
 namespace igl
 {
   // LIMIT_FACES limit given faces F to those which contain (only) indices found

+ 2 - 2
moveFV.h

@@ -6,8 +6,8 @@
 //  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
 //
 
-#ifndef IGL_MOVEFV_h
-#define IGL_MOVEFV_h
+#ifndef IGL_MOVEFV_H
+#define IGL_MOVEFV_H
 
 namespace igl 
 {

+ 2 - 2
point_in_circle.h

@@ -1,5 +1,5 @@
-#ifndef IGL_POINT_IN_CIRCLE
-#define IGL_POINT_IN_CIRCLE
+#ifndef IGL_POINT_IN_CIRCLE_H
+#define IGL_POINT_IN_CIRCLE_H
 
 namespace igl
 {

+ 4 - 0
readme.txt

@@ -118,3 +118,7 @@ description of each template, input and output in each prototype.
     grep -l "^using namespace" *.cpp
 
 
+  Find .h files that contain ifndef IGL_*[^H]
+
+     grep -l "ifndef IGL_.*[^H] *$" *
+

+ 2 - 2
report_gl_error.h

@@ -1,5 +1,5 @@
-#ifndef IGL_REPORT_GL_ERROR
-#define IGL_REPORT_GL_ERROR
+#ifndef IGL_REPORT_GL_ERROR_H
+#define IGL_REPORT_GL_ERROR_H
 
 #ifdef __APPLE__
 #  include <OpenGL/gl.h>

+ 2 - 2
stdin_to_temp.h

@@ -1,5 +1,5 @@
-#ifndef IGL_STDIN_TO_TEMP
-#define IGL_STDIN_TO_TEMP
+#ifndef IGL_STDIN_TO_TEMP_H
+#define IGL_STDIN_TO_TEMP_H
 #include <cstdio>
 namespace igl
 {

+ 2 - 2
texture_from_tga.h

@@ -1,5 +1,5 @@
-#ifndef IGL_TEXTURE_FROM_TGA
-#define IGL_TEXTURE_FROM_TGA
+#ifndef IGL_TEXTURE_FROM_TGA_H
+#define IGL_TEXTURE_FROM_TGA_H
 
 #if __APPLE__
 #  include <OpenGL/gl.h>

+ 2 - 2
transpose_blocks.h

@@ -1,5 +1,5 @@
-#ifndef IGL_TRANSPOSE_BLOCKS
-#define IGL_TRANSPOSE_BLOCKS
+#ifndef IGL_TRANSPOSE_BLOCKS_H
+#define IGL_TRANSPOSE_BLOCKS_H
 
 #include <Eigen/Core>
 

+ 2 - 2
uniform_type_to_string.h

@@ -1,5 +1,5 @@
-#ifndef IGL_UNIFORM_TYPE_TO_STRING
-#define IGL_UNIFORM_TYPE_TO_STRING
+#ifndef IGL_UNIFORM_TYPE_TO_STRING_H
+#define IGL_UNIFORM_TYPE_TO_STRING_H
 
 #include <string>