aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
Commit message (Collapse)AuthorAgeFilesLines
* Skip broken strings as the locale encodingNobuyoshi Nakada2021-10-011-4/+7
|
* Replace expanded load path only when modifiedNobuyoshi Nakada2021-10-011-1/+5
|
* Copy path strings as interned stringsNobuyoshi Nakada2021-10-011-2/+10
|
* Fix the encoding of loaded feature names [Bug #18191]Nobuyoshi Nakada2021-10-011-1/+11
| | | | | The feature names loaded from the default load paths should also be in the file system encoding.
* include/ruby/internal/interpreter.h: add doxygen卜部昌平2021-09-101-13/+0
| | | | | | | | Must not be a bad idea to improve documents. [ci skip] In fact many functions declared in the header file are already documented more or less. They were just copy & pasted, with applying some style updates.
* Replace RBOOL macroS-H-GAMELINKS2021-09-051-1/+1
|
* Suppress unused-but-set-variable warningNobuyoshi Nakada2021-07-061-0/+2
|
* Rename error_squiggle to error_highlightYusuke Endoh2021-06-291-4/+4
|
* [WIP] add error_squiggle gemYusuke Endoh2021-06-291-0/+6
| | | | | | | | | | | | | ``` $ ./local/bin/ruby -e '1.time {}' -e:1:in `<main>': undefined method `time' for 1:Integer (NoMethodError) 1.time {} ^^^^^ Did you mean? times ``` https://bugs.ruby-lang.org/issues/17930
* Deprecate and rework old (fd) centric functions.Samuel Williams2021-06-221-1/+1
|
* Freeze command line scriptNobuyoshi Nakada2021-06-101-0/+1
|
* Fix trivial -Wundef warningsBenoit Daloze2021-05-041-1/+1
| | | | | | * See [Feature #17752] Co-authored-by: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
* Removed dln_a_outNobuyoshi Nakada2021-03-241-9/+0
| | | a.out format is considered extinct nowadays.
* [Feature #17684] Declare --disable-gems is for debuggingNARUSE, Yui2021-03-171-2/+2
|
* Constified variables for getenvNobuyoshi Nakada2021-03-121-1/+1
|
* Keep libpath length non-negative [Bug #16784]Yusuke Endoh2021-03-061-1/+4
| | | | | | | | When runtime_libruby_path does not include '/', it attempts to call rb_str_resize with negative length. This change makes sure that the length non-negative. Co-Authored-By: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
* Fixed fallback ENABLE_VIRTUAL_TERMINAL_PROCESSING value [Bug #17639]YO4 (Yoshinao Muramatsu)2021-02-201-1/+1
|
* Moved --verbose, --verbose and --help options to last [ci skip]Nobuyoshi Nakada2021-01-241-1/+1
|
* Make warning values consistent [Bug #17523]Nobuyoshi Nakada2021-01-131-2/+2
| | | | | | They should be affected, as well as `$VERBOSE`, by `-w`/`-W` options, not only in the main script but in scripts loaded by `-r` option too.
* Ignore failure on unsupported fcntl to drop non-blocking modeNobuyoshi Nakada2020-12-261-9/+21
| | | | Fixes https://github.com/ruby/ruby/pull/3723
* Enable escape sequence on Windows10 console via pager tooNobuyoshi Nakada2020-12-211-2/+19
|
* Use category: :deprecated in warnings that are related to deprecationJeremy Evans2020-12-181-1/+4
| | | | | | | | | | | | | | | | | Also document that both :deprecated and :experimental are supported :category option values. The locations where warnings were marked as deprecation warnings was previously reviewed by shyouhei. Comment a couple locations where deprecation warnings should probably be used but are not currently used because deprecation warning enablement has not occurred at the time they are called (RUBY_FREE_MIN, RUBY_HEAP_MIN_SLOTS, -K). Add assert_deprecated_warn to test assertions. Use this to simplify some tests, and fix failing tests after marking some warnings with deprecated category.
* Ignore failure on unsupported fcntl to drop non-blocking modeNobuyoshi Nakada2020-12-161-2/+6
|
* Make ruby -We the same as ruby -W -eJeremy Evans2020-12-101-1/+1
| | | | | | This changes the behavior, which I'm not sure is acceptable. However, it's odd to allow an option to be combined, but change the behavior of the option when combined.
* ruby.c: remove needless substitution of uencKenta Murata2020-12-081-3/+0
| | | | uenc has already been initialized the top of the function.
* Set default for Encoding.default_external to UTF-8 on Windows (#2877)Lars Kanis2020-12-081-2/+5
| | | | | | * Use UTF-8 as default for Encoding.default_external on Windows * Document UTF-8 change on Windows to Encoding.default_external fix https://bugs.ruby-lang.org/issues/16604
* Initialize UTF-8 encoding first as it is used always nowNobuyoshi Nakada2020-11-231-3/+3
|
* Some global variables can be accessed from ractorsKoichi Sasada2020-10-201-9/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some global variables should be used from non-main Ractors. [Bug #17268] ```ruby # ractor-local (derived from created ractor): debug '$DEBUG' => $DEBUG, '$-d' => $-d, # ractor-local (derived from created ractor): verbose '$VERBOSE' => $VERBOSE, '$-w' => $-w, '$-W' => $-W, '$-v' => $-v, # process-local (readonly): other commandline parameters '$-p' => $-p, '$-l' => $-l, '$-a' => $-a, # process-local (readonly): getpid '$$' => $$, # thread local: process result '$?' => $?, # scope local: match '$~' => $~.inspect, '$&' => $&, '$`' => $`, '$\'' => $', '$+' => $+, '$1' => $1, # scope local: last line '$_' => $_, # scope local: last backtrace '$@' => $@, '$!' => $!, # ractor local: stdin, out, err '$stdin' => $stdin.inspect, '$stdout' => $stdout.inspect, '$stderr' => $stderr.inspect, ```
* Disable deprecation warning by the default [Feature #16345]Nobuyoshi Nakada2020-09-251-0/+12
| | | | And `-w` option turns it on.
* [Feature #17157] removed -T command line optionNobuyoshi Nakada2020-09-071-12/+0
|
* feature_option: do not goto into a branch卜部昌平2020-06-291-3/+6
| | | | | I'm not necessarily against every goto in general, but jumping into a branch is definitely a bad idea. Better refactor.
* Improved error messages for mjit optionNobuyoshi Nakada2020-06-231-15/+26
| | | | and default jit-verbose to 1 if no argument.
* Defer initializationNobuyoshi Nakada2020-05-161-16/+25
| | | | | Defer initialization of extension libraries, loading prelude files and requiring files, and skip if dump options are given.
* Merge pull request #3047 from mame/suppress-backtraceYusuke Endoh2020-05-151-0/+7
| | | Add `--suppress-backtrace=num` option to limit the backtrace length
* sed -i 's|ruby/impl|ruby/internal|'卜部昌平2020-05-111-1/+1
| | | | To fix build failures.
* sed -i s|ruby/3|ruby/impl|g卜部昌平2020-05-111-1/+1
| | | | This shall fix compile errors.
* internal/process.h: add a no-warning simple wrapper for fork(2)Yusuke Endoh2020-05-021-1/+2
| | | | | | | | | | | | As fork(2) is deprecated, its calls must be guarded by `COMPILER_WARNING_IGNORED(-Wdeprecated-declarations)`. All usages of fork(2) in process have been alread guarded. A new call to fork(2) was added in ruby.c with f22c4ff359498ab342e4b6d6feb21af6004ee270. This caused a build failure on Solaris 11. It may hide a bug to guard big code unnecessarily, so this change introduces a simple wrapper "rb_fork" whose definition is guarded, and replaces all calls to fork(2) with the wrapper function.
* Honor COLUMNS [Feature #16754]Nobuyoshi Nakada2020-04-121-6/+9
|
* Hightlight usage [Feature #16754]Nobuyoshi Nakada2020-04-121-14/+27
|
* Set up environment variable for pager [Feature #16754]Nobuyoshi Nakada2020-04-121-0/+8
|
* PAGER without fork&exec too [Feature #16754]Nobuyoshi Nakada2020-04-121-2/+17
|
* View the help message with PAGER [Feature #16754]Nobuyoshi Nakada2020-04-121-0/+29
| | | | | View the help message wth pager designed by RUBY_PAGER or PAGER environment variable, unless that value is empty.
* Merge pull request #2991 from shyouhei/ruby.h卜部昌平2020-04-081-1/+1
| | | Split ruby.h
* io.c, ruby.c: include internal/variable.h for rb_gvar_readonly_setterYusuke Endoh2020-01-091-0/+1
| | | | | | Same as 053f78e13988e9253d1f207bf5e23d9505112b32. emscripten requires a prototype declaration of rb_gvar_readonly_setter if it is refered as a function pointer.
* decouple internal.h headers卜部昌平2019-12-261-20/+35
| | | | | | | | | | | | | | | | | | Saves comitters' daily life by avoid #include-ing everything from internal.h to make each file do so instead. This would significantly speed up incremental builds. We take the following inclusion order in this changeset: 1. "ruby/config.h", where _GNU_SOURCE is defined (must be the very first thing among everything). 2. RUBY_EXTCONF_H if any. 3. Standard C headers, sorted alphabetically. 4. Other system headers, maybe guarded by #ifdef 5. Everything else, sorted alphabetically. Exceptions are those win32-related headers, which tend not be self- containing (headers have inclusion order dependencies).
* Added `-W:experimental` to `--help` [Feature #16420]Nobuyoshi Nakada2019-12-241-0/+1
|
* Re-apply f85e8d2a8b keeping characters < 80Takashi Kokubun2019-12-221-1/+1
|
* Revert "Fixed misspellings"Yusuke Endoh2019-12-231-1/+1
| | | | | | This reverts commit f85e8d2a8b2a37740334db4fd92ef820f05ddbc5. It violated the limit of width (> 80) and caused the test failure
* Fixed misspellingsNobuyoshi Nakada2019-12-231-1/+1
| | | | Fixed misspellings reported at [Bug #16437]
* Added `-W:experimental` command line optionNobuyoshi Nakada2019-12-201-0/+3
| | | | [Feature #16420]