summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mrbconf.h4
-rw-r--r--include/mruby.h28
-rw-r--r--include/mruby/array.h4
-rw-r--r--include/mruby/cdump.h2
-rw-r--r--include/mruby/class.h4
-rw-r--r--include/mruby/data.h4
-rw-r--r--include/mruby/dump.h2
-rw-r--r--include/mruby/hash.h8
-rw-r--r--include/mruby/irep.h4
-rw-r--r--include/mruby/khash.h2
-rw-r--r--include/mruby/numeric.h4
-rw-r--r--include/mruby/object.h6
-rw-r--r--include/mruby/proc.h18
-rw-r--r--include/mruby/range.h4
-rw-r--r--include/mruby/string.h2
-rw-r--r--include/mruby/struct.h2
-rw-r--r--include/mruby/variable.h4
17 files changed, 51 insertions, 51 deletions
diff --git a/include/mrbconf.h b/include/mrbconf.h
index 27cf68d00..b21388f7a 100644
--- a/include/mrbconf.h
+++ b/include/mrbconf.h
@@ -1,6 +1,6 @@
/*
** mrbconf.h - mruby core configuration
-**
+**
** See Copyright Notice in mruby.h
*/
@@ -42,4 +42,4 @@ typedef intptr_t mrb_sym;
# define TRUE 1
#endif
-#endif /* MRUBYCONF_H */
+#endif /* MRUBYCONF_H */
diff --git a/include/mruby.h b/include/mruby.h
index bbca91c0f..6efa54858 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -1,8 +1,8 @@
/*
** mruby - An embeddable Ruby implementaion
-**
+**
** Copyright (c) mruby developers 2010-2012
-**
+**
** Permission is hereby granted, free of charge, to any person obtaining
** a copy of this software and associated documentation files (the
** "Software"), to deal in the Software without restriction, including
@@ -33,7 +33,7 @@
enum mrb_vtype {
MRB_TT_FALSE = 0, /* 0 */
- MRB_TT_FREE, /* 1 */
+ MRB_TT_FREE, /* 1 */
MRB_TT_TRUE, /* 2 */
MRB_TT_FIXNUM, /* 3 */
MRB_TT_SYMBOL, /* 4 */
@@ -276,8 +276,8 @@ typedef struct mrb_state {
mrb_int gc_step_ratio;
mrb_sym symidx;
- struct kh_n2s *name2sym; /* symbol table */
- struct kh_s2n *sym2name; /* reverse symbol table */
+ struct kh_n2s *name2sym; /* symbol table */
+ struct kh_s2n *sym2name; /* reverse symbol table */
struct RNode *local_svar;/* regexp */
struct RClass *eException_class;
@@ -310,22 +310,22 @@ struct RClass * mrb_define_class_under(mrb_state *mrb, struct RClass *outer, con
struct RClass * mrb_define_module_under(mrb_state *mrb, struct RClass *outer, const char *name);
/* required arguments */
-#define ARGS_REQ(n) (((n)&0x1f) << 19)
+#define ARGS_REQ(n) (((n)&0x1f) << 19)
/* optional arguments */
-#define ARGS_OPT(n) (((n)&0x1f) << 14)
+#define ARGS_OPT(n) (((n)&0x1f) << 14)
/* rest argument */
-#define ARGS_REST() (1 << 13)
+#define ARGS_REST() (1 << 13)
/* required arguments after rest */
-#define ARGS_POST(n) (((n)&0x1f) << 8)
+#define ARGS_POST(n) (((n)&0x1f) << 8)
/* keyword arguments (n of keys, kdict) */
-#define ARGS_KEY(n1,n2) ((((n1)&0x1f) << 3) | ((n2)?(1<<2):0))
+#define ARGS_KEY(n1,n2) ((((n1)&0x1f) << 3) | ((n2)?(1<<2):0))
/* block argument */
-#define ARGS_BLOCK() (1 << 1)
+#define ARGS_BLOCK() (1 << 1)
/* accept any number of arguments */
-#define ARGS_ANY() ARGS_REST()
+#define ARGS_ANY() ARGS_REST()
/* accept no arguments */
-#define ARGS_NONE() 0
+#define ARGS_NONE() 0
int mrb_get_args(mrb_state *mrb, const char *format, ...);
@@ -600,4 +600,4 @@ int mrb_sourceline(void);
void ruby_default_signal(int sig);
mrb_value mrb_attr_get(mrb_state *mrb, mrb_value obj, mrb_sym id);
-#endif /* MRUBY_H */
+#endif /* MRUBY_H */
diff --git a/include/mruby/array.h b/include/mruby/array.h
index 4d43f4c07..6b7c9aa04 100644
--- a/include/mruby/array.h
+++ b/include/mruby/array.h
@@ -1,6 +1,6 @@
/*
** array.h - Array class
-**
+**
** See Copyright Notice in mruby.h
*/
@@ -45,4 +45,4 @@ mrb_value mrb_ary_tmp_new(mrb_state *mrb, long capa);
mrb_value mrb_ary_sort(mrb_state *mrb, mrb_value ary);
mrb_value mrb_ary_shift(mrb_state *mrb, mrb_value self);
-#endif /* MRUBY_ARRAY_H */
+#endif /* MRUBY_ARRAY_H */
diff --git a/include/mruby/cdump.h b/include/mruby/cdump.h
index f74d7a046..c07bc3d7d 100644
--- a/include/mruby/cdump.h
+++ b/include/mruby/cdump.h
@@ -1,6 +1,6 @@
/*
** cdump.h - mruby binary dumper (C source format)
-**
+**
** See Copyright Notice in mruby.h
*/
diff --git a/include/mruby/class.h b/include/mruby/class.h
index 5f4e8e0d2..0713f9b36 100644
--- a/include/mruby/class.h
+++ b/include/mruby/class.h
@@ -1,6 +1,6 @@
/*
** class.h - Class class
-**
+**
** See Copyright Notice in mruby.h
*/
@@ -74,4 +74,4 @@ void mrb_define_method_id(mrb_state *mrb, struct RClass *c, mrb_sym mid, mrb_fun
void mrb_obj_call_init(mrb_state *mrb, mrb_value obj, int argc, mrb_value *argv);
-#endif /* MRUBY_CLASS_H */
+#endif /* MRUBY_CLASS_H */
diff --git a/include/mruby/data.h b/include/mruby/data.h
index 02d81155a..f839389f9 100644
--- a/include/mruby/data.h
+++ b/include/mruby/data.h
@@ -1,6 +1,6 @@
/*
** data.h - Data class
-**
+**
** See Copyright Notice in mruby.h
*/
@@ -13,7 +13,7 @@ extern "C" {
struct mrb_data_type {
- const char *struct_name;
+ const char *struct_name;
void (*dfree)(mrb_state *mrb, void*);
};
diff --git a/include/mruby/dump.h b/include/mruby/dump.h
index 1bdd9b91e..7508eb38d 100644
--- a/include/mruby/dump.h
+++ b/include/mruby/dump.h
@@ -1,6 +1,6 @@
/*
** dump.h - mruby binary dumper (Rite binary format)
-**
+**
** See Copyright Notice in mruby.h
*/
diff --git a/include/mruby/hash.h b/include/mruby/hash.h
index 4bbb8f764..387da69d5 100644
--- a/include/mruby/hash.h
+++ b/include/mruby/hash.h
@@ -1,6 +1,6 @@
/*
** hash.h - Hash class
-**
+**
** See Copyright Notice in mruby.h
*/
@@ -15,9 +15,9 @@ struct RHash {
#define N 624
#define M 397
-#define MATRIX_A 0x9908b0dfU /* constant vector a */
-#define UMASK 0x80000000U /* most significant w-r bits */
-#define LMASK 0x7fffffffU /* least significant r bits */
+#define MATRIX_A 0x9908b0dfU /* constant vector a */
+#define UMASK 0x80000000U /* most significant w-r bits */
+#define LMASK 0x7fffffffU /* least significant r bits */
#define MIXBITS(u,v) ( ((u) & UMASK) | ((v) & LMASK) )
#define TWIST(u,v) ((MIXBITS(u,v) >> 1) ^ ((v)&1U ? MATRIX_A : 0U))
enum {MT_MAX_STATE = N};
diff --git a/include/mruby/irep.h b/include/mruby/irep.h
index b3f9e8d87..2d25d0c4a 100644
--- a/include/mruby/irep.h
+++ b/include/mruby/irep.h
@@ -1,6 +1,6 @@
/*
** irep.h - mrb_irep structure
-**
+**
** See Copyright Notice in mruby.h
*/
@@ -26,4 +26,4 @@ typedef struct mrb_irep {
void mrb_add_irep(mrb_state *mrb, int n);
-#endif /* MRUBY_IREP_H */
+#endif /* MRUBY_IREP_H */
diff --git a/include/mruby/khash.h b/include/mruby/khash.h
index 6f369a455..378e1fc2d 100644
--- a/include/mruby/khash.h
+++ b/include/mruby/khash.h
@@ -1,6 +1,6 @@
/*
** ritehash.c - Rite Hash for mruby
-**
+**
** See Copyright Notice in mruby.h
*/
diff --git a/include/mruby/numeric.h b/include/mruby/numeric.h
index af1b671e2..f8ddeb213 100644
--- a/include/mruby/numeric.h
+++ b/include/mruby/numeric.h
@@ -1,6 +1,6 @@
/*
** numeric.h - Numeric, Integer, Float, Fixnum class
-**
+**
** See Copyright Notice in mruby.h
*/
@@ -20,4 +20,4 @@ mrb_value mrb_flt2big(mrb_state *mrb, float d);
void mrb_num_zerodiv(mrb_state *mrb);
mrb_value mrb_fix2str(mrb_state *mrb, mrb_value x, int base);
-#endif /* MRUBY_NUMERIC_H */
+#endif /* MRUBY_NUMERIC_H */
diff --git a/include/mruby/object.h b/include/mruby/object.h
index e509baf79..a4d2d2dac 100644
--- a/include/mruby/object.h
+++ b/include/mruby/object.h
@@ -1,13 +1,13 @@
/*
** object.h - Object, NilClass, TrueClass, FalseClass class
-**
+**
** See Copyright Notice in mruby.h
*/
#ifndef MRUBY_OBJECT_H
#define MRUBY_OBJECT_H
-#define MRUBY_OBJECT_HEADER \
+#define MRUBY_OBJECT_HEADER \
enum mrb_vtype tt:8;\
int color:3;\
unsigned int flags:21;\
@@ -49,4 +49,4 @@ struct RObject {
#define ROBJECT(v) ((struct RObject*)((v).value.p))
#define ROBJECT_IVPTR(v) (((struct RObject*)((v).value.p))->iv)
#define ROBJECT_NUMIV(v) (ROBJECT_IVPTR(v) ? ROBJECT_IVPTR(v)->size : 0)
-#endif /* MRUBY_OBJECT_H */
+#endif /* MRUBY_OBJECT_H */
diff --git a/include/mruby/proc.h b/include/mruby/proc.h
index a06896a3f..033dcaedf 100644
--- a/include/mruby/proc.h
+++ b/include/mruby/proc.h
@@ -1,6 +1,6 @@
/*
** proc.h - Proc class
-**
+**
** See Copyright Notice in mruby.h
*/
@@ -28,13 +28,13 @@ struct RProc {
};
/* aspec access */
-#define ARGS_GETREQ(a) (((a) >> 19) & 0x1f)
-#define ARGS_GETOPT(a) (((a) >> 14) & 0x1f)
-#define ARGS_GETREST(a) ((a) & (1<<13))
-#define ARGS_GETPOST(a) (((a) >> 8) & 0x1f)
-#define ARGS_GETKEY(a) (((a) >> 3) & 0x1f))
-#define ARGS_GETKDICT(a) ((a) & (1<<2))
-#define ARGS_GETBLOCK(a) ((a) & (1<<1))
+#define ARGS_GETREQ(a) (((a) >> 19) & 0x1f)
+#define ARGS_GETOPT(a) (((a) >> 14) & 0x1f)
+#define ARGS_GETREST(a) ((a) & (1<<13))
+#define ARGS_GETPOST(a) (((a) >> 8) & 0x1f)
+#define ARGS_GETKEY(a) (((a) >> 3) & 0x1f))
+#define ARGS_GETKDICT(a) ((a) & (1<<2))
+#define ARGS_GETBLOCK(a) ((a) & (1<<1))
#define MRB_PROC_CFUNC 128
#define MRB_PROC_CFUNC_P(p) ((p)->flags & MRB_PROC_CFUNC)
@@ -47,4 +47,4 @@ struct RProc *mrb_proc_new(mrb_state*, mrb_irep*);
struct RProc *mrb_proc_new_cfunc(mrb_state*, mrb_func_t);
struct RProc *mrb_closure_new(mrb_state*, mrb_irep*);
-#endif /* MRUBY_STRING_H */
+#endif /* MRUBY_STRING_H */
diff --git a/include/mruby/range.h b/include/mruby/range.h
index 9ffddbcae..9a59f645a 100644
--- a/include/mruby/range.h
+++ b/include/mruby/range.h
@@ -1,6 +1,6 @@
/*
** range.h - Range class
-**
+**
** See Copyright Notice in mruby.h
*/
@@ -24,4 +24,4 @@ mrb_int mrb_range_beg_len(mrb_state *mrb, mrb_value range, mrb_int *begp, mrb_in
int mrb_obj_is_instance_of(mrb_state *mrb, mrb_value obj, struct RClass* c);
struct RClass* mrb_class_real(struct RClass* cl);
-#endif /* MRUBY_RANGE_H */
+#endif /* MRUBY_RANGE_H */
diff --git a/include/mruby/string.h b/include/mruby/string.h
index d35a5fe53..5a2c46a99 100644
--- a/include/mruby/string.h
+++ b/include/mruby/string.h
@@ -1,6 +1,6 @@
/*
** string.h - String class
-**
+**
** See Copyright Notice in mruby.h
*/
diff --git a/include/mruby/struct.h b/include/mruby/struct.h
index 32fa48030..46012cc43 100644
--- a/include/mruby/struct.h
+++ b/include/mruby/struct.h
@@ -1,6 +1,6 @@
/*
** struct.h - Struct class
-**
+**
** See Copyright Notice in mruby.h
*/
diff --git a/include/mruby/variable.h b/include/mruby/variable.h
index 9076fcf7c..eb21ceeba 100644
--- a/include/mruby/variable.h
+++ b/include/mruby/variable.h
@@ -1,6 +1,6 @@
/*
** variable.h - mruby variables
-**
+**
** See Copyright Notice in mruby.h
*/
@@ -44,4 +44,4 @@ mrb_value mrb_f_global_variables(mrb_state *mrb, mrb_value self);
mrb_value mrb_gv_get(mrb_state *mrb, mrb_sym sym);
void mrb_gv_set(mrb_state *mrb, mrb_sym sym, mrb_value val);
-#endif /* MRUBY_VARIABLE_H */
+#endif /* MRUBY_VARIABLE_H */