| 1239 | }; |
| 1240 | |
| 1241 | static void readnum(struct numdata *nd, TCHAR **c, int *size, TCHAR def, bool *err) |
| 1242 | { |
| 1243 | uae_u32 val; |
| 1244 | debugfloatx80 valx80 = { 0 }; |
| 1245 | nd->val = 0; |
| 1246 | nd->valx80.high = 0; |
| 1247 | nd->valx80.low = 0; |
| 1248 | nd->x80 = false; |
| 1249 | if (err) { |
| 1250 | *err = 0; |
| 1251 | } |
| 1252 | int ret = checkvaltype(c, &val, &valx80, size, def); |
| 1253 | if (ret > 0) { |
| 1254 | nd->x80 = false; |
| 1255 | nd->val = val; |
| 1256 | return; |
| 1257 | } else if (ret < 0) { |
| 1258 | nd->x80 = true; |
| 1259 | nd->valx80 = valx80; |
| 1260 | return; |
| 1261 | } |
| 1262 | if (err) { |
| 1263 | *err = 1; |
| 1264 | } |
| 1265 | } |
| 1266 | |
| 1267 | static bool readintx(TCHAR **c, bool *err, uae_u32 *val, debugfloatx80 *valx80) |
| 1268 | { |