- Timestamp:
- Jun 24, 2012, 7:42:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SimpleSample/trunk/SimpleSampleTransparentRPC/src/tSimple.c
r30 r34 1 /*2 * このファイルは tecsgen によりテンプレートとして自動生成されました3 * このファイルを編集して使用することが意図されていますが4 * tecsgen の再実行により上書きされてしまうため、通常5 * gen/tSimple_template.c => src/tSimple.c6 * のように名前, フォルダを変更してから修正します7 */8 1 /* #[<PREAMBLE>]# 9 2 * #[<...>]# から #[</...>]# で囲まれたコメントは編集しないでください … … 17 10 * #[</PREAMBLE>]# */ 18 11 19 /* プロトタイプ宣言や変数の定義をここに書きます #_PAC_# */ 12 #include <stdio.h> 20 13 #include "tSimple_tecsgen.h" 21 #include <stdio.h>22 14 23 15 #ifndef E_OK 24 #define E_OK 0 /* success*/25 #define E_ID (-18) /* illegal ID*/16 #define E_OK 0 /* 正常終了 */ 17 #define E_ID (-18) /* 不正ID番号 */ 26 18 #endif 27 19 … … 38 30 * #[</ENTRY_FUNC>]# */ 39 31 void 40 eBody_main( )32 eBody_main(CELLIDX idx) 41 33 { 42 #define BUF_LEN 64 43 char_t buf[64]; 44 #define HELLO_TIMES (3) 45 puts( "calling sayHello" ); 46 cCall_sayHello( HELLO_TIMES ); 47 cCall_howAreYou( buf, BUF_LEN ); 34 CELLCB *p_cellcb; 35 char buf[256]; 36 if (VALID_IDX(idx)) { 37 p_cellcb = GET_CELLCB(idx); 38 } 39 else { 40 /* エラー処理コードをここに記述します */ 41 } /* end if VALID_IDX(idx) */ 42 43 #define N_HELLO 3 44 printf( "Simple: Say hello %d times.\n", N_HELLO ); 45 cCall_sayHello( N_HELLO ); /* 呼び口 cCall の sayHello を呼び出す */ 46 47 printf( "Simple: How are you?\n" ); 48 cCall_howAreYou( buf, sizeof buf ); /* 呼び口 cCall の howAreYou を呼び出す */ 48 49 puts( buf ); 49 50 }
Note:
See TracChangeset
for help on using the changeset viewer.