summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-08-22 07:55:38 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-08-22 07:55:38 +0900
commit26398996f94e59ad386bbaae09e52250b2a4007d (patch)
tree66f7c783da321a52b2069109963c059c4d2387e5
parent5aa6f8ba969cdff282252ca8aedb7d5261e5b5cd (diff)
parent3b904e94083f1d732e26dbe4d80b2fa482426111 (diff)
downloadmruby-26398996f94e59ad386bbaae09e52250b2a4007d.tar.gz
mruby-26398996f94e59ad386bbaae09e52250b2a4007d.zip
Merge pull request #2550 from cubicdaiya/issues/unify_include_guards
Unify include guard styles and header comments.
-rw-r--r--include/mruby/error.h2
-rw-r--r--include/mruby/gc.h2
-rw-r--r--include/mruby/khash.h6
-rw-r--r--include/mruby/opcode.h8
-rw-r--r--include/mruby/version.h6
5 files changed, 15 insertions, 9 deletions
diff --git a/include/mruby/error.h b/include/mruby/error.h
index b8b6c2c97..a686a6aab 100644
--- a/include/mruby/error.h
+++ b/include/mruby/error.h
@@ -1,5 +1,5 @@
/*
-** error.h - Exception class
+** mruby/error.h - Exception class
**
** See Copyright Notice in mruby.h
*/
diff --git a/include/mruby/gc.h b/include/mruby/gc.h
index 29253fa08..ebc57d2aa 100644
--- a/include/mruby/gc.h
+++ b/include/mruby/gc.h
@@ -1,5 +1,5 @@
/*
-** gc.h - garbage collector for mruby
+** mruby/gc.h - garbage collector for mruby
**
** See Copyright Notice in mruby.h
*/
diff --git a/include/mruby/khash.h b/include/mruby/khash.h
index d2501dd52..8a62e3ee6 100644
--- a/include/mruby/khash.h
+++ b/include/mruby/khash.h
@@ -4,8 +4,8 @@
** See Copyright Notice in mruby.h
*/
-#ifndef KHASH_H
-#define KHASH_H
+#ifndef MRUBY_KHASH_H
+#define MRUBY_KHASH_H
#if defined(__cplusplus)
extern "C" {
@@ -267,4 +267,4 @@ typedef const char *kh_cstr_t;
} /* extern "C" { */
#endif
-#endif /* KHASH_H */
+#endif /* MRUBY_KHASH_H */
diff --git a/include/mruby/opcode.h b/include/mruby/opcode.h
index c8a47c273..4774e78c6 100644
--- a/include/mruby/opcode.h
+++ b/include/mruby/opcode.h
@@ -1,11 +1,11 @@
/*
-** opcode.h - RiteVM operation codes
+** mruby/opcode.h - RiteVM operation codes
**
** See Copyright Notice in mruby.h
*/
-#ifndef OPCODE_H
-#define OPCODE_H
+#ifndef MRUBY_OPCODE_H
+#define MRUBY_OPCODE_H
#define MAXARG_Bx (0xffff)
#define MAXARG_sBx (MAXARG_Bx>>1) /* `sBx' is signed */
@@ -157,4 +157,4 @@ enum {
#define OP_R_BREAK 1
#define OP_R_RETURN 2
-#endif /* OPCODE_H */
+#endif /* MRUBY_OPCODE_H */
diff --git a/include/mruby/version.h b/include/mruby/version.h
index d451dfb31..2ec584baa 100644
--- a/include/mruby/version.h
+++ b/include/mruby/version.h
@@ -1,3 +1,9 @@
+/*
+** mruby/version.h - mruby version definition
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef MRUBY_VERSION_H
#define MRUBY_VERSION_H