diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-04-30 15:41:37 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-04-30 15:41:37 -0700 |
| commit | 7c9080302801e2f2619c1848627bc310c7f3c1cb (patch) | |
| tree | 40539734fd32004652f7c98e2b88921aa57c8b25 /include/mruby.h | |
| parent | 6b739d91735fe83bd29f6ca8505c00d530e85584 (diff) | |
| parent | 4ec6d41f16e20fadc6f4c0de363a26a59a1a13fb (diff) | |
| download | mruby-7c9080302801e2f2619c1848627bc310c7f3c1cb.tar.gz mruby-7c9080302801e2f2619c1848627bc310c7f3c1cb.zip | |
Merge pull request #79 from rystyle/whitespace
rm whitespace mix
Diffstat (limited to 'include/mruby.h')
| -rw-r--r-- | include/mruby.h | 28 |
1 files changed, 14 insertions, 14 deletions
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 */ |
