summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormimaki <[email protected]>2012-04-23 11:46:16 +0900
committermimaki <[email protected]>2012-04-23 11:46:16 +0900
commit835443614d21b13b27af3674d7f8cb9bf49c298b (patch)
tree8abce0109e097f1b49d6ba5c6a7c2ce26d841698
parent1af5ac0ff473c3cbf2637932c31dfe2d4b13bfde (diff)
downloadmruby-835443614d21b13b27af3674d7f8cb9bf49c298b.tar.gz
mruby-835443614d21b13b27af3674d7f8cb9bf49c298b.zip
add file header
-rw-r--r--include/mrbconf.h6
-rw-r--r--include/mruby.h1
-rw-r--r--include/mruby/array.h6
-rw-r--r--include/mruby/class.h6
-rw-r--r--include/mruby/data.h13
-rw-r--r--include/mruby/hash.h6
-rw-r--r--include/mruby/numeric.h6
-rw-r--r--include/mruby/object.h6
-rw-r--r--include/mruby/proc.h6
-rw-r--r--include/mruby/range.h6
-rw-r--r--include/mruby/string.h6
-rw-r--r--include/mruby/struct.h6
-rw-r--r--src/array.c6
-rw-r--r--src/cdump.c6
-rw-r--r--src/cdump.h6
-rw-r--r--src/class.c6
-rw-r--r--src/codegen.c6
-rw-r--r--src/compar.c6
-rw-r--r--src/compile.h6
-rw-r--r--src/crc.c6
-rw-r--r--src/dump.c6
-rw-r--r--src/dump.h6
-rw-r--r--src/encoding.c15
-rw-r--r--src/encoding.h15
-rw-r--r--src/enum.c15
-rw-r--r--src/error.c6
-rw-r--r--src/error.h6
-rw-r--r--src/etc.c6
-rw-r--r--src/eval_intern.h6
-rw-r--r--src/gc.c6
-rw-r--r--src/gc.h6
-rw-r--r--src/hash.c17
-rw-r--r--src/init.c6
-rw-r--r--src/init_ext.c6
-rw-r--r--src/irep.h6
-rw-r--r--src/kernel.c6
-rw-r--r--src/load.c6
-rw-r--r--src/method.h14
-rw-r--r--src/minimain.c6
-rw-r--r--src/node.h6
-rw-r--r--src/numeric.c15
-rw-r--r--src/object.c6
-rw-r--r--src/opcode.h6
-rw-r--r--src/parse.y6
-rw-r--r--src/pool.c6
-rw-r--r--src/pool.h6
-rw-r--r--src/print.c6
-rw-r--r--src/proc.c6
-rw-r--r--src/range.c6
-rw-r--r--src/re.c7
-rw-r--r--src/re.h10
-rw-r--r--src/regex.h14
-rw-r--r--src/ritehash.h9
-rw-r--r--src/sprintf.c17
-rw-r--r--src/state.c6
-rw-r--r--src/string.c6
-rw-r--r--src/struct.c15
-rw-r--r--src/symbol.c6
-rw-r--r--src/variable.c6
-rw-r--r--src/variable.h6
-rw-r--r--src/version.c16
-rw-r--r--src/version.h6
-rw-r--r--src/vm.c6
-rw-r--r--src/vm_core.h15
64 files changed, 365 insertions, 131 deletions
diff --git a/include/mrbconf.h b/include/mrbconf.h
index d4802a5e7..24dc18919 100644
--- a/include/mrbconf.h
+++ b/include/mrbconf.h
@@ -1,3 +1,9 @@
+/*
+** mrbconf.h - mruby core configuration
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef MRUBYCONF_H
#define MRUBYCONF_H
diff --git a/include/mruby.h b/include/mruby.h
index 8084735bf..b1ee8dcfc 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -24,6 +24,7 @@
**
** [ MIT license: http://www.opensource.org/licenses/mit-license.php ]
*/
+
#ifndef MRUBY_H
#define MRUBY_H
diff --git a/include/mruby/array.h b/include/mruby/array.h
index 6f382ef6a..4d43f4c07 100644
--- a/include/mruby/array.h
+++ b/include/mruby/array.h
@@ -1,3 +1,9 @@
+/*
+** array.h - Array class
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef MRUBY_ARRAY_H
#define MRUBY_ARRAY_H
diff --git a/include/mruby/class.h b/include/mruby/class.h
index 470f517c3..5f4e8e0d2 100644
--- a/include/mruby/class.h
+++ b/include/mruby/class.h
@@ -1,3 +1,9 @@
+/*
+** class.h - Class class
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef MRUBY_CLASS_H
#define MRUBY_CLASS_H
diff --git a/include/mruby/data.h b/include/mruby/data.h
index 07e0f72cd..02d81155a 100644
--- a/include/mruby/data.h
+++ b/include/mruby/data.h
@@ -1,11 +1,8 @@
-/**********************************************************************
-
- data.h -
-
-
- Copyright (C) 2007 Yukihiro Matsumoto
-
-**********************************************************************/
+/*
+** data.h - Data class
+**
+** See Copyright Notice in mruby.h
+*/
#ifndef RUBY_DATA_H
#define RUBY_DATA_H 1
diff --git a/include/mruby/hash.h b/include/mruby/hash.h
index b2c3d69c8..4bbb8f764 100644
--- a/include/mruby/hash.h
+++ b/include/mruby/hash.h
@@ -1,3 +1,9 @@
+/*
+** hash.h - Hash class
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef MRUBY_HASH_H
#define MRUBY_HASH_H
diff --git a/include/mruby/numeric.h b/include/mruby/numeric.h
index ee559fa1d..6d286e36f 100644
--- a/include/mruby/numeric.h
+++ b/include/mruby/numeric.h
@@ -1,3 +1,9 @@
+/*
+** numeric.h - Numeric, Integer, Float, Fixnum class
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef MRUBY_NUMERIC_H
#define MRUBY_NUMERIC_H
diff --git a/include/mruby/object.h b/include/mruby/object.h
index e73ebe79a..e509baf79 100644
--- a/include/mruby/object.h
+++ b/include/mruby/object.h
@@ -1,3 +1,9 @@
+/*
+** object.h - Object, NilClass, TrueClass, FalseClass class
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef MRUBY_OBJECT_H
#define MRUBY_OBJECT_H
diff --git a/include/mruby/proc.h b/include/mruby/proc.h
index eafe54cf9..a06896a3f 100644
--- a/include/mruby/proc.h
+++ b/include/mruby/proc.h
@@ -1,3 +1,9 @@
+/*
+** proc.h - Proc class
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef MRUBY_PROC_H
#define MRUBY_PROC_H
diff --git a/include/mruby/range.h b/include/mruby/range.h
index d25690ab3..9ffddbcae 100644
--- a/include/mruby/range.h
+++ b/include/mruby/range.h
@@ -1,3 +1,9 @@
+/*
+** range.h - Range class
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef MRUBY_RANGE_H
#define MRUBY_RANGE_H
diff --git a/include/mruby/string.h b/include/mruby/string.h
index e889d8447..9b6078d21 100644
--- a/include/mruby/string.h
+++ b/include/mruby/string.h
@@ -1,3 +1,9 @@
+/*
+** string.h - String class
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef MRUBY_STRING_H
#define MRUBY_STRING_H
diff --git a/include/mruby/struct.h b/include/mruby/struct.h
index b8244045d..32fa48030 100644
--- a/include/mruby/struct.h
+++ b/include/mruby/struct.h
@@ -1,3 +1,9 @@
+/*
+** struct.h - Struct class
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef MSTRUCT_H
#define MSTRUCT_H
diff --git a/src/array.c b/src/array.c
index 69f5fd8b3..035feead5 100644
--- a/src/array.c
+++ b/src/array.c
@@ -1,3 +1,9 @@
+/*
+** array.c - Array class
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include "mruby/array.h"
#include <string.h>
diff --git a/src/cdump.c b/src/cdump.c
index 74365b090..400f446ef 100644
--- a/src/cdump.c
+++ b/src/cdump.c
@@ -1,3 +1,9 @@
+/*
+** cdump.c - mruby binary dumper (C source format)
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "cdump.h"
#include <string.h>
diff --git a/src/cdump.h b/src/cdump.h
index 82fc442a6..f74d7a046 100644
--- a/src/cdump.h
+++ b/src/cdump.h
@@ -1,3 +1,9 @@
+/*
+** cdump.h - mruby binary dumper (C source format)
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include <stdio.h>
diff --git a/src/class.c b/src/class.c
index 9abd90c31..e3fe0933a 100644
--- a/src/class.c
+++ b/src/class.c
@@ -1,3 +1,9 @@
+/*
+** class.c - Class class
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include <stdarg.h>
#include <stdio.h>
diff --git a/src/codegen.c b/src/codegen.c
index c44e619e9..582008a69 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -1,3 +1,9 @@
+/*
+** codegen.c - mruby code generator
+**
+** See Copyright Notice in mruby.h
+*/
+
#undef CODEGEN_TEST
#define CODEGEN_DUMP
diff --git a/src/compar.c b/src/compar.c
index d66525c15..5fef89329 100644
--- a/src/compar.c
+++ b/src/compar.c
@@ -1,3 +1,9 @@
+/*
+** compar.c - Comparable module
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include "mruby/string.h"
#include "mruby/numeric.h"
diff --git a/src/compile.h b/src/compile.h
index f0e6b1874..49c8e9cf8 100644
--- a/src/compile.h
+++ b/src/compile.h
@@ -1,3 +1,9 @@
+/*
+** compile.h - mruby parser
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include <stdio.h>
#include <setjmp.h>
diff --git a/src/crc.c b/src/crc.c
index 513622a09..412252347 100644
--- a/src/crc.c
+++ b/src/crc.c
@@ -1,3 +1,9 @@
+/*
+** crc.c - calculate CRC
+**
+** See Copyright Notice in mruby.h
+*/
+
#include <limits.h>
#include <stdint.h>
// Calculate CRC (CRC-16-CCITT)
diff --git a/src/dump.c b/src/dump.c
index ba2a9ab7a..a6ba1350a 100644
--- a/src/dump.c
+++ b/src/dump.c
@@ -1,3 +1,9 @@
+/*
+** dump.c - mruby binary dumper (Rite binary format)
+**
+** See Copyright Notice in mruby.h
+*/
+
#include <string.h>
#include "dump.h"
diff --git a/src/dump.h b/src/dump.h
index 410dfcd71..1f211aa0b 100644
--- a/src/dump.h
+++ b/src/dump.h
@@ -1,3 +1,9 @@
+/*
+** dump.h - mruby binary dumper (Rite binary format)
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include <stdio.h>
#include <stdint.h>
diff --git a/src/encoding.c b/src/encoding.c
index db9a36425..2df294e20 100644
--- a/src/encoding.c
+++ b/src/encoding.c
@@ -1,13 +1,8 @@
-/**********************************************************************
-
- encoding.c -
-
- $Author: naruse $
- created at: Thu May 24 17:23:27 JST 2007
-
- Copyright (C) 2007 Yukihiro Matsumoto
-
-**********************************************************************/
+/*
+** encoding.c - Encoding class
+**
+** See Copyright Notice in mruby.h
+*/
#include "mruby.h"
#ifdef INCLUDE_ENCODING
diff --git a/src/encoding.h b/src/encoding.h
index 92e16e5f2..bc4a7ccc2 100644
--- a/src/encoding.h
+++ b/src/encoding.h
@@ -1,13 +1,8 @@
-/**********************************************************************
-
- encoding.h -
-
- $Author: matz $
- created at: Thu May 24 11:49:41 JST 2007
-
- Copyright (C) 2007 Yukihiro Matsumoto
-
-**********************************************************************/
+/*
+** encoding.h - Encoding class
+**
+** See Copyright Notice in mruby.h
+*/
#ifndef RUBY_ENCODING_H
#define RUBY_ENCODING_H 1
diff --git a/src/enum.c b/src/enum.c
index c9bb43139..a2b034d41 100644
--- a/src/enum.c
+++ b/src/enum.c
@@ -1,13 +1,8 @@
-/**********************************************************************
-
- enum.c -
-
- $Author: yugui $
- created at: Fri Oct 1 15:15:19 JST 1993
-
- Copyright (C) 1993-2007 Yukihiro Matsumoto
-
-**********************************************************************/
+/*
+** enum.c - Enumerable module
+**
+** See Copyright Notice in mruby.h
+*/
#include "mruby.h"
diff --git a/src/error.c b/src/error.c
index a671c6bbd..990a8f9ba 100644
--- a/src/error.c
+++ b/src/error.c
@@ -1,3 +1,9 @@
+/*
+** error.c - Exception class
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include <stdarg.h>
#include <string.h>
diff --git a/src/error.h b/src/error.h
index 5b1873b1d..42fb635c5 100644
--- a/src/error.h
+++ b/src/error.h
@@ -1,3 +1,9 @@
+/*
+** error.h - Exception class
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef MRUBY_ERROR_H
#define MRUBY_ERROR_H
diff --git a/src/etc.c b/src/etc.c
index 865992566..4b77fd1f9 100644
--- a/src/etc.c
+++ b/src/etc.c
@@ -1,3 +1,9 @@
+/*
+** etc.c -
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include "mruby/string.h"
#include "error.h"
diff --git a/src/eval_intern.h b/src/eval_intern.h
index c3e8cdf50..3179f50b2 100644
--- a/src/eval_intern.h
+++ b/src/eval_intern.h
@@ -1,3 +1,9 @@
+/*
+** eval_intern.h -
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef RUBY_EVAL_INTERN_H
#define RUBY_EVAL_INTERN_H
diff --git a/src/gc.c b/src/gc.c
index f4186f6e3..0921dec7a 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -1,3 +1,9 @@
+/*
+** gc.c - garbage collector for RiteVM
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include "mruby/object.h"
#include "mruby/class.h"
diff --git a/src/gc.h b/src/gc.h
index 139580533..38637d507 100644
--- a/src/gc.h
+++ b/src/gc.h
@@ -1,3 +1,9 @@
+/*
+** gc.h - garbage collector for RiteVM
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef MRUBY_GC_H
#define MRUBY_GC_H
diff --git a/src/hash.c b/src/hash.c
index 3f336f425..e96c2e210 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -1,15 +1,8 @@
-/**********************************************************************
-
- hash.c -
-
- $Author: yugui $
- created at: Mon Nov 22 18:51:18 JST 1993
-
- Copyright (C) 1993-2007 Yukihiro Matsumoto
- Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
- Copyright (C) 2000 Information-technology Promotion Agency, Japan
-
-**********************************************************************/
+/*
+** hash.c - Hash class
+**
+** See Copyright Notice in mruby.h
+*/
#include "mruby.h"
#include "mruby/hash.h"
diff --git a/src/init.c b/src/init.c
index ce039ce30..869201eea 100644
--- a/src/init.c
+++ b/src/init.c
@@ -1,3 +1,9 @@
+/*
+** init.c - initialize mruby core
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
void mrb_init_class(mrb_state*);
diff --git a/src/init_ext.c b/src/init_ext.c
index cb094f171..0643bd4fd 100644
--- a/src/init_ext.c
+++ b/src/init_ext.c
@@ -1,3 +1,9 @@
+/*
+** init_ext.c - initialize extend libraries
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
void
diff --git a/src/irep.h b/src/irep.h
index d73931a90..b3f9e8d87 100644
--- a/src/irep.h
+++ b/src/irep.h
@@ -1,3 +1,9 @@
+/*
+** irep.h - mrb_irep structure
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef MRUBY_IREP_H
#define MRUBY_IREP_H
diff --git a/src/kernel.c b/src/kernel.c
index 7a4a13501..dbc17940e 100644
--- a/src/kernel.c
+++ b/src/kernel.c
@@ -1,3 +1,9 @@
+/*
+** kernel.c - Kernel module
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include "mruby/string.h"
#include <string.h>
diff --git a/src/load.c b/src/load.c
index 3f5dc2c57..7a8178621 100644
--- a/src/load.c
+++ b/src/load.c
@@ -1,3 +1,9 @@
+/*
+** load.c - mruby binary loader
+**
+** See Copyright Notice in mruby.h
+*/
+
#include <string.h>
#include "dump.h"
diff --git a/src/method.h b/src/method.h
index 3591917a2..0856ffa8b 100644
--- a/src/method.h
+++ b/src/method.h
@@ -1,13 +1,9 @@
-/**********************************************************************
+/*
+** method.h - method structures and functions
+**
+** See Copyright Notice in mruby.h
+*/
- method.h -
-
- $Author: ko1 $
- created at: Wed Jul 15 20:02:33 2009
-
- Copyright (C) 2009 Koichi Sasada
-
-**********************************************************************/
#ifndef METHOD_H
#define METHOD_H
diff --git a/src/minimain.c b/src/minimain.c
index b1b70c2af..3ba5bb0b3 100644
--- a/src/minimain.c
+++ b/src/minimain.c
@@ -1,3 +1,9 @@
+/*
+** minimain.c -
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include "mruby/proc.h"
diff --git a/src/node.h b/src/node.h
index a6e3d58fe..74af5f1e9 100644
--- a/src/node.h
+++ b/src/node.h
@@ -1,3 +1,9 @@
+/*
+** node.h - nodes of abstract syntax tree
+**
+** See Copyright Notice in mruby.h
+*/
+
enum node_type {
NODE_METHOD,
NODE_FBODY,
diff --git a/src/numeric.c b/src/numeric.c
index f79369d90..d30e683fd 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -1,13 +1,8 @@
-/**********************************************************************
-
- numeric.c -
-
- $Author: yugui $
- created at: Fri Aug 13 18:33:09 JST 1993
-
- Copyright (C) 1993-2007 Yukihiro Matsumoto
-
-**********************************************************************/
+/*
+** numeric.c - Numeric, Integer, Float, Fixnum class
+**
+** See Copyright Notice in mruby.h
+*/
#include "mruby.h"
#include "mruby/numeric.h"
diff --git a/src/object.c b/src/object.c
index 0a31fa108..ee3caedbf 100644
--- a/src/object.c
+++ b/src/object.c
@@ -1,3 +1,9 @@
+/*
+** object.c - Object, NilClass, TrueClass, FalseClass class
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include <string.h>
#include "mruby/string.h"
diff --git a/src/opcode.h b/src/opcode.h
index e6ea74f79..9cf261ce8 100644
--- a/src/opcode.h
+++ b/src/opcode.h
@@ -1,3 +1,9 @@
+/*
+** opcode.h - RiteVM operation codes
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef OPCODE_H
#define OPCODE_H
diff --git a/src/parse.y b/src/parse.y
index b22dd10f6..ef49338ac 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -1,3 +1,9 @@
+/*
+** parse.y - mruby parser
+**
+** See Copyright Notice in mruby.h
+*/
+
%{
#undef PARSER_TEST
#undef PARSER_DEBUG
diff --git a/src/pool.c b/src/pool.c
index 1a2bec642..9461ecf60 100644
--- a/src/pool.c
+++ b/src/pool.c
@@ -1,3 +1,9 @@
+/*
+** pool.c - memory pool
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "pool.h"
#include <string.h>
diff --git a/src/pool.h b/src/pool.h
index 4f0b906a5..7b0ae78cb 100644
--- a/src/pool.h
+++ b/src/pool.h
@@ -1,3 +1,9 @@
+/*
+** pool.h - memory pool
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include <stddef.h>
diff --git a/src/print.c b/src/print.c
index a3e05b6f0..5de0fc721 100644
--- a/src/print.c
+++ b/src/print.c
@@ -1,3 +1,9 @@
+/*
+** print.c - Kernel.#p
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include "mruby/string.h"
#include <stdio.h>
diff --git a/src/proc.c b/src/proc.c
index aae9b1932..94a8d8465 100644
--- a/src/proc.c
+++ b/src/proc.c
@@ -1,3 +1,9 @@
+/*
+** proc.c - Proc class
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include "mruby/proc.h"
#include "mruby/array.h"
diff --git a/src/range.c b/src/range.c
index bc85f1f62..f8e927f04 100644
--- a/src/range.c
+++ b/src/range.c
@@ -1,3 +1,9 @@
+/*
+** range.c - Range class
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include "mruby/class.h"
#include "mruby/range.h"
diff --git a/src/re.c b/src/re.c
index 645af6ba6..b891f701c 100644
--- a/src/re.c
+++ b/src/re.c
@@ -1,4 +1,9 @@
-/* re.c for RegExp Class */
+/*
+** re.c - Regexp class
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include <string.h>
#include "mruby/string.h"
diff --git a/src/re.h b/src/re.h
index e388f602c..e53927e60 100644
--- a/src/re.h
+++ b/src/re.h
@@ -1,8 +1,8 @@
-/**********************************************************************
-
- re.h -
-
-**********************************************************************/
+/*
+** re.h - Regexp class
+**
+** See Copyright Notice in mruby.h
+*/
#ifndef RE_H
#define RE_H
diff --git a/src/regex.h b/src/regex.h
index b5472122a..0669e6f70 100644
--- a/src/regex.h
+++ b/src/regex.h
@@ -1,12 +1,8 @@
-/**********************************************************************
-
- regex.h -
-
- $Author: akr $
-
- Copyright (C) 1993-2007 Yukihiro Matsumoto
-
-**********************************************************************/
+/*
+** regex.h - Regexp class
+**
+** See Copyright Notice in mruby.h
+*/
#ifndef ONIGURUMA_REGEX_H
#define ONIGURUMA_REGEX_H 1
diff --git a/src/ritehash.h b/src/ritehash.h
index 48feb9656..a17db425a 100644
--- a/src/ritehash.h
+++ b/src/ritehash.h
@@ -1,8 +1,9 @@
/*
- * Rite Hash
- *
- *
- */
+** ritehash.c - Rite Hash for mruby
+**
+** See Copyright Notice in mruby.h
+*/
+
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/sprintf.c b/src/sprintf.c
index 06e6b33d7..4036e44db 100644
--- a/src/sprintf.c
+++ b/src/sprintf.c
@@ -1,15 +1,8 @@
-/**********************************************************************
-
- sprintf.c -
-
- $Author: yugui $
- created at: Fri Oct 15 10:39:26 JST 1993
-
- Copyright (C) 1993-2007 Yukihiro Matsumoto
- Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
- Copyright (C) 2000 Information-technology Promotion Agency, Japan
-
-**********************************************************************/
+/*
+** sprintf.c - Kernel.#sprintf
+**
+** See Copyright Notice in mruby.h
+*/
#include "mruby.h"
#include <stdio.h>
diff --git a/src/state.c b/src/state.c
index 14efed986..913c186e4 100644
--- a/src/state.c
+++ b/src/state.c
@@ -1,3 +1,9 @@
+/*
+** state.c - RiteVM open/close functions
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include "irep.h"
#include <string.h>
diff --git a/src/string.c b/src/string.c
index da52172f7..b9c8796e6 100644
--- a/src/string.c
+++ b/src/string.c
@@ -1,3 +1,9 @@
+/*
+** string.c - String class
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include <stdarg.h>
diff --git a/src/struct.c b/src/struct.c
index 9af6e2ee4..cebbf0bda 100644
--- a/src/struct.c
+++ b/src/struct.c
@@ -1,13 +1,8 @@
-/**********************************************************************
-
- struct.c -
-
- $Author: marcandre $
- created at: Tue Mar 22 18:44:30 JST 1995
-
- Copyright (C) 1993-2007 Yukihiro Matsumoto
-
-**********************************************************************/
+/*
+** struct.c - Struct class
+**
+** See Copyright Notice in mruby.h
+*/
#include "mruby.h"
#include <string.h>
diff --git a/src/symbol.c b/src/symbol.c
index ad3400834..2645b7cd4 100644
--- a/src/symbol.c
+++ b/src/symbol.c
@@ -1,3 +1,9 @@
+/*
+** symbol.c - Symbol class
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include "ritehash.h"
#include <string.h>
diff --git a/src/variable.c b/src/variable.c
index 0bc1f0de1..5c3c493d8 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -1,3 +1,9 @@
+/*
+** variable.c - mruby variables
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include "mruby/class.h"
#include "ritehash.h"
diff --git a/src/variable.h b/src/variable.h
index 494099c2c..bd00b2f1f 100644
--- a/src/variable.h
+++ b/src/variable.h
@@ -1,3 +1,9 @@
+/*
+** variable.h - mruby variables
+**
+** See Copyright Notice in mruby.h
+*/
+
#ifndef MRUBY_VARIABLE_H
#define MRUBY_VARIABLE_H
diff --git a/src/version.c b/src/version.c
index d69c6941c..f0edc6731 100644
--- a/src/version.c
+++ b/src/version.c
@@ -1,14 +1,8 @@
-/**********************************************************************
-
- version.c -
-
- $Author: knu $
- $Date: 2008-05-31 22:37:06 +0900 (Sat, 31 May 2008) $
- created at: Thu Sep 30 20:08:01 JST 1993
-
- Copyright (C) 1993-2003 Yukihiro Matsumoto
-
-**********************************************************************/
+/*
+** version.c - version information
+**
+** See Copyright Notice in mruby.h
+*/
#include "mruby.h"
#include "version.h"
diff --git a/src/version.h b/src/version.h
index e132efdf4..0188acf19 100644
--- a/src/version.h
+++ b/src/version.h
@@ -1,3 +1,9 @@
+/*
+** version.h - version information
+**
+** See Copyright Notice in mruby.h
+*/
+
#define RUBY_VERSION "1.8.7"
#define RUBY_RELEASE_DATE "2010-08-16"
#define RUBY_VERSION_CODE 187
diff --git a/src/vm.c b/src/vm.c
index 6983fd86f..36211f7dc 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -1,3 +1,9 @@
+/*
+** vm.c - virtual machine for mruby (RiteVM)
+**
+** See Copyright Notice in mruby.h
+*/
+
#include "mruby.h"
#include "opcode.h"
#include "irep.h"
diff --git a/src/vm_core.h b/src/vm_core.h
index 98da043a2..1fadffaee 100644
--- a/src/vm_core.h
+++ b/src/vm_core.h
@@ -1,13 +1,8 @@
-/**********************************************************************
-
- vm_core.h -
-
- $Author: yugui $
- created at: 04/01/01 19:41:38 JST
-
- Copyright (C) 2004-2007 Koichi Sasada
-
-**********************************************************************/
+/*
+** vm_core.h - RiteVM core
+**
+** See Copyright Notice in mruby.h
+*/
#ifndef RUBY_VM_CORE_H
#define RUBY_VM_CORE_H