Permalink
Browse files

fix trailing newlines

  • Loading branch information...
1 parent ea2b9f4 commit 576f016fe2cba42bfec9bfd0b28ad18524253cad @charliesome charliesome committed Nov 22, 2012
Showing with 774 additions and 774 deletions.
  1. +1 −1 lib/slash/highlighter.sl
  2. +1 −1 scripts/generate-unicode-c.pl
  3. +7 −7 src/lib/bignum.c
  4. +1 −1 src/object.c
  5. +763 −763 src/unicode.c
  6. +1 −1 test/test.sl
@@ -67,7 +67,7 @@ class Highlighter {
@tokens[-1][1] += str[0];
} else {
@tokens.push(["unknown", str[0]]);
- }
+ }
str = str.split("").drop(1).join; # TODO: implement string slicing...
}
}
@@ -18,7 +18,7 @@
while(<$case_folding>) {
next unless /^([A-F0-9]+); [CS]; ([A-F0-9]+); # (.*)$/;
- print $output " { 0x$1, 0x$2 }, // $3 \n";
+ print $output " { 0x$1, 0x$2 }, // $3\n";
}
print $output <<C;
View
@@ -164,7 +164,7 @@ sl_bignum_add(sl_vm_t* vm, SLVAL self, SLVAL other)
b = get_bignum(vm, other);
c = get_bignum(vm, sl_allocate(vm, vm->lib.Bignum));
mpz_add(c->mpz, a->mpz, b->mpz);
- return sl_make_ptr((sl_object_t*)c);
+ return sl_make_ptr((sl_object_t*)c);
}
SLVAL
@@ -182,7 +182,7 @@ sl_bignum_sub(sl_vm_t* vm, SLVAL self, SLVAL other)
b = get_bignum(vm, other);
c = get_bignum(vm, sl_allocate(vm, vm->lib.Bignum));
mpz_sub(c->mpz, a->mpz, b->mpz);
- return sl_make_ptr((sl_object_t*)c);
+ return sl_make_ptr((sl_object_t*)c);
}
SLVAL
@@ -200,7 +200,7 @@ sl_bignum_mul(sl_vm_t* vm, SLVAL self, SLVAL other)
b = get_bignum(vm, other);
c = get_bignum(vm, sl_allocate(vm, vm->lib.Bignum));
mpz_mul(c->mpz, a->mpz, b->mpz);
- return sl_make_ptr((sl_object_t*)c);
+ return sl_make_ptr((sl_object_t*)c);
}
SLVAL
@@ -221,7 +221,7 @@ sl_bignum_div(sl_vm_t* vm, SLVAL self, SLVAL other)
}
c = get_bignum(vm, sl_allocate(vm, vm->lib.Bignum));
mpz_tdiv_q(c->mpz, a->mpz, b->mpz);
- return sl_make_ptr((sl_object_t*)c);
+ return sl_make_ptr((sl_object_t*)c);
}
SLVAL
@@ -242,7 +242,7 @@ sl_bignum_mod(sl_vm_t* vm, SLVAL self, SLVAL other)
}
c = get_bignum(vm, sl_allocate(vm, vm->lib.Bignum));
mpz_tdiv_r(c->mpz, a->mpz, b->mpz);
- return sl_make_ptr((sl_object_t*)c);
+ return sl_make_ptr((sl_object_t*)c);
}
SLVAL
@@ -279,7 +279,7 @@ sl_bignum_and(sl_vm_t* vm, SLVAL self, SLVAL other)
b = get_bignum(vm, other);
c = get_bignum(vm, sl_allocate(vm, vm->lib.Bignum));
mpz_and(c->mpz, a->mpz, b->mpz);
- return sl_make_ptr((sl_object_t*)c);
+ return sl_make_ptr((sl_object_t*)c);
}
SLVAL
@@ -294,7 +294,7 @@ sl_bignum_or(sl_vm_t* vm, SLVAL self, SLVAL other)
b = get_bignum(vm, other);
c = get_bignum(vm, sl_allocate(vm, vm->lib.Bignum));
mpz_ior(c->mpz, a->mpz, b->mpz);
- return sl_make_ptr((sl_object_t*)c);
+ return sl_make_ptr((sl_object_t*)c);
}
SLVAL
View
@@ -338,7 +338,7 @@ call_c_func(sl_vm_t* vm, SLVAL recv, sl_method_t* method, size_t argc, SLVAL* ar
static SLVAL
call_c_func_guard(sl_vm_t* vm, SLVAL recv, sl_method_t* method, size_t argc, SLVAL* argv)
{
- sl_catch_frame_t frame;
+ sl_catch_frame_t frame;
frame.prev = vm->catch_stack;
frame.value = vm->lib.nil;
vm->catch_stack = &frame;
Oops, something went wrong.

0 comments on commit 576f016

Please sign in to comment.