cmark

My personal build of CMark ✏️

Commit
f8b6f2e02fd21477193f1f2471421f4adf19a790
Parent
2db928d9a6faec16182ec494d3c0cd3424a03d4e
Author
John MacFarlane <jgm@berkeley.edu>
Date

Merge pull request #200 from craigbarnes/incguard-fix

Rename include guards for consistency and to avoid reserved identifiers

Diffstat

9 files changed, 20 insertions, 18 deletions

Status File Name N° Changes Insertions Deletions
Modified src/bench.h 6 4 2
Modified src/buffer.h 4 2 2
Modified src/chunk.h 4 2 2
Modified src/cmark.h 4 2 2
Modified src/debug.h 4 2 2
Modified src/html/houdini.h 4 2 2
Modified src/inlines.h 4 2 2
Modified src/references.h 4 2 2
Modified src/utf8.h 4 2 2
diff --git 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 <stdio.h>
 #include <time.h>
 
@@ -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
@@ -1,5 +1,5 @@
-#ifndef INCLUDE_buffer_h__
-#define INCLUDE_buffer_h__
+#ifndef CMARK_BUFFER_H
+#define CMARK_BUFFER_H
 
 #include <stdbool.h>
 #include <stddef.h>
diff --git 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 <string.h>
 #include <ctype.h>
diff --git 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 <stdbool.h>
 #include <stdio.h>
diff --git 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 <stdio.h>
 #include <errno.h>
 #include <string.h>
diff --git 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
@@ -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
@@ -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
@@ -1,5 +1,5 @@
-#ifndef _H_cmark_UTF8_
-#define _H_cmark_UTF8_
+#ifndef CMARK_UTF8_H
+#define CMARK_UTF8_H
 
 #include <stdint.h>
 #include "buffer.h"