From 386e1ba185d1e51a5ada2b61e524b19d8e7a288b Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Sun, 16 Nov 2014 09:19:41 +0000 Subject: Rename include guards for consistency and to avoid reserved identifiers --- src/bench.h | 6 ++++-- src/buffer.h | 4 ++-- src/chunk.h | 4 ++-- src/cmark.h | 4 ++-- src/debug.h | 4 ++-- src/html/houdini.h | 4 ++-- src/inlines.h | 4 ++-- src/references.h | 4 ++-- src/utf8.h | 4 ++-- 9 files changed, 20 insertions(+), 18 deletions(-) (limited to 'src') diff --git a/src/bench.h b/src/bench.h index 13d8aa4..bbea2c6 100644 --- a/src/bench.h +++ b/src/bench.h @@ -1,5 +1,6 @@ -#ifndef __BENCH_H__ -#define __BENCH_H__ +#ifndef CMARK_BENCH_H +#define CMARK_BENCH_H + #include #include @@ -22,4 +23,5 @@ float _cmark_save_time; #define start_timer() #define end_timer(M) #endif + #endif diff --git a/src/buffer.h b/src/buffer.h index 7dfc600..17a9f09 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -1,5 +1,5 @@ -#ifndef INCLUDE_buffer_h__ -#define INCLUDE_buffer_h__ +#ifndef CMARK_BUFFER_H +#define CMARK_BUFFER_H #include #include diff --git a/src/chunk.h b/src/chunk.h index e4a57b2..d0ffb92 100644 --- a/src/chunk.h +++ b/src/chunk.h @@ -1,5 +1,5 @@ -#ifndef _CHUNK_H_ -#define _CHUNK_H_ +#ifndef CMARK_CHUNK_H +#define CMARK_CHUNK_H #include #include diff --git a/src/cmark.h b/src/cmark.h index 65e8cfc..c8c7e8d 100644 --- a/src/cmark.h +++ b/src/cmark.h @@ -1,5 +1,5 @@ -#ifndef _CMARK_H_ -#define _CMARK_H_ +#ifndef CMARK_H +#define CMARK_H #include #include diff --git a/src/debug.h b/src/debug.h index af1d017..fd2ef62 100644 --- a/src/debug.h +++ b/src/debug.h @@ -1,5 +1,5 @@ -#ifndef __debug_h__ -#define __debug_h__ +#ifndef CMARK_DEBUG_H +#define CMARK_DEBUG_H #include #include #include diff --git a/src/html/houdini.h b/src/html/houdini.h index 5fd690d..b8ed0d9 100644 --- a/src/html/houdini.h +++ b/src/html/houdini.h @@ -1,5 +1,5 @@ -#ifndef __HOUDINI_H__ -#define __HOUDINI_H__ +#ifndef CMARK_HOUDINI_H +#define CMARK_HOUDINI_H #ifdef __cplusplus extern "C" { diff --git a/src/inlines.h b/src/inlines.h index 57daea2..ae2117e 100644 --- a/src/inlines.h +++ b/src/inlines.h @@ -1,5 +1,5 @@ -#ifndef _INLINES_H_ -#define _INLINES_H_ +#ifndef CMARK_INLINES_H +#define CMARK_INLINES_H unsigned char *cmark_clean_url(cmark_chunk *url); unsigned char *cmark_clean_title(cmark_chunk *title); diff --git a/src/references.h b/src/references.h index c4ca6df..cd58614 100644 --- a/src/references.h +++ b/src/references.h @@ -1,5 +1,5 @@ -#ifndef _REFERENCES_H_ -#define _REFERENCES_H_ +#ifndef CMARK_REFERENCES_H +#define CMARK_REFERENCES_H #define REFMAP_SIZE 16 diff --git a/src/utf8.h b/src/utf8.h index 7584761..ecefa4e 100644 --- a/src/utf8.h +++ b/src/utf8.h @@ -1,5 +1,5 @@ -#ifndef _H_cmark_UTF8_ -#define _H_cmark_UTF8_ +#ifndef CMARK_UTF8_H +#define CMARK_UTF8_H #include #include "buffer.h" -- cgit v1.2.3