12 printf("%s %s\n", __FUNCTION__, msg);\
15 int text_load(char *buf, int length, char **text)
33 if(line >= TEXT_MAXLINE){
37 if(current_crlf == 0){
52 int word_load(char *buf, char **text)
78 if(word >= TEXT_MAXWORD){
94 int value_get(const char *str, long *val)
110 //0x, 0b, $, % ¤¬¤Ä¤¤¤Æ¤ë¤«
115 //¤¿¤ó¤Ê¤ë 0 ¤Ê¤Î¤Ç OK
125 case '0': case '1': case '2': case '3':
126 case '4': case '5': case '6': case '7':
128 //C¤Ê¤é8¿Ê¿ô°·¤¤¤À¤±¤É10¿Ê¿ô°·¤¤¤Ë¤¹¤ë
143 //¤³¤Î»þÅÀ¤Ç¤Î str ¤Ï ¿ô»ú¤ÎÀèƬ¤È¤·¤Æ¤¿¾ì½ê
145 *val = strtol(str, error, base);
146 if(error[0][0] != '\0'){
160 static const struct operator_cmp CMP[] = {
161 {"+", OPERATOR_PLUS},
162 {">>", OPERATOR_SHIFT_LEFT},
163 {"<<", OPERATOR_SHIFT_RIGHT},
169 int operator_get(char *str)
171 const struct operator_cmp *c;
172 int i = OPERATOR_ERROR;
175 if(strcmp(c->str, str) == 0){
181 return OPERATOR_ERROR;