mbed I/F binding for mruby
Dependents: mruby_mbed_web mirb_mbed
mbed-mruby
How to use
Class
mrbgems/mruby-sprintf/gem_init.c@1:8ccd1d494a4b, 2015-04-13 (annotated)
- Committer:
- mzta
- Date:
- Mon Apr 13 05:20:15 2015 +0000
- Revision:
- 1:8ccd1d494a4b
- Parent:
- 0:158c61bb030f
- code refactoring.; - add SPI, SPISlave, I2C class to mruby-mbed (Incomplete).
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mzta | 0:158c61bb030f | 1 | /* |
mzta | 0:158c61bb030f | 2 | * This file is loading the irep |
mzta | 0:158c61bb030f | 3 | * Ruby GEM code. |
mzta | 0:158c61bb030f | 4 | * |
mzta | 0:158c61bb030f | 5 | * IMPORTANT: |
mzta | 0:158c61bb030f | 6 | * This file was generated! |
mzta | 0:158c61bb030f | 7 | * All manual changes will get lost. |
mzta | 0:158c61bb030f | 8 | */ |
mzta | 0:158c61bb030f | 9 | #include <stdlib.h> |
mzta | 0:158c61bb030f | 10 | #include "mruby.h" |
mzta | 0:158c61bb030f | 11 | #include "mruby/irep.h" |
mzta | 0:158c61bb030f | 12 | #include <stdint.h> |
mzta | 0:158c61bb030f | 13 | const uint8_t |
mzta | 0:158c61bb030f | 14 | #if defined __GNUC__ |
mzta | 0:158c61bb030f | 15 | __attribute__((aligned(4))) |
mzta | 0:158c61bb030f | 16 | #elif defined _MSC_VER |
mzta | 0:158c61bb030f | 17 | __declspec(align(4)) |
mzta | 0:158c61bb030f | 18 | #endif |
mzta | 0:158c61bb030f | 19 | gem_mrblib_irep_mruby_sprintf[] = { |
mzta | 0:158c61bb030f | 20 | 0x45,0x54,0x49,0x52,0x30,0x30,0x30,0x33,0xd0,0x99,0x00,0x00,0x01,0x1c,0x4d,0x41, |
mzta | 0:158c61bb030f | 21 | 0x54,0x5a,0x30,0x30,0x30,0x30,0x49,0x52,0x45,0x50,0x00,0x00,0x00,0xe4,0x30,0x30, |
mzta | 0:158c61bb030f | 22 | 0x30,0x30,0x00,0x00,0x00,0x37,0x00,0x01,0x00,0x03,0x00,0x01,0x00,0x00,0x00,0x05, |
mzta | 0:158c61bb030f | 23 | 0x05,0x00,0x80,0x00,0x05,0x00,0x00,0x01,0x43,0x00,0x80,0x00,0x45,0x00,0x80,0x00, |
mzta | 0:158c61bb030f | 24 | 0x4a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x06,0x53,0x74, |
mzta | 0:158c61bb030f | 25 | 0x72,0x69,0x6e,0x67,0x00,0x00,0x00,0x00,0x32,0x00,0x01,0x00,0x03,0x00,0x01,0x00, |
mzta | 0:158c61bb030f | 26 | 0x00,0x00,0x05,0x00,0x48,0x00,0x80,0x00,0xc0,0x00,0x00,0x01,0x46,0x00,0x80,0x00, |
mzta | 0:158c61bb030f | 27 | 0x04,0x00,0x80,0x00,0x29,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, |
mzta | 0:158c61bb030f | 28 | 0x00,0x01,0x25,0x00,0x00,0x00,0x00,0x78,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00, |
mzta | 0:158c61bb030f | 29 | 0x00,0x11,0x00,0x00,0x26,0x00,0x00,0x02,0x01,0x40,0x80,0x01,0x91,0x00,0x00,0x02, |
mzta | 0:158c61bb030f | 30 | 0xa0,0x00,0x80,0x01,0x99,0x03,0xc0,0x01,0x06,0x00,0x80,0x01,0x06,0x00,0x00,0x02, |
mzta | 0:158c61bb030f | 31 | 0xb7,0x00,0x01,0x02,0x01,0x40,0x80,0x02,0x38,0x40,0x01,0x02,0xa0,0xbf,0x80,0x01, |
mzta | 0:158c61bb030f | 32 | 0x17,0x02,0x40,0x00,0x06,0x00,0x80,0x01,0x06,0x00,0x00,0x02,0x01,0x40,0x80,0x02, |
mzta | 0:158c61bb030f | 33 | 0x20,0x81,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03, |
mzta | 0:158c61bb030f | 34 | 0x00,0x05,0x69,0x73,0x5f,0x61,0x3f,0x00,0x00,0x05,0x41,0x72,0x72,0x61,0x79,0x00, |
mzta | 0:158c61bb030f | 35 | 0x00,0x07,0x73,0x70,0x72,0x69,0x6e,0x74,0x66,0x00,0x4c,0x56,0x41,0x52,0x00,0x00, |
mzta | 0:158c61bb030f | 36 | 0x00,0x1a,0x00,0x00,0x00,0x01,0x00,0x04,0x61,0x72,0x67,0x73,0x00,0x00,0x00,0x01, |
mzta | 0:158c61bb030f | 37 | 0xff,0xff,0x00,0x00,0x45,0x4e,0x44,0x00,0x00,0x00,0x00,0x08, |
mzta | 0:158c61bb030f | 38 | }; |
mzta | 0:158c61bb030f | 39 | void mrb_mruby_sprintf_gem_init(mrb_state *mrb); |
mzta | 0:158c61bb030f | 40 | void mrb_mruby_sprintf_gem_final(mrb_state *mrb); |
mzta | 0:158c61bb030f | 41 | |
mzta | 0:158c61bb030f | 42 | void GENERATED_TMP_mrb_mruby_sprintf_gem_init(mrb_state *mrb) { |
mzta | 0:158c61bb030f | 43 | int ai = mrb_gc_arena_save(mrb); |
mzta | 0:158c61bb030f | 44 | mrb_mruby_sprintf_gem_init(mrb); |
mzta | 0:158c61bb030f | 45 | mrb_load_irep(mrb, gem_mrblib_irep_mruby_sprintf); |
mzta | 0:158c61bb030f | 46 | if (mrb->exc) { |
mzta | 0:158c61bb030f | 47 | mrb_print_error(mrb); |
mzta | 0:158c61bb030f | 48 | exit(EXIT_FAILURE); |
mzta | 0:158c61bb030f | 49 | } |
mzta | 0:158c61bb030f | 50 | mrb_gc_arena_restore(mrb, ai); |
mzta | 0:158c61bb030f | 51 | } |
mzta | 0:158c61bb030f | 52 | |
mzta | 0:158c61bb030f | 53 | void GENERATED_TMP_mrb_mruby_sprintf_gem_final(mrb_state *mrb) { |
mzta | 0:158c61bb030f | 54 | mrb_mruby_sprintf_gem_final(mrb); |
mzta | 0:158c61bb030f | 55 | } |
mzta | 0:158c61bb030f | 56 |