• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

超漢字上で、mrubyを使ってhello worldを表示させる。


Commit MetaInfo

Révisiond2a28c783b4560c2d7a86e78906ea55c92b404b1 (tree)
l'heure2014-07-19 21:17:43
Auteurornse01 <ornse01@user...>
Commiterornse01

Message de Log

porting mruby-print to B-right/V.

Change Summary

Modification

--- a/src/mrbgems_port/mruby-brightv-print/mrbgem.rake
+++ b/src/mrbgems_port/mruby-brightv-print/mrbgem.rake
@@ -1,5 +1,5 @@
1-MRuby::Gem::Specification.new('mruby-print') do |spec|
1+MRuby::Gem::Specification.new('mruby-brightv-print') do |spec|
22 spec.license = 'MIT'
3- spec.author = 'mruby developers'
4- spec.summary = 'standard print/puts/p'
3+ spec.authors = ['mruby developers', 'ornse01']
4+ spec.summary = 'standard print/puts/p B-right/V port'
55 end
--- a/src/mrbgems_port/mruby-brightv-print/src/print.c
+++ b/src/mrbgems_port/mruby-brightv-print/src/print.c
@@ -1,17 +1,15 @@
11 #include "mruby.h"
22 #include "mruby/string.h"
3-#include <stdio.h>
3+#include <bstdio.h>
44
55 static void
66 printstr(mrb_state *mrb, mrb_value obj)
77 {
88 char *s;
9- mrb_int len;
109
1110 if (mrb_string_p(obj)) {
1211 s = RSTRING_PTR(obj);
13- len = RSTRING_LEN(obj);
14- fwrite(s, len, 1, stdout);
12+ printf("%s", s);
1513 }
1614 }
1715
@@ -29,7 +27,7 @@ mrb_printstr(mrb_state *mrb, mrb_value self)
2927 }
3028
3129 void
32-mrb_mruby_print_gem_init(mrb_state* mrb)
30+mrb_mruby_brightv_print_gem_init(mrb_state* mrb)
3331 {
3432 struct RClass *krn;
3533 krn = mrb->kernel_module;
@@ -37,6 +35,6 @@ mrb_mruby_print_gem_init(mrb_state* mrb)
3735 }
3836
3937 void
40-mrb_mruby_print_gem_final(mrb_state* mrb)
38+mrb_mruby_brightv_print_gem_final(mrb_state* mrb)
4139 {
4240 }