Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi! We cleaned up your code for you! #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ version 2 (see the file GPL), or the conditions below:
For the list of those files and their copying conditions, see the
file LEGAL.

5. The scripts and library files supplied as input to or produced as
5. The scripts and library files supplied as input to or produced as
output from the software do not automatically fall under the
copyright of the software, but belong to whomever generated them,
copyright of the software, but belong to whomever generated them,
and may be sold commercially, and may be aggregated with this
software.

Expand Down
32 changes: 16 additions & 16 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ Tue Oct 6 06:26:00 2009 Hidetoshi NAGAI <[email protected]>

* ext/tk/lib/tkextlib/vu/dial.rb: fix logical bug.

* ext/tk/lib/tk/canvas.rb, ext/tk/lib/tkextlib/blt/component.rb:
* ext/tk/lib/tk/canvas.rb, ext/tk/lib/tkextlib/blt/component.rb:
lack of support for methodcall_optkeys.

Mon Oct 5 17:19:33 2009 Yukihiro Matsumoto <[email protected]>
Expand Down Expand Up @@ -791,7 +791,7 @@ Mon Sep 28 12:13:15 2009 Yukihiro Matsumoto <[email protected]>
method_missing with same symbol should be equal.
[ruby-core:25755]

* proc.c (mnew): should always return method object.
* proc.c (mnew): should always return method object.

Mon Sep 28 11:38:07 2009 NAKAMURA Usaku <[email protected]>

Expand Down Expand Up @@ -1282,18 +1282,18 @@ Wed Sep 16 06:30:07 2009 Marc-Andre Lafortune <[email protected]>

* thread.c (rb_exec_recursive_outer, rb_exec_recursive): Added method
to short-circuit to the outermost level in case of recursion

* test/ruby/test_thread.rb (test_recursive_outer): Test for above

* hash.c (rb_hash_hash): Return a sensible hash for in case of
recursion [ruby-core:24648]

* range.c (rb_range_hash): ditto

* struct.c (rb_struct_hash): ditto

* array.c (rb_array_hash): ditto

* test/ruby/test_array.rb (test_hash2): test for above

Wed Sep 16 06:17:33 2009 Marc-Andre Lafortune <[email protected]>
Expand Down Expand Up @@ -1437,7 +1437,7 @@ Sun Sep 13 20:18:49 2009 Nobuyoshi Nakada <[email protected]>

Sun Sep 13 19:39:59 2009 Masaki Suketa <[email protected]>

* ext/win32ole/win32ole.c: some refactoring.
* ext/win32ole/win32ole.c: some refactoring.

Sun Sep 13 19:38:34 2009 Nobuyoshi Nakada <[email protected]>

Expand Down Expand Up @@ -1478,7 +1478,7 @@ Sun Sep 13 09:34:10 2009 Nobuyoshi Nakada <[email protected]>

Sun Sep 13 08:30:30 2009 Masaki Suketa <[email protected]>

* ext/win32ole/win32ole.c: fix WIN32OLE_TYPELIB.new when the 1st
* ext/win32ole/win32ole.c: fix WIN32OLE_TYPELIB.new when the 1st
argument is the non-registered file.

Sun Sep 13 02:08:43 2009 Koichi Sasada <[email protected]>
Expand Down Expand Up @@ -1794,7 +1794,7 @@ Sun Sep 6 17:31:28 2009 Koichi Sasada <[email protected]>

Sun Sep 6 16:13:06 2009 Koichi Sasada <[email protected]>

* insns.def (setinstancevariable), vm_insnhelper.c (vm_setivar):
* insns.def (setinstancevariable), vm_insnhelper.c (vm_setivar):
fix to use inline cache (trivial optimization).

Sun Sep 6 10:34:19 2009 Nobuyoshi Nakada <[email protected]>
Expand Down Expand Up @@ -1901,11 +1901,11 @@ Mon Aug 31 14:17:09 2009 Yuki Sonoda (Yugui) <[email protected]>
(rb_singleton_class): refactored.
(rb_define_singleton_method): it needs a metaclass only
but not its metametaclass.

* object.c: booting class hierarchy was moved to class.c
for keeping dependency between compilation units least.
(Init_Object): extracting the booting into
Init_class_hierarchy.
(Init_Object): extracting the booting into
Init_class_hierarchy.
(boot_defclass): moved to class.c.

