• 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évision8614f3d6dcdd825fa12f9112985cf4b7d4461d49 (tree)
l'heure2017-06-05 23:18:29
Auteurornse01 <ornse01@user...>
Commiterornse01

Message de Log

update rule and defines for 1.2

Change Summary

Modification

--- a/src/build_config.rb
+++ b/src/build_config.rb
@@ -92,8 +92,8 @@ MRuby::CrossBuild.new('pcat') do |conf|
9292 conf.cc do |cc|
9393 cc.command = "#{ENV['GNUi386']}/bin/gcc386"
9494 cc.flags = "-O2 -fno-strength-reduce -mpreferred-stack-boundary=2 -Wall"
95- cc.include_paths = ["#{root}/include", "#{ENV['BD']}/include", "../src/posix_include"]
96- cc.defines = %w(DISABLE_STDIO PCAT)
95+ cc.include_paths = ["#{root}/include", "../src/posix_include", "#{ENV['BD']}/include"]
96+ cc.defines = %w(MRB_DISABLE_STDIO PCAT)
9797 end
9898
9999 # Archiver settings
@@ -107,6 +107,7 @@ MRuby::CrossBuild.new('pcat') do |conf|
107107 @bins = [] # for disable to link mrbc for target.
108108
109109 conf.gem 'mrbgems_port/mruby-brightv-print'
110+ conf.gem 'mruby/mrbgems/mruby-compiler'
110111 #
111112 # conf.test_runner.command = 'env'
112113 #
--- a/src/posix_include/limits.h
+++ b/src/posix_include/limits.h
@@ -1,6 +1,8 @@
11 #ifndef __LIMITS_H__
22 #define __LIMITS_H__
33
4-#define CHAR_BIT 8
5-
4+#define CHAR_BIT (8)
5+#define INT_MIN (−2147483648)
6+#define INT_MAX (2147483647)
7+
68 #endif
--- a/src/posix_include/stdint.h
+++ b/src/posix_include/stdint.h
@@ -4,9 +4,11 @@
44 typedef unsigned char uint8_t;
55 typedef unsigned short uint16_t;
66 typedef unsigned int uint32_t;
7+typedef unsigned long long int uint64_t;
78 typedef char int8_t;
89 typedef short int16_t;
910 typedef int int32_t;
11+typedef long long int int64_t;
1012
1113 typedef int intptr_t;
1214 typedef unsigned int uintptr_t;