エラーメッセージ用ライブラリ More...
#include "tlist.h"
#include "jbxl_state.h"
Go to the source code of this file.
Functions | |
void | jbxl_fprint_state (FILE *fp, int no) |
void | jbxl_fprint_state_jp (FILE *fp, int no) |
void | jbxl_init_state_info (void) |
void | jbxl_add_state (int id, const char *smb, const char *str) |
Variables | |
tList * | _jbxl_state_list = NULL |
tList * | _jbxl_state_pointer = NULL |
Definition in file jbxl_state_func.c.
void jbxl_add_state | ( | int | id, | |
const char * | smb, | |||
const char * | str | |||
) |
Definition at line 81 of file jbxl_state_func.c.
References add_tList_node_bystr().
Referenced by jbxl_init_state_info().
00082 { 00083 _jbxl_state_pointer = add_tList_node_bystr(_jbxl_state_pointer, id, 0, smb, str, NULL, 0); 00084 }
void jbxl_fprint_state | ( | FILE * | fp, | |
int | no | |||
) |
void jbxl_fprint_state(FILE* fp, int no)
JBXLライブラリの state の情報を表示する. デバッグ用.
fp | 出力先のファイル識別子 | |
no | JBXLライブラリの state番号 |
Definition at line 25 of file jbxl_state_func.c.
References jbxl_init_state_info(), and search_id_tList().
00026 { 00027 if (fp==NULL) fp = stderr; 00028 if (_jbxl_state_list==NULL) jbxl_init_state_info(); 00029 00030 tList* lt = search_id_tList(_jbxl_state_list, no, 1); 00031 if (lt==NULL) { 00032 fprintf(fp, "JBXL_STATE: %d: Error Message is not exist!\n", no); 00033 } 00034 else { 00035 fprintf(fp, "JBXL_STATE: %s: %d\n", lt->ldat.key.buf, no); 00036 } 00037 }
void jbxl_fprint_state_jp | ( | FILE * | fp, | |
int | no | |||
) |
void jbxl_fprint_state_jp(FILE* fp, int no)
JBXLライブラリの state の詳細情報(日本語)を表示する. デバッグ用.
fp | 出力先のファイル識別子 | |
no | JBXLライブラリの state番号 |
Definition at line 50 of file jbxl_state_func.c.
References jbxl_init_state_info(), and search_id_tList().
00051 { 00052 if (fp==NULL) fp = stderr; 00053 if (_jbxl_state_list==NULL) jbxl_init_state_info(); 00054 00055 tList* lt = search_id_tList(_jbxl_state_list, no, 1); 00056 if (lt==NULL) { 00057 fprintf(fp, "JBXL_STATE: %d: Error Message is not exist!\n", no); 00058 } 00059 else { 00060 fprintf(fp, "JBXL_STATE: %s: %d: %s\n", lt->ldat.key.buf, no, lt->ldat.val.buf); 00061 } 00062 }
void jbxl_init_state_info | ( | void | ) |
Definition at line 68 of file jbxl_state_func.c.
References del_tList(), jbxl_add_all_states(), jbxl_add_state(), and JBXL_STATE_ANCHOR.
Referenced by jbxl_fprint_state(), and jbxl_fprint_state_jp().
00069 { 00070 if (_jbxl_state_list!=NULL) { 00071 del_tList(&_jbxl_state_list); 00072 _jbxl_state_pointer = NULL; 00073 } 00074 00075 jbxl_add_state(JBXL_STATE_ANCHOR, "JBXL_STATE_ANCHOR", "アンカー"); 00076 _jbxl_state_list = _jbxl_state_pointer; 00077 jbxl_add_all_states(); 00078 }
tList* _jbxl_state_list = NULL |
Definition at line 11 of file jbxl_state_func.c.
tList* _jbxl_state_pointer = NULL |
Definition at line 12 of file jbxl_state_func.c.