diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2021-01-08 12:11:05 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2021-01-08 17:29:58 +0100 |
commit | 76c33d41f72150203423be2bd0212400b15a4955 (patch) | |
tree | 6026ea0c675076723b75dbb734ff073aeba823d8 /lib | |
parent | defdd4aca6cd157ccc3b10ea16b5b4f552f34b96 (diff) |
fosphor: Use #pragma once instead of old guard style
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fosphor/axis.h | 5 | ||||
-rw-r--r-- | lib/fosphor/cl.h | 5 | ||||
-rw-r--r-- | lib/fosphor/cl_compat.h | 5 | ||||
-rw-r--r-- | lib/fosphor/fosphor.h | 5 | ||||
-rw-r--r-- | lib/fosphor/gl.h | 5 | ||||
-rw-r--r-- | lib/fosphor/gl_cmap.h | 5 | ||||
-rw-r--r-- | lib/fosphor/gl_cmap_gen.h | 5 | ||||
-rw-r--r-- | lib/fosphor/gl_font.h | 5 | ||||
-rw-r--r-- | lib/fosphor/llist.h | 5 | ||||
-rw-r--r-- | lib/fosphor/private.h | 5 | ||||
-rw-r--r-- | lib/fosphor/resource.h | 5 | ||||
-rw-r--r-- | lib/fosphor/resource_internal.h | 5 |
12 files changed, 12 insertions, 48 deletions
diff --git a/lib/fosphor/axis.h b/lib/fosphor/axis.h index 40de7ee..2800034 100644 --- a/lib/fosphor/axis.h +++ b/lib/fosphor/axis.h @@ -19,8 +19,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef __FOSPHOR_AXIS_H__ -#define __FOSPHOR_AXIS_H__ +#pragma once /*! \defgroup axis * @{ @@ -46,5 +45,3 @@ void freq_axis_build(struct freq_axis *fx, double center, double span, int n_div void freq_axis_render(struct freq_axis *fx, char *str, int step); /*! @} */ - -#endif /* __FOSPHOR_AXIS_H__ */ diff --git a/lib/fosphor/cl.h b/lib/fosphor/cl.h index 867c3d5..2fcd3f5 100644 --- a/lib/fosphor/cl.h +++ b/lib/fosphor/cl.h @@ -19,8 +19,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef __FOSPHOR_CL_H__ -#define __FOSPHOR_CL_H__ +#pragma once /*! \defgroup cl * @{ @@ -45,5 +44,3 @@ void fosphor_cl_set_histogram_range(struct fosphor *self, float scale, float offset); /*! @} */ - -#endif /* __FOSPHOR_CL_H__ */ diff --git a/lib/fosphor/cl_compat.h b/lib/fosphor/cl_compat.h index afff629..f4a54a6 100644 --- a/lib/fosphor/cl_compat.h +++ b/lib/fosphor/cl_compat.h @@ -19,8 +19,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef __FOSPHOR_CL_COMPAT_H__ -#define __FOSPHOR_CL_COMPAT_H__ +#pragma once /*! \ingroup cl * @{ @@ -103,5 +102,3 @@ void cl_compat_check_platform(cl_platform_id pl_id); /*! @} */ - -#endif /* __FOSPHOR_CL_COMPAT_H__ */ diff --git a/lib/fosphor/fosphor.h b/lib/fosphor/fosphor.h index 59fe06b..e67f7b1 100644 --- a/lib/fosphor/fosphor.h +++ b/lib/fosphor/fosphor.h @@ -19,8 +19,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef __FOSPHOR_FOSPHOR_H__ -#define __FOSPHOR_FOSPHOR_H__ +#pragma once /*! \defgroup fosphor * @{ @@ -119,5 +118,3 @@ int fosphor_render_pos_inside(struct fosphor_render *render, int x, int y); /*! @} */ - -#endif /* __FOSPHOR_FOSPHOR_H__ */ diff --git a/lib/fosphor/gl.h b/lib/fosphor/gl.h index d248278..211e2c5 100644 --- a/lib/fosphor/gl.h +++ b/lib/fosphor/gl.h @@ -19,8 +19,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef __FOSPHOR_GL_H__ -#define __FOSPHOR_GL_H__ +#pragma once /*! \defgroup gl * @{ @@ -52,5 +51,3 @@ void fosphor_gl_refresh(struct fosphor *self); void fosphor_gl_draw(struct fosphor *self, struct fosphor_render *render); /*! @} */ - -#endif /* __FOSPHOR_GL_H__ */ diff --git a/lib/fosphor/gl_cmap.h b/lib/fosphor/gl_cmap.h index ba1eb26..f01fab5 100644 --- a/lib/fosphor/gl_cmap.h +++ b/lib/fosphor/gl_cmap.h @@ -19,8 +19,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef __FOSPHOR_GL_CMAP_H__ -#define __FOSPHOR_GL_CMAP_H__ +#pragma once /*! \defgroup gl/cmap * @{ @@ -61,5 +60,3 @@ int fosphor_gl_cmap_generate(GLuint *cmap_id, gl_cmap_gen_func_t gfn, void *gfn_ /*! @} */ - -#endif /* __FOSPHOR_GL_CMAP_H__ */ diff --git a/lib/fosphor/gl_cmap_gen.h b/lib/fosphor/gl_cmap_gen.h index df98878..55e0d97 100644 --- a/lib/fosphor/gl_cmap_gen.h +++ b/lib/fosphor/gl_cmap_gen.h @@ -19,8 +19,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef __FOSPHOR_GL_CMAP_GEN_H__ -#define __FOSPHOR_GL_CMAP_GEN_H__ +#pragma once /*! \addtogroup gl/cmap * @{ @@ -36,5 +35,3 @@ int fosphor_gl_cmap_histogram(uint32_t *rgba, int N, void *arg); int fosphor_gl_cmap_waterfall(uint32_t *rgba, int N, void *arg); /*! @} */ - -#endif /* __FOSPHOR_GL_CMAP_GEN_H__ */ diff --git a/lib/fosphor/gl_font.h b/lib/fosphor/gl_font.h index 85a9da7..50456c2 100644 --- a/lib/fosphor/gl_font.h +++ b/lib/fosphor/gl_font.h @@ -19,8 +19,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef __FOSPHOR_GL_FONT_H__ -#define __FOSPHOR_GL_FONT_H__ +#pragma once /*! \defgroup gl/font * @{ @@ -73,5 +72,3 @@ void glf_end(void); /*! @} */ - -#endif /* __FOSPHOR_GL_FONT_H__ */ diff --git a/lib/fosphor/llist.h b/lib/fosphor/llist.h index b6b70b9..cf5c461 100644 --- a/lib/fosphor/llist.h +++ b/lib/fosphor/llist.h @@ -21,8 +21,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef __FOSPHOR_LLIST_H__ -#define __FOSPHOR_LLIST_H__ +#pragma once /*! \defgroup llist * @{ @@ -92,5 +91,3 @@ static inline void llist_del(struct llist_head *entry) pos = llist_entry(pos->member.next, type, member)) /*! @} */ - -#endif /* __FOSPHOR_LLIST_H__ */ diff --git a/lib/fosphor/private.h b/lib/fosphor/private.h index 58e040d..c04fefe 100644 --- a/lib/fosphor/private.h +++ b/lib/fosphor/private.h @@ -19,8 +19,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef __FOSPHOR_PRIVATE_H__ -#define __FOSPHOR_PRIVATE_H__ +#pragma once /*! \defgroup private * @{ @@ -69,5 +68,3 @@ struct fosphor /*! @} */ - -#endif /* __FOSPHOR_PRIVATE_H__ */ diff --git a/lib/fosphor/resource.h b/lib/fosphor/resource.h index d9a6828..a68e7d1 100644 --- a/lib/fosphor/resource.h +++ b/lib/fosphor/resource.h @@ -19,8 +19,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef __FOSPHOR_RESOURCE_H__ -#define __FOSPHOR_RESOURCE_H__ +#pragma once /*! \defgroup resource * @{ @@ -34,5 +33,3 @@ const void *resource_get(const char *name, int *len); void resource_put(const void *r); /*! @} */ - -#endif /* __FOSPHOR_RESOURCE_H__ */ diff --git a/lib/fosphor/resource_internal.h b/lib/fosphor/resource_internal.h index 5fe94f0..be07b40 100644 --- a/lib/fosphor/resource_internal.h +++ b/lib/fosphor/resource_internal.h @@ -19,8 +19,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef __RESOURCE_INTERNAL_H__ -#define __RESOURCE_INTERNAL_H__ +#pragma once /*! \addtogroup resource * @{ @@ -57,5 +56,3 @@ struct resource_cache }; /*! @} */ - -#endif /* __RESOURCE_INTERNAL_H__ */ |