Sun Aug 30 23:44:09 2009 Tanaka Akira <[email protected]>
Expand Down Expand Up @@ -1946,7 +1946,7 @@ Sun Aug 30 03:59:43 2009 Tanaka Akira <[email protected]>
* timev.h (TIME_SCALE): defined as 1000000000.
(struct vtm): subsec is replaced by subsecx.
subsec * TIME_SCALE == subsecx.

* time.c: avoid rational in most cases.
(struct time_object): timev is replaced by timexv.
timev * TIME_SCALE == timexv.
Expand Down Expand Up @@ -2186,7 +2186,7 @@ Sun Aug 23 15:12:22 2009 Tanaka Akira <[email protected]>

* bootstraptest/runner.rb (Dir.mktmpdir): updated to latest.
(in_temporary_working_directory): temporary directory name changed.

Sun Aug 23 00:56:13 2009 Tanaka Akira <[email protected]>

* thread.c (rb_thread_schedule): don't recur infinitely.
Expand Down
14 changes: 7 additions & 7 deletions LEGAL
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ http://www.geocities.jp/kosako3/oniguruma/
http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/oniguruma/
http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/oniguruma/

When this software is partly used or it is distributed with Ruby,
When this software is partly used or it is distributed with Ruby,
this of Ruby follows the license of Ruby.

configure:
Expand Down Expand Up @@ -132,11 +132,11 @@ random.c
This is a faster version by taking Shawn Cokus's optimization,
Matthe Bellew's simplification, Isaku Wada's real version.

Before using, initialize the state by using init_genrand(seed)
Before using, initialize the state by using init_genrand(seed)
or init_by_array(init_key, key_length).

Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
All rights reserved.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
Expand All @@ -149,8 +149,8 @@ random.c
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. The names of its contributors may not be used to endorse or promote
products derived from this software without specific prior written
3. The names of its contributors may not be used to endorse or promote
products derived from this software without specific prior written
permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Expand Down Expand Up @@ -347,7 +347,7 @@ ext/nkf/nkf-utf8/utf8tbl.c:
copyrighted semi-public-domain software.

Copyright (C) 1987, Fujitsu LTD. (Itaru ICHIKAWA)
Everyone is permitted to do anything on this program
Everyone is permitted to do anything on this program
including copying, modifying, improving,
as long as you don't try to pretend that you wrote it.
i.e., the above copyright notice has to appear in all copies.
Expand Down Expand Up @@ -398,7 +398,7 @@ ext/win32ole/win32ole.c:

Other modifications Copyright (c) 1997, 1998 by Gurusamy Sarathy
<[email protected]> and Jan Dubois <[email protected]>

You may distribute under the terms of either the GNU General Public
License or the Artistic License, as specified in the README file
of the Perl distribution.
2 changes: 1 addition & 1 deletion LGPL
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.

1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
Expand Down
4 changes: 2 additions & 2 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ warnflags = @warnflags@
XCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir) @XCFLAGS@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@
EXTLDFLAGS =
EXTLDFLAGS =
XLDFLAGS = @XLDFLAGS@ $(EXTLDFLAGS)
EXTLIBS =
EXTLIBS =
LIBS = @LIBS@ $(EXTLIBS)
MISSING = @LIBOBJS@ @ALLOCA@
LDSHARED = @LIBRUBY_LDSHARED@
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ See the file COPYING.

* The Author

Feel free to send comments and bug reports to the author. Here is the
Feel free to send comments and bug reports to the author. Here is the
author's latest mail address:

[email protected]
Expand Down
38 changes: 19 additions & 19 deletions README.EXT
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ To convert C data to Ruby values:

cast to VALUE.

You can determine whether a VALUE is pointer or not by checking its LSB.
You can determine whether a VALUE is pointer or not by checking its LSB.

Notice Ruby does not allow arbitrary pointer values to be a VALUE. They
should be pointers to the structures which Ruby knows about. The known
Expand Down Expand Up @@ -213,9 +213,9 @@ listed below:
rb_str_cat2(str, rb_vsprintf(format, ap)), respectively.

rb_enc_str_new(const char *ptr, long len, rb_encoding *enc)

Creates a new Ruby string with the specified encoding.

rb_usascii_str_new(const char *ptr, long len)
rb_usascii_str_new_cstr(const char *ptr)

