| 1171 | return v; |
| 1172 | } |
| 1173 | static TCHAR *getstring (const TCHAR **pp) |
| 1174 | { |
| 1175 | int i; |
| 1176 | static TCHAR str[CONFIG_BLEN]; |
| 1177 | const TCHAR *p = *pp; |
| 1178 | bool quoteds = false; |
| 1179 | bool quotedd = false; |
| 1180 | |
| 1181 | if (*p == 0) |
| 1182 | return 0; |
| 1183 | i = 0; |
| 1184 | while (*p != 0 && i < 1000 - 1) { |
| 1185 | if (*p == '\"') |
| 1186 | quotedd = quotedd ? false : true; |
| 1187 | if (*p == '\'') |
| 1188 | quoteds = quoteds ? false : true; |
| 1189 | if (!quotedd && !quoteds) { |
| 1190 | if (*p == '.' || *p == ',') |
| 1191 | break; |
| 1192 | } |
| 1193 | str[i++] = *p++; |
| 1194 | } |
| 1195 | if (*p == '.' || *p == ',') |
| 1196 | p++; |
| 1197 | str[i] = 0; |
| 1198 | *pp = p; |
| 1199 | return str; |
| 1200 | } |
| 1201 | |
| 1202 | static void reset_inputdevice_settings (struct uae_input_device *uid) |
| 1203 | { |
no outgoing calls
no test coverage detected