summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-print
AgeCommit message (Collapse)Author
2020-06-20Add `mrb_get_arg1()` that retrieves single (and only) argument.Yukihiro "Matz" Matsumoto
`mrb_get_arg1()` raises `ArgumentError` if the method does not receive one argument. And replaces all `mrb_get_args(mrb, "o", &arg)` by the new function.
2020-03-08Add configuration guard for `MRB_DISABLE_STDIO`dearblue
ref #4576 and ref #4947 * Need MRBAPI functions without `MRB_DISABLE_STDIO`: * mrbgems/mruby-bin-debugger * mrbgems/mruby-bin-mirb * mrbgems/mruby-bin-mrbc * mrbgems/mruby-bin-mruby * mrbgems/mruby-bin-strip * Need `stdio.h`: * mrbgems/mruby-io * mrbgems/mruby-print * Need `snprintf()` in `stdio.h`: * mrbgems/mruby-pack * mrbgems/mruby-sprintf
2020-03-08Remove unnecessary 'stdio.h'; ref #4947dearblue
'stdio.h' is included in 'mruby.h' ('mrbconf.h'). However, keep 'stdio.h' used by mruby-test.
2019-10-05Drop initialization dependency from `mruby-print` to `mruby-sprintf`KOBAYASHI Shuji
In the old implementation, `Kernel#printf` raise error if `mruby-sprintf` gem isn't specified before `mruby-print` gem. The new implementation eliminates this ordering issue. This way is the same as `Kernel#printf` and `IO#printf` in `mruby-io` gem.
2019-01-25Merge pull request #4243 from ↵Yukihiro "Matz" Matsumoto
shuujii/remove-definition-of-sprintf-in-mruby-print Remove definition of `Kernel#sprintf` in `mruby-print`
2019-01-24Remove redundant `NULL` check for `mrb_malloc`KOBAYASHI Shuji
2019-01-24Remove definition of `Kernel#sprintf` in `mruby-print`KOBAYASHI Shuji
2018-08-18`Kernel#p` should return an array of arguments; fix #4083Yukihiro "Matz" Matsumoto
Although the return value is not defined in ISO, it is better to behave as CRuby does.
2017-09-27fix: src\print.c(22): warning C4244: 'initializing': conversion from ↵Tomasz Dąbrowski
'mrb_int' to 'int', possible loss of data
2017-09-02Update print.cfl0l0u
Strings not containing a newline are not printed synchronously ex. bin/mruby -e '["a", "b", "c", "\n", "d", "e", "f", "\n"].each {|e| print e ; usleep 200000}'
2016-11-24Fix for Windows-specific mruby C++ issuesTomasz Dąbrowski
2016-09-21Use non-underscore'ed namesU.Nakamura
Accept @mattn's comment.
2016-09-21Use underbar'ed name to get rid of warningsU.Nakamura
2016-09-21Not only for MINGW but also for Visual C++U.Nakamura
2015-11-27include changed from by quotes ("") to by brackets (<>); close #3032Yukihiro "Matz" Matsumoto
2015-10-08print unicode on windows consoleYasuhiro Matsumoto
2015-09-11Support windows localeYasuhiro Matsumoto
Add mrb_utf8_from_locale, mrb_utf8_free, mrb_locale_from_utf8, mrb_locale_free. Just works for windows.
2014-03-25Use mrb_int instead of intcubicdaiya
2014-03-17move summary of mrbgems in default gembox to its spectake_cheeze
2014-03-06make embed string when create literalsksss
2014-03-06embed small stringksss
use flags 4 for *this object is embed* use flags 8~64 for *embed string length*
2013-07-23"spec.author" is better for single-author gems.Tomoyuki Sahara
"spec.author=" expects a String represents a single author. "spec.authors=" expects an Array which is a list of multiple authors. http://guides.rubygems.org/specification-reference/
2013-04-25rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206Yukihiro "Matz" Matsumoto
2013-03-24Add mruby-printmattn