Last change
on this file since 398 was 331, checked in by coas-nagasima, 6 years ago |
prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc
|
File size:
652 bytes
|
Rev | Line | |
---|
[331] | 1 | #include <stdio.h>
|
---|
| 2 |
|
---|
| 3 | struct ziggy
|
---|
| 4 | {
|
---|
| 5 | int a;
|
---|
| 6 | int b;
|
---|
| 7 | int c;
|
---|
| 8 | } bolshevic;
|
---|
| 9 |
|
---|
| 10 | int main()
|
---|
| 11 | {
|
---|
| 12 | int a;
|
---|
| 13 | int *b;
|
---|
| 14 | int c;
|
---|
| 15 |
|
---|
| 16 | a = 42;
|
---|
| 17 | b = &a;
|
---|
| 18 | printf("a = %d\n", *b);
|
---|
| 19 |
|
---|
| 20 | bolshevic.a = 12;
|
---|
| 21 | bolshevic.b = 34;
|
---|
| 22 | bolshevic.c = 56;
|
---|
| 23 |
|
---|
| 24 | printf("bolshevic.a = %d\n", bolshevic.a);
|
---|
| 25 | printf("bolshevic.b = %d\n", bolshevic.b);
|
---|
| 26 | printf("bolshevic.c = %d\n", bolshevic.c);
|
---|
| 27 |
|
---|
| 28 | struct ziggy *tsar = &bolshevic;
|
---|
| 29 |
|
---|
| 30 | printf("tsar->a = %d\n", tsar->a);
|
---|
| 31 | printf("tsar->b = %d\n", tsar->b);
|
---|
| 32 | printf("tsar->c = %d\n", tsar->c);
|
---|
| 33 |
|
---|
| 34 | b = &(bolshevic.b);
|
---|
| 35 | printf("bolshevic.b = %d\n", *b);
|
---|
| 36 |
|
---|
| 37 | return 0;
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | // vim: set expandtab ts=4 sw=3 sts=3 tw=80 :
|
---|
Note:
See
TracBrowser
for help on using the repository browser.