From 97892bd190322b05cbb5612e9c163f2016db5417 Mon Sep 17 00:00:00 2001 From: Steve Hollasch Date: Sat, 19 Oct 2019 20:54:23 -0700 Subject: [PATCH] src: change header guard format Old style was `HITTABLELISTH`, new is `HITTABLE_LIST_H`. Easier to scan. Resolves #220 --- src/InOneWeekend/camera.h | 4 ++-- src/InOneWeekend/hittable.h | 4 ++-- src/InOneWeekend/hittable_list.h | 4 ++-- src/InOneWeekend/material.h | 4 ++-- src/InOneWeekend/random.h | 4 ++-- src/InOneWeekend/ray.h | 4 ++-- src/InOneWeekend/sphere.h | 4 ++-- src/TheNextWeek/aabb.h | 4 ++-- src/TheNextWeek/aarect.h | 4 ++-- src/TheNextWeek/box.h | 4 ++-- src/TheNextWeek/bvh.h | 4 ++-- src/TheNextWeek/camera.h | 4 ++-- src/TheNextWeek/constant_medium.h | 4 ++-- src/TheNextWeek/hittable.h | 4 ++-- src/TheNextWeek/hittable_list.h | 4 ++-- src/TheNextWeek/material.h | 4 ++-- src/TheNextWeek/moving_sphere.h | 4 ++-- src/TheNextWeek/perlin.h | 4 ++-- src/TheNextWeek/random.h | 4 ++-- src/TheNextWeek/ray.h | 4 ++-- src/TheNextWeek/sphere.h | 4 ++-- src/TheNextWeek/surface_texture.h | 4 ++-- src/TheNextWeek/texture.h | 4 ++-- src/TheRestOfYourLife/aabb.h | 4 ++-- src/TheRestOfYourLife/aarect.h | 4 ++-- src/TheRestOfYourLife/box.h | 4 ++-- src/TheRestOfYourLife/bvh.h | 4 ++-- src/TheRestOfYourLife/camera.h | 4 ++-- src/TheRestOfYourLife/constant_medium.h | 4 ++-- src/TheRestOfYourLife/hittable.h | 4 ++-- src/TheRestOfYourLife/hittable_list.h | 4 ++-- src/TheRestOfYourLife/material.h | 4 ++-- src/TheRestOfYourLife/moving_sphere.h | 4 ++-- src/TheRestOfYourLife/onb.h | 4 ++-- src/TheRestOfYourLife/pdf.h | 4 ++-- src/TheRestOfYourLife/perlin.h | 4 ++-- src/TheRestOfYourLife/random.h | 4 ++-- src/TheRestOfYourLife/ray.h | 4 ++-- src/TheRestOfYourLife/sphere.h | 4 ++-- src/TheRestOfYourLife/surface_texture.h | 4 ++-- src/TheRestOfYourLife/texture.h | 4 ++-- src/common/vec3.h | 4 ++-- 42 files changed, 84 insertions(+), 84 deletions(-) diff --git a/src/InOneWeekend/camera.h b/src/InOneWeekend/camera.h index 10a31510..f44e734e 100644 --- a/src/InOneWeekend/camera.h +++ b/src/InOneWeekend/camera.h @@ -1,5 +1,5 @@ -#ifndef CAMERAH -#define CAMERAH +#ifndef CAMERA_H +#define CAMERA_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/InOneWeekend/hittable.h b/src/InOneWeekend/hittable.h index 27548be8..e6e19bd7 100644 --- a/src/InOneWeekend/hittable.h +++ b/src/InOneWeekend/hittable.h @@ -1,5 +1,5 @@ -#ifndef HITTABLEH -#define HITTABLEH +#ifndef HITTABLE_H +#define HITTABLE_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/InOneWeekend/hittable_list.h b/src/InOneWeekend/hittable_list.h index c5f3f378..b96c2585 100644 --- a/src/InOneWeekend/hittable_list.h +++ b/src/InOneWeekend/hittable_list.h @@ -1,5 +1,5 @@ -#ifndef HITTABLELISTH -#define HITTABLELISTH +#ifndef HITTABLE_LIST_H +#define HITTABLE_LIST_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/InOneWeekend/material.h b/src/InOneWeekend/material.h index 4a03bf14..572aaf97 100644 --- a/src/InOneWeekend/material.h +++ b/src/InOneWeekend/material.h @@ -1,5 +1,5 @@ -#ifndef MATERIALH -#define MATERIALH +#ifndef MATERIAL_H +#define MATERIAL_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/InOneWeekend/random.h b/src/InOneWeekend/random.h index 539f6b7b..475c8566 100644 --- a/src/InOneWeekend/random.h +++ b/src/InOneWeekend/random.h @@ -1,5 +1,5 @@ -#ifndef RANDOMH -#define RANDOMH +#ifndef RANDOM_H +#define RANDOM_H #include diff --git a/src/InOneWeekend/ray.h b/src/InOneWeekend/ray.h index 5ca9c9a6..823d8977 100644 --- a/src/InOneWeekend/ray.h +++ b/src/InOneWeekend/ray.h @@ -1,5 +1,5 @@ -#ifndef RAYH -#define RAYH +#ifndef RAY_H +#define RAY_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/InOneWeekend/sphere.h b/src/InOneWeekend/sphere.h index 51261f59..2c1a1504 100644 --- a/src/InOneWeekend/sphere.h +++ b/src/InOneWeekend/sphere.h @@ -1,5 +1,5 @@ -#ifndef SPHEREH -#define SPHEREH +#ifndef SPHERE_H +#define SPHERE_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheNextWeek/aabb.h b/src/TheNextWeek/aabb.h index b3fd9f91..968d70c0 100644 --- a/src/TheNextWeek/aabb.h +++ b/src/TheNextWeek/aabb.h @@ -1,5 +1,5 @@ -#ifndef AABBH -#define AABBH +#ifndef AABB_H +#define AABB_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheNextWeek/aarect.h b/src/TheNextWeek/aarect.h index 66b5d9d0..f420f34d 100644 --- a/src/TheNextWeek/aarect.h +++ b/src/TheNextWeek/aarect.h @@ -1,5 +1,5 @@ -#ifndef AARECTH -#define AARECTH +#ifndef AARECT_H +#define AARECT_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheNextWeek/box.h b/src/TheNextWeek/box.h index a9cc7e28..7ca3a174 100644 --- a/src/TheNextWeek/box.h +++ b/src/TheNextWeek/box.h @@ -1,5 +1,5 @@ -#ifndef BOXH -#define BOXH +#ifndef BOX_H +#define BOX_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheNextWeek/bvh.h b/src/TheNextWeek/bvh.h index 1c52ed79..02dd69cc 100644 --- a/src/TheNextWeek/bvh.h +++ b/src/TheNextWeek/bvh.h @@ -1,5 +1,5 @@ -#ifndef BVHH -#define BVHH +#ifndef BVH_H +#define BVH_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheNextWeek/camera.h b/src/TheNextWeek/camera.h index 72a36668..a5776448 100644 --- a/src/TheNextWeek/camera.h +++ b/src/TheNextWeek/camera.h @@ -1,5 +1,5 @@ -#ifndef CAMERAH -#define CAMERAH +#ifndef CAMERA_H +#define CAMERA_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheNextWeek/constant_medium.h b/src/TheNextWeek/constant_medium.h index 1f3f6cf2..e35918e3 100644 --- a/src/TheNextWeek/constant_medium.h +++ b/src/TheNextWeek/constant_medium.h @@ -1,5 +1,5 @@ -#ifndef CMEDH -#define CMEDH +#ifndef CONSTANT_MEDIUM_H +#define CONSTANT_MEDIUM_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheNextWeek/hittable.h b/src/TheNextWeek/hittable.h index 131dcf3d..a19cf74e 100644 --- a/src/TheNextWeek/hittable.h +++ b/src/TheNextWeek/hittable.h @@ -1,5 +1,5 @@ -#ifndef HITTABLEH -#define HITTABLEH +#ifndef HITTABLE_H +#define HITTABLE_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheNextWeek/hittable_list.h b/src/TheNextWeek/hittable_list.h index 23c9d7d8..20b5b77f 100644 --- a/src/TheNextWeek/hittable_list.h +++ b/src/TheNextWeek/hittable_list.h @@ -1,5 +1,5 @@ -#ifndef HITTABLELISTH -#define HITTABLELISTH +#ifndef HITTABLE_LIST_H +#define HITTABLE_LIST_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheNextWeek/material.h b/src/TheNextWeek/material.h index 356eef87..e30ac3c7 100644 --- a/src/TheNextWeek/material.h +++ b/src/TheNextWeek/material.h @@ -1,5 +1,5 @@ -#ifndef MATERIALH -#define MATERIALH +#ifndef MATERIAL_H +#define MATERIAL_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheNextWeek/moving_sphere.h b/src/TheNextWeek/moving_sphere.h index 4bc1eeeb..60d1e420 100644 --- a/src/TheNextWeek/moving_sphere.h +++ b/src/TheNextWeek/moving_sphere.h @@ -1,5 +1,5 @@ -#ifndef MOVINGSPHEREH -#define MOVINGSPHEREH +#ifndef MOVING_SPHERE_H +#define MOVING_SPHERE_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheNextWeek/perlin.h b/src/TheNextWeek/perlin.h index b172323f..cc9ea07e 100644 --- a/src/TheNextWeek/perlin.h +++ b/src/TheNextWeek/perlin.h @@ -1,5 +1,5 @@ -#ifndef PERLINH -#define PERLINH +#ifndef PERLIN_H +#define PERLIN_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheNextWeek/random.h b/src/TheNextWeek/random.h index 9ad312ad..e3c8048e 100644 --- a/src/TheNextWeek/random.h +++ b/src/TheNextWeek/random.h @@ -1,5 +1,5 @@ -#ifndef RANDOMH -#define RANDOMH +#ifndef RANDOM_H +#define RANDOM_H #include diff --git a/src/TheNextWeek/ray.h b/src/TheNextWeek/ray.h index 9fb14d10..3d90f84e 100644 --- a/src/TheNextWeek/ray.h +++ b/src/TheNextWeek/ray.h @@ -1,5 +1,5 @@ -#ifndef RAYH -#define RAYH +#ifndef RAY_H +#define RAY_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheNextWeek/sphere.h b/src/TheNextWeek/sphere.h index 973c323d..8b6808fd 100644 --- a/src/TheNextWeek/sphere.h +++ b/src/TheNextWeek/sphere.h @@ -1,5 +1,5 @@ -#ifndef SPHEREH -#define SPHEREH +#ifndef SPHERE_H +#define SPHERE_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheNextWeek/surface_texture.h b/src/TheNextWeek/surface_texture.h index 8190ceff..24fb15c0 100644 --- a/src/TheNextWeek/surface_texture.h +++ b/src/TheNextWeek/surface_texture.h @@ -1,5 +1,5 @@ -#ifndef SURFTEXTH -#define SURFTEXTH +#ifndef SURFACE_TEXTURE_H +#define SURFACE_TEXTURE_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheNextWeek/texture.h b/src/TheNextWeek/texture.h index 0177b713..65f8a625 100644 --- a/src/TheNextWeek/texture.h +++ b/src/TheNextWeek/texture.h @@ -1,5 +1,5 @@ -#ifndef TEXTUREH -#define TEXTUREH +#ifndef TEXTURE_H +#define TEXTURE_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/aabb.h b/src/TheRestOfYourLife/aabb.h index 78d61332..c9a1638b 100644 --- a/src/TheRestOfYourLife/aabb.h +++ b/src/TheRestOfYourLife/aabb.h @@ -1,5 +1,5 @@ -#ifndef AABBH -#define AABBH +#ifndef AABB_H +#define AABB_H //================================================================================================== // Originally written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/aarect.h b/src/TheRestOfYourLife/aarect.h index 5b2442f9..aa45826d 100644 --- a/src/TheRestOfYourLife/aarect.h +++ b/src/TheRestOfYourLife/aarect.h @@ -1,5 +1,5 @@ -#ifndef AARECTH -#define AARECTH +#ifndef AARECT_H +#define AARECT_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/box.h b/src/TheRestOfYourLife/box.h index a9cc7e28..7ca3a174 100644 --- a/src/TheRestOfYourLife/box.h +++ b/src/TheRestOfYourLife/box.h @@ -1,5 +1,5 @@ -#ifndef BOXH -#define BOXH +#ifndef BOX_H +#define BOX_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/bvh.h b/src/TheRestOfYourLife/bvh.h index d7e406ff..3d7c0a6d 100644 --- a/src/TheRestOfYourLife/bvh.h +++ b/src/TheRestOfYourLife/bvh.h @@ -1,5 +1,5 @@ -#ifndef BVHH -#define BVHH +#ifndef BVH_H +#define BVH_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/camera.h b/src/TheRestOfYourLife/camera.h index f93b9d4d..fbb5f6cc 100644 --- a/src/TheRestOfYourLife/camera.h +++ b/src/TheRestOfYourLife/camera.h @@ -1,5 +1,5 @@ -#ifndef CAMERAH -#define CAMERAH +#ifndef CAMERA_H +#define CAMERA_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/constant_medium.h b/src/TheRestOfYourLife/constant_medium.h index 55750926..f2f703b3 100644 --- a/src/TheRestOfYourLife/constant_medium.h +++ b/src/TheRestOfYourLife/constant_medium.h @@ -1,5 +1,5 @@ -#ifndef CMEDH -#define CMEDH +#ifndef CONSTANT_MEDIUM_H +#define CONSTANT_MEDIUM_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/hittable.h b/src/TheRestOfYourLife/hittable.h index 0b477566..263fa3c6 100644 --- a/src/TheRestOfYourLife/hittable.h +++ b/src/TheRestOfYourLife/hittable.h @@ -1,5 +1,5 @@ -#ifndef HITTABLEH -#define HITTABLEH +#ifndef HITTABLE_H +#define HITTABLE_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/hittable_list.h b/src/TheRestOfYourLife/hittable_list.h index 632d734f..ad706e16 100644 --- a/src/TheRestOfYourLife/hittable_list.h +++ b/src/TheRestOfYourLife/hittable_list.h @@ -1,5 +1,5 @@ -#ifndef HITTABLELISTH -#define HITTABLELISTH +#ifndef HITTABLE_LIST_H +#define HITTABLE_LIST_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/material.h b/src/TheRestOfYourLife/material.h index 05c28f0c..c105f578 100644 --- a/src/TheRestOfYourLife/material.h +++ b/src/TheRestOfYourLife/material.h @@ -1,5 +1,5 @@ -#ifndef MATERIALH -#define MATERIALH +#ifndef MATERIAL_H +#define MATERIAL_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/moving_sphere.h b/src/TheRestOfYourLife/moving_sphere.h index 55bb83be..f48896ab 100644 --- a/src/TheRestOfYourLife/moving_sphere.h +++ b/src/TheRestOfYourLife/moving_sphere.h @@ -1,5 +1,5 @@ -#ifndef MOVINGSPHEREH -#define MOVINGSPHEREH +#ifndef MOVING_SPHERE_H +#define MOVING_SPHERE_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/onb.h b/src/TheRestOfYourLife/onb.h index 688cdf1a..c01cf5e1 100644 --- a/src/TheRestOfYourLife/onb.h +++ b/src/TheRestOfYourLife/onb.h @@ -1,5 +1,5 @@ -#ifndef ONBH -#define ONBH +#ifndef ONB_H +#define ONB_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/pdf.h b/src/TheRestOfYourLife/pdf.h index cde5baca..47624eaf 100644 --- a/src/TheRestOfYourLife/pdf.h +++ b/src/TheRestOfYourLife/pdf.h @@ -1,5 +1,5 @@ -#ifndef PDFH -#define PDFH +#ifndef PDF_H +#define PDF_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/perlin.h b/src/TheRestOfYourLife/perlin.h index c78e1b96..a4fa8b44 100644 --- a/src/TheRestOfYourLife/perlin.h +++ b/src/TheRestOfYourLife/perlin.h @@ -1,5 +1,5 @@ -#ifndef PERLINH -#define PERLINH +#ifndef PERLIN_H +#define PERLIN_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/random.h b/src/TheRestOfYourLife/random.h index 269887dc..1fd167d2 100644 --- a/src/TheRestOfYourLife/random.h +++ b/src/TheRestOfYourLife/random.h @@ -1,5 +1,5 @@ -#ifndef RANDOMH -#define RANDOMH +#ifndef RANDOM_H +#define RANDOM_H #include diff --git a/src/TheRestOfYourLife/ray.h b/src/TheRestOfYourLife/ray.h index c06c117a..452f4d12 100644 --- a/src/TheRestOfYourLife/ray.h +++ b/src/TheRestOfYourLife/ray.h @@ -1,5 +1,5 @@ -#ifndef RAYH -#define RAYH +#ifndef RAY_H +#define RAY_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/sphere.h b/src/TheRestOfYourLife/sphere.h index 77647024..ff9a259e 100644 --- a/src/TheRestOfYourLife/sphere.h +++ b/src/TheRestOfYourLife/sphere.h @@ -1,5 +1,5 @@ -#ifndef SPHEREH -#define SPHEREH +#ifndef SPHERE_H +#define SPHERE_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/surface_texture.h b/src/TheRestOfYourLife/surface_texture.h index 393a2f88..29252180 100644 --- a/src/TheRestOfYourLife/surface_texture.h +++ b/src/TheRestOfYourLife/surface_texture.h @@ -1,5 +1,5 @@ -#ifndef SURFTEXTH -#define SURFTEXTH +#ifndef SURFACE_TEXTURE_H +#define SURFACE_TEXTURE_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/TheRestOfYourLife/texture.h b/src/TheRestOfYourLife/texture.h index 222ae75f..911f092c 100644 --- a/src/TheRestOfYourLife/texture.h +++ b/src/TheRestOfYourLife/texture.h @@ -1,5 +1,5 @@ -#ifndef TEXTUREH -#define TEXTUREH +#ifndef TEXTURE_H +#define TEXTURE_H //================================================================================================== // Written in 2016 by Peter Shirley // diff --git a/src/common/vec3.h b/src/common/vec3.h index 68355b58..91ba0f3b 100644 --- a/src/common/vec3.h +++ b/src/common/vec3.h @@ -1,5 +1,5 @@ -#ifndef VEC3H -#define VEC3H +#ifndef VEC3_H +#define VEC3_H //================================================================================================== // Originally written in 2016 by Peter Shirley //