Expand Down Expand Up @@ -296,17 +296,17 @@ To define nested classes or modules, use the functions below:

To define methods or singleton methods, use these functions:

void rb_define_method(VALUE klass, const char *name,
void rb_define_method(VALUE klass, const char *name,
VALUE (*func)(), int argc)

void rb_define_singleton_method(VALUE object, const char *name,
void rb_define_singleton_method(VALUE object, const char *name,
VALUE (*func)(), int argc)

The `argc' represents the number of the arguments to the C function,
which must be less than 17. But I doubt you'll need that many.

If `argc' is negative, it specifies the calling sequence, not number of
the arguments.
the arguments.

If argc is -1, the function will be called as:

Expand All @@ -326,14 +326,14 @@ actual arguments.
There are some more functions to define methods. One takes an ID
as the name of method to be defined. See 2.2.2 for IDs.

void rb_define_method_id(VALUE klass, ID name,
void rb_define_method_id(VALUE klass, ID name,
VALUE (*func)(ANYARGS), int argc)

There are two functions to define private/protected methods:

void rb_define_private_method(VALUE klass, const char *name,
void rb_define_private_method(VALUE klass, const char *name,
VALUE (*func)(), int argc)
void rb_define_protected_method(VALUE klass, const char *name,
void rb_define_protected_method(VALUE klass, const char *name,
VALUE (*func)(), int argc)

At last, rb_define_module_function defines a module functions,
Expand All @@ -350,7 +350,7 @@ or

To define module functions, use:

void rb_define_module_function(VALUE module, const char *name,
void rb_define_module_function(VALUE module, const char *name,
VALUE (*func)(), int argc)

In addition, function-like methods, which are private methods defined
Expand Down Expand Up @@ -399,7 +399,7 @@ evaluate the string as Ruby program. This function will do the job:
Evaluation is done under the current context, thus current local variables
of the innermost method (which is defined by Ruby) can be accessed.

Note that the evaluation can raise an exception. There is a safer
Note that the evaluation can raise an exception. There is a safer
function:

VALUE rb_eval_string_protect(const char *str, int *state)
Expand Down Expand Up @@ -563,7 +563,7 @@ Data_Get_Struct().

A pointer to the structure will be assigned to the variable sval.

See the example below for details.
See the example below for details.

4. Example - Creating dbm extension

Expand Down Expand Up @@ -618,7 +618,7 @@ Init_dbm(void)
}
--

The dbm extension wraps the dbm struct in the C environment using
The dbm extension wraps the dbm struct in the C environment using
Data_Make_Struct.

--
Expand Down Expand Up @@ -847,7 +847,7 @@ utility functions
ruby interpreter implementation

dmyext.c
dmydln.c
dmydln.c
dmyencoding.c
id.c
inits.c
Expand Down Expand Up @@ -883,7 +883,7 @@ class library
rational.c : Rational
re.c : Regexp, MatchData
signal.c : Signal
sprintf.c :
sprintf.c :
string.c : String
struct.c : Struct
time.c : Time
Expand All @@ -898,7 +898,7 @@ multilingualization
enc/trans/* : codepoint mapping tables

goruby interpreter implementation

goruby.c
golf_prelude.rb : goruby specific libraries.
-> golf_prelude.c : automatically generated
Expand Down Expand Up @@ -946,7 +946,7 @@ sval, and returns the DATA encapsulating the pointer to memory region.
Data_Get_Struct(data, type, sval)

This macro retrieves the pointer value from DATA, and assigns it to
the variable sval.
the variable sval.

** Checking data types

Expand Down Expand Up @@ -1033,7 +1033,7 @@ The getter function must return the value for the access.
void rb_define_hooked_variable(const char *name, VALUE *var,
VALUE (*getter)(), VALUE (*setter)())

Defines hooked variable. It's a virtual variable with a C variable.
Defines hooked variable. It's a virtual variable with a C variable.
The getter is called as

VALUE getter(ID id, VALUE *var)
Expand Down Expand Up @@ -1174,7 +1174,7 @@ argc/argv as the third/fourth arguments.
Calls the function func1, supplying func2 as the block. func1 will be
called with the argument arg1. func2 receives the value from yield as
the first argument, arg2 as the second argument.

When rb_iterate is used in 1.9, func1 has to call some Ruby-level method.
This function is obsolete since 1.9; use rb_block_call instead.

Expand Down
Loading