Ignore:
Timestamp:
Jun 24, 2012, 7:42:09 PM (12 years ago)
Author:
okuma-top
Message:

totally brush up

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.c
    6  * のように名前, フォルダを変更してから修正します
    7  */
    81/* #[<PREAMBLE>]#
    92 * #[<...>]# から #[</...>]# で囲まれたコメントは編集しないでください
     
    1710 * #[</PREAMBLE>]# */
    1811
    19 /* プロトタイプ宣言や変数の定義をここに書きます #_PAC_# */
     12#include <stdio.h>
    2013#include "tSimple_tecsgen.h"
    21 #include <stdio.h>
    2214
    2315#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番号 */
    2618#endif
    2719
     
    3830 * #[</ENTRY_FUNC>]# */
    3931void
    40 eBody_main()
     32eBody_main(CELLIDX idx)
    4133{
    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 を呼び出す */
    4849        puts( buf );
    4950}
Note: See TracChangeset for help on using the changeset viewer.