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)
81 if(word >= TEXT_MAXWORD){
100 int value_get(const char *str, long *val)
116 //0x, 0b, $, % ¤¬¤Ä¤¤¤Æ¤ë¤«
121 //¤¿¤ó¤Ê¤ë 0 ¤Ê¤Î¤Ç OK
131 case '0': case '1': case '2': case '3':
132 case '4': case '5': case '6': case '7':
134 //C¤Ê¤é8¿Ê¿ô°·¤¤¤À¤±¤É10¿Ê¿ô°·¤¤¤Ë¤¹¤ë
149 //¤³¤Î»þÅÀ¤Ç¤Î str ¤Ï ¿ô»ú¤ÎÀèƬ¤È¤·¤Æ¤¿¾ì½ê
151 *val = strtol(str, &error, base);
152 if(error[0] != '\0'){
155 if((error[1] == '\0') && (base == 10)){
157 /*case 'K': ¤¤¤¯¤Ä¤À¤Ã¤±?
181 static const struct operator_cmp CMP[] = {
182 {"+", OPERATOR_PLUS},
183 {">>", OPERATOR_SHIFT_LEFT},
184 {"<<", OPERATOR_SHIFT_RIGHT},
190 int operator_get(char *str)
192 const struct operator_cmp *c;
193 int i = OPERATOR_ERROR;
196 if(strcmp(c->str, str) == 0){
202 return OPERATOR_ERROR;