MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / readnum

Function readnum

src/debug.cpp:1241–1265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1239};
1240
1241static 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
1267static bool readintx(TCHAR **c, bool *err, uae_u32 *val, debugfloatx80 *valx80)
1268{

Callers 5

readintxFunction · 0.85
readintFunction · 0.85
readhexFunction · 0.85
readbinFunction · 0.85
converterFunction · 0.85

Calls 1

checkvaltypeFunction · 0.85

Tested by

no test coverage detected