| 263 | #endif |
| 264 | |
| 265 | static char* xp_get_string(const char *name, const char *what) |
| 266 | { |
| 267 | const char *ptr; |
| 268 | char *unescaped; |
| 269 | |
| 270 | if (!(ptr = xp_get_value(name))) { |
| 271 | ERROR("%s is missing the required '%s' parameter.", what, name); |
| 272 | } |
| 273 | |
| 274 | unescaped = (char *)malloc(strlen(ptr) + 1); |
| 275 | if (!unescaped) { |
| 276 | ERROR("Out of memory!"); |
| 277 | } |
| 278 | xp_unescape(ptr, unescaped); |
| 279 | |
| 280 | return unescaped; |
| 281 | } |
| 282 | |
| 283 | static double xp_get_double(const char *name, const char *what) |
| 284 | { |
no test coverage detected