Permalink
Browse files

rm whitespace

  • Loading branch information...
1 parent 6b739d9 commit 4ec6d41f16e20fadc6f4c0de363a26a59a1a13fb roco committed Apr 30, 2012
Showing with 19,541 additions and 19,541 deletions.
  1. +2 −2 include/mrbconf.h
  2. +14 −14 include/mruby.h
  3. +2 −2 include/mruby/array.h
  4. +1 −1 include/mruby/cdump.h
  5. +2 −2 include/mruby/class.h
  6. +2 −2 include/mruby/data.h
  7. +1 −1 include/mruby/dump.h
  8. +4 −4 include/mruby/hash.h
  9. +2 −2 include/mruby/irep.h
  10. +1 −1 include/mruby/khash.h
  11. +2 −2 include/mruby/numeric.h
  12. +3 −3 include/mruby/object.h
  13. +9 −9 include/mruby/proc.h
  14. +2 −2 include/mruby/range.h
  15. +1 −1 include/mruby/string.h
  16. +1 −1 include/mruby/struct.h
  17. +2 −2 include/mruby/variable.h
  18. +1 −1 src/array.c
  19. +2 −2 src/cdump.c
  20. +64 −64 src/class.c
  21. +425 −425 src/codegen.c
  22. +2 −2 src/compar.c
  23. +12 −12 src/compile.h
  24. +1 −1 src/crc.c
  25. +2 −2 src/dump.c
  26. +9 −9 src/encoding.c
  27. +7 −7 src/encoding.h
  28. +1 −1 src/enum.c
  29. +2 −2 src/error.c
  30. +1 −1 src/error.h
  31. +2 −2 src/etc.c
  32. +24 −24 src/eval_intern.h
  33. +10 −10 src/gc.c
  34. +1 −1 src/gc.h
  35. +1 −1 src/hash.c
  36. +1 −1 src/init.c
  37. +1 −1 src/init_ext.c
  38. +20 −20 src/kernel.c
  39. +3 −3 src/load.c
  40. +1 −1 src/method.h
  41. +17 −17 src/minimain.c
  42. +15,341 −15,341 src/name2ctype.h
  43. +1 −1 src/node.h
  44. +1 −1 src/numeric.c
  45. +1 −1 src/object.c
  46. +94 −94 src/opcode.h
  47. +3 −3 src/pool.c
  48. +1 −1 src/pool.h
  49. +1 −1 src/print.c
  50. +1 −1 src/proc.c
  51. +1 −1 src/range.c
  52. +1 −1 src/re.c
  53. +1 −1 src/re.h
  54. +924 −924 src/regcomp.c
  55. +25 −25 src/regenc.c
  56. +6 −6 src/regenc.h
  57. +42 −42 src/regerror.c
  58. +1 −1 src/regex.h
  59. +713 −713 src/regexec.c
  60. +4 −4 src/regint.h
  61. +889 −889 src/regparse.c
  62. +2 −2 src/sprintf.c
  63. +156 −156 src/st.c
  64. +4 −4 src/st.h
  65. +1 −1 src/state.c
  66. +1 −1 src/string.c
  67. +1 −1 src/struct.c
  68. +1 −1 src/symbol.c
  69. +1 −1 src/transcode.c
  70. +28 −28 src/transcode_data.h
  71. +155 −155 src/unicode.c
  72. +18 −18 src/utf_8.c
  73. +7 −7 src/variable.c
  74. +1 −1 src/version.c
  75. +1 −1 src/version.h
  76. +417 −417 src/vm.c
  77. +16 −16 src/vm_core.h
  78. +19 −19 tools/mruby/mruby.c
View
@@ -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 */
View
@@ -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 */
View
@@ -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 */
View
@@ -1,6 +1,6 @@
/*
** cdump.h - mruby binary dumper (C source format)
-**
+**
** See Copyright Notice in mruby.h
*/
View
@@ -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 */
View
@@ -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*);
};
View
@@ -1,6 +1,6 @@
/*
** dump.h - mruby binary dumper (Rite binary format)
-**
+**
** See Copyright Notice in mruby.h
*/
View
@@ -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};
View
@@ -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 */
View
@@ -1,6 +1,6 @@
/*
** ritehash.c - Rite Hash for mruby
-**
+**
** See Copyright Notice in mruby.h
*/
View
@@ -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 */
View
@@ -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 */
View
@@ -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 */
View
@@ -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 */
View
@@ -1,6 +1,6 @@
/*
** string.h - String class
-**
+**
** See Copyright Notice in mruby.h
*/
View
@@ -1,6 +1,6 @@
/*
** struct.h - Struct class
-**
+**
** See Copyright Notice in mruby.h
*/
View
@@ -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 */
View
@@ -1,6 +1,6 @@
/*
** array.c - Array class
-**
+**
** See Copyright Notice in mruby.h
*/
View
@@ -1,6 +1,6 @@
/*
** cdump.c - mruby binary dumper (C source format)
-**
+**
** See Copyright Notice in mruby.h
*/
@@ -124,7 +124,7 @@ make_cdump_irep(mrb_state *mrb, int irep_no, FILE *f)
SOURCE_CODE (" irep->syms = mrb_malloc(mrb, sizeof(mrb_sym)*%d);", irep->slen);
for (n=0; n<irep->slen; n++)
if (irep->syms[n]) {
- SOURCE_CODE (" irep->syms[%d] = mrb_intern(mrb, \"%s\");", n, mrb_sym2name(mrb, irep->syms[n]));
+ SOURCE_CODE (" irep->syms[%d] = mrb_intern(mrb, \"%s\");", n, mrb_sym2name(mrb, irep->syms[n]));
}
}
else
Oops, something went wrong.

0 comments on commit 4ec6d41

Please sign in to comment.