fosphor: Use #pragma once instead of old guard style
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
defdd4aca6
commit
76c33d41f7
|
@ -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__ */
|
||||
|
|
|
@ -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__ */
|
||||
|
|
|
@ -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__ */
|
||||
|
|
|
@ -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__ */
|
||||
|
|
|
@ -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__ */
|
||||
|
|
|
@ -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__ */
|
||||
|
|
|
@ -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__ */
|
||||
|
|
|
@ -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__ */
|
||||
|
|
|
@ -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__ */
|
||||
|
|
|
@ -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__ */
|
||||
|
|
|
@ -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__ */
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in New Issue