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/tSample.c

    r30 r34  
    1 /*
    2  * このファイルは tecsgen によりテンプレートとして自動生成されました
    3  * このファイルを編集して使用することが意図されていますが
    4  * tecsgen の再実行により上書きされてしまうため、通常
    5  *   gen/tSample_template.c => src/tSample.c
    6  * のように名前, フォルダを変更してから修正します
    7  */
    81/* #[<PREAMBLE>]#
    92 * #[<...>]# から #[</...>]# で囲まれたコメントは編集しないでください
    103 * tecsmerge によるマージに使用されます
    114 *
     5 * このファイルは tecsgen によりテンプレートとして自動生成されました
     6 * このファイルを編集して使用することが意図されていますが
     7 * tecsgen の再実行により上書きされてしまうため、通常
     8 *   gen/tSimpleServer_template.c => src/tSimpleServer.c
     9 * のように名前, フォルダを変更してから修正します
     10 *
    1211 * #[</PREAMBLE>]# */
    1312
    14 /* プロトタイプ宣言や変数の定義をここに書きます #_PAC_# */
     13#include <stdio.h>
     14#include <string.h>
    1515#include "tSample_tecsgen.h"
    16 #include <stdio.h>
    1716
    1817#ifndef E_OK
    19 #define E_OK    0               /* success */
    20 #define E_ID    (-18)   /* illegal ID */
     18#define E_OK    0               /* 正常終了 */
     19#define E_ID    (-18)   /* 不正ID番号 */
    2120#endif
     21
    2222
    2323/* 受け口関数 #_TEPF_# */
     
    2626 * signature:  sSample
    2727 * context:    task
     28 * params:
    2829 * #[</ENTRY_PORT>]# */
    2930
     
    3132 * name:         eEnt_sayHello
    3233 * global_name:  tSample_eEnt_sayHello
    33  * oneway:       false
    34  * #[</ENTRY_FUNC>]# */
     34 * oneway:       
     35 * #[/ENTRY_FUNC>]# */
    3536ER
    3637eEnt_sayHello(CELLIDX idx, int32_t times)
     
    4344        else {
    4445                return(E_ID);
    45         } /* end if VALID_IDX(idx) */
     46        }
    4647
    47         /* ここに処理本体を記述します #_TEFB_# */
     48        /* ここに処理本体を記述します */
     49        printf( "Sample: " );
    4850        while( times-- > 0 )
    49                 printf( "Hello! " );
    50         puts( "" );
     51                printf( "hello " );
     52        printf( "\n" );
    5153
    5254        return(ercd);
     
    5658 * name:         eEnt_howAreYou
    5759 * global_name:  tSample_eEnt_howAreYou
    58  * oneway:       false
    59  * #[</ENTRY_FUNC>]# */
     60 * oneway:       
     61 * #[/ENTRY_FUNC>]# */
    6062ER
    6163eEnt_howAreYou(CELLIDX idx, char_t* buf, int32_t len)
     
    6870        else {
    6971                return(E_ID);
    70         } /* end if VALID_IDX(idx) */
     72        }
    7173
    72         /* ここに処理本体を記述します #_TEFB_# */
    73         strncpy( buf, "I'm fine thank you.", len );
     74        /* ここに処理本体を記述します */
     75        strncpy( buf, "Sample: I'm fine!", len );
    7476
    7577        return(ercd);
    7678}
    7779
    78 /* #[<POSTAMBLE>]#
    79  *   これより下に非受け口関数を書きます
    80  * #[</POSTAMBLE>]#*/
     80
Note: See TracChangeset for help on using the changeset viewer.