This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
core/mimicvm/NyLPC_cMiMicDbCompiler.h@2:b96c1e90d120, 2013-03-27 (annotated)
- Committer:
- nyatla
- Date:
- Wed Mar 27 12:07:47 2013 +0000
- Revision:
- 2:b96c1e90d120
???????????
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nyatla | 2:b96c1e90d120 | 1 | /* |
nyatla | 2:b96c1e90d120 | 2 | * NyLPC_cMiMicDbCompiler.h |
nyatla | 2:b96c1e90d120 | 3 | * |
nyatla | 2:b96c1e90d120 | 4 | * Created on: 2011/09/10 |
nyatla | 2:b96c1e90d120 | 5 | * Author: nyatla |
nyatla | 2:b96c1e90d120 | 6 | */ |
nyatla | 2:b96c1e90d120 | 7 | |
nyatla | 2:b96c1e90d120 | 8 | #ifndef NYLPC_CMIMICDBCOMPILER_H_ |
nyatla | 2:b96c1e90d120 | 9 | #define NYLPC_CMIMICDBCOMPILER_H_ |
nyatla | 2:b96c1e90d120 | 10 | #include "NyLPC_stdlib.h" |
nyatla | 2:b96c1e90d120 | 11 | |
nyatla | 2:b96c1e90d120 | 12 | #ifdef __cplusplus |
nyatla | 2:b96c1e90d120 | 13 | extern "C" { |
nyatla | 2:b96c1e90d120 | 14 | #endif /* __cplusplus */ |
nyatla | 2:b96c1e90d120 | 15 | |
nyatla | 2:b96c1e90d120 | 16 | typedef struct NyLPC_TcMiMicDbCompiler NyLPC_TcMiMicDbCompiler_t; |
nyatla | 2:b96c1e90d120 | 17 | |
nyatla | 2:b96c1e90d120 | 18 | |
nyatla | 2:b96c1e90d120 | 19 | typedef NyLPC_TUInt8 NyLPC_TcMiMicDbCompiler_ERROR; |
nyatla | 2:b96c1e90d120 | 20 | //不明なエラー |
nyatla | 2:b96c1e90d120 | 21 | #define NyLPC_TcMiMicDbCompiler_ERROR_UNKNOWN 0x00 |
nyatla | 2:b96c1e90d120 | 22 | //出力バッファが足りない。 |
nyatla | 2:b96c1e90d120 | 23 | #define NyLPC_TcMiMicDbCompiler_ERROR_OUT_BUFFER_TOO_SHORT 0x01 |
nyatla | 2:b96c1e90d120 | 24 | //BCの形式がおかしい。 |
nyatla | 2:b96c1e90d120 | 25 | #define NyLPC_TcMiMicDbCompiler_ERROR_FORMAT 0x02 |
nyatla | 2:b96c1e90d120 | 26 | //BCフラグメント単位がおかしい。(途中で終わってる?) |
nyatla | 2:b96c1e90d120 | 27 | #define NyLPC_TcMiMicDbCompiler_ERROR_FRAGMENT_UNIT 0x03 |
nyatla | 2:b96c1e90d120 | 28 | |
nyatla | 2:b96c1e90d120 | 29 | |
nyatla | 2:b96c1e90d120 | 30 | typedef NyLPC_TUInt8 NyLPC_TcMiMicDbCompiler_RET; |
nyatla | 2:b96c1e90d120 | 31 | #define NyLPC_TcMiMicDbCompiler_RET_OK 1 |
nyatla | 2:b96c1e90d120 | 32 | #define NyLPC_TcMiMicDbCompiler_RET_CONTINUE 2 |
nyatla | 2:b96c1e90d120 | 33 | #define NyLPC_TcMiMicDbCompiler_RET_ERROR 3 |
nyatla | 2:b96c1e90d120 | 34 | |
nyatla | 2:b96c1e90d120 | 35 | |
nyatla | 2:b96c1e90d120 | 36 | |
nyatla | 2:b96c1e90d120 | 37 | struct NyLPC_TcMiMicDbCompiler |
nyatla | 2:b96c1e90d120 | 38 | { |
nyatla | 2:b96c1e90d120 | 39 | NyLPC_TUInt8 _bc_fragment_len; |
nyatla | 2:b96c1e90d120 | 40 | NyLPC_TcMiMicDbCompiler_ERROR error_reason;//エラー理由 |
nyatla | 2:b96c1e90d120 | 41 | NyLPC_TChar _tmp[8];//テンポラリ |
nyatla | 2:b96c1e90d120 | 42 | }; |
nyatla | 2:b96c1e90d120 | 43 | |
nyatla | 2:b96c1e90d120 | 44 | void NyLPC_cMiMicDbCompiler_initialize(NyLPC_TcMiMicDbCompiler_t* i_inst); |
nyatla | 2:b96c1e90d120 | 45 | #define NyLPC_cMiMicDbCompiler_finalize(i); |
nyatla | 2:b96c1e90d120 | 46 | |
nyatla | 2:b96c1e90d120 | 47 | NyLPC_TcMiMicDbCompiler_RET NyLPC_cMiMicDbCompiler_compileFragment2(NyLPC_TcMiMicDbCompiler_t* i_inst,NyLPC_TChar i_bc,NyLPC_TUInt32* o_val); |
nyatla | 2:b96c1e90d120 | 48 | NyLPC_TUInt16 NyLPC_cMiMicDbCompiler_compile(NyLPC_TcMiMicDbCompiler_t* i_inst,const struct NyLPC_TCharArrayPtr* i_bc,struct NyLPC_TUInt32ArrayPtr* o_val); |
nyatla | 2:b96c1e90d120 | 49 | /** |
nyatla | 2:b96c1e90d120 | 50 | * フラグメントを集積中であるかを返します。TRUEのとき、パース中であり、フラグメント待ち状態です。 |
nyatla | 2:b96c1e90d120 | 51 | */ |
nyatla | 2:b96c1e90d120 | 52 | #define NyLPC_cMiMicDbCompiler_hasFragment(i) ((i)->_bc_fragment_len>0) |
nyatla | 2:b96c1e90d120 | 53 | |
nyatla | 2:b96c1e90d120 | 54 | #ifdef __cplusplus |
nyatla | 2:b96c1e90d120 | 55 | } |
nyatla | 2:b96c1e90d120 | 56 | #endif /* __cplusplus */ |
nyatla | 2:b96c1e90d120 | 57 | |
nyatla | 2:b96c1e90d120 | 58 | #endif /* NYLPC_CMIMICDBCOMPILER_H_ */ |