| Previous | 199869 Revisions | Next |
| r29246 Friday 4th April, 2014 at 08:09:02 UTC by Oliver Stöneberg |
|---|
| a few adjustments for Visual Studio analysis (nw) |
| [src/emu/cpu/m68000] | m68kmake.c |
| [src/osd/windows] | input.c windows.mak |
| r29245 | r29246 | |
|---|---|---|
| 1696 | 1696 | RAWINPUTDEVICELIST *device = &devlist[devnum]; |
| 1697 | 1697 | |
| 1698 | 1698 | // handle keyboards |
| 1699 | if (device->dwType == RIM_TYPEKEYBOARD | |
| 1699 | if (!FORCE_DIRECTINPUT && device->dwType == RIM_TYPEKEYBOARD) | |
| 1700 | 1700 | rawinput_keyboard_enum(machine, device); |
| 1701 | 1701 | |
| 1702 | 1702 | // handle mice |
| 1703 | else if (device->dwType == RIM_TYPEMOUSE | |
| 1703 | else if (!FORCE_DIRECTINPUT && device->dwType == RIM_TYPEMOUSE) | |
| 1704 | 1704 | rawinput_mouse_enum(machine, device); |
| 1705 | 1705 | } |
| 1706 | 1706 |
| r29245 | r29246 | |
|---|---|---|
| 166 | 166 | endif |
| 167 | 167 | |
| 168 | 168 | ifdef MSVC_ANALYSIS |
| 169 | CCOMFLAGS += /analyze /wd6011 /wd6328 /wd6204 /wd6244 /wd6385 /wd6308 /wd6246 /wd6031 /wd6326 /wd6255 /wd6330 /wd28251 /wd6054 /wd6340 /wd28125 /wd6053 /wd6001 /wd6386 /wd28278 /wd6387 /wd629 | |
| 169 | CCOMFLAGS += /analyze /wd6011 /wd6328 /wd6204 /wd6244 /wd6385 /wd6308 /wd6246 /wd6031 /wd6326 /wd6255 /wd6330 /wd28251 /wd6054 /wd6340 /wd28125 /wd6053 /wd6001 /wd6386 /wd28278 /wd6297 /wd28183 /wd28159 /wd28182 /wd6237 /wd6239 /wd6240 /wd6323 /wd28199 /wd6235 /wd6285 /wd6286 /wd6384 /wd6293 /analyze:stacksize384112 | |
| 170 | 170 | endif |
| 171 | 171 | |
| 172 | 172 | # enable exception handling for C++ |
| r29245 | r29246 | |
|---|---|---|
| 74 | 74 | |
| 75 | 75 | #if defined(__GNUC__) && (__GNUC__ >= 3) |
| 76 | 76 | #define ATTR_PRINTF(x,y) __attribute__((format(printf, x, y))) |
| 77 | #define ATTR_NORETURN __attribute__((noreturn)) | |
| 77 | 78 | #else |
| 78 | 79 | #define ATTR_PRINTF(x,y) |
| 80 | #if defined(_MSC_VER) && (_MSC_VER >= 1200) | |
| 81 | #define ATTR_NORETURN __declspec(noreturn) | |
| 82 | #else | |
| 83 | #define ATTR_NORETURN | |
| 79 | 84 | #endif |
| 85 | #endif | |
| 80 | 86 | |
| 81 | 87 | #define M68K_MAX_PATH 1024 |
| 82 | 88 | #define M68K_MAX_DIR 1024 |
| r29245 | r29246 | |
| 224 | 230 | |
| 225 | 231 | |
| 226 | 232 | /* Function Prototypes */ |
| 227 | static void error_exit(const char* fmt, ...) ATTR_PRINTF(1,2); | |
| 228 | static void perror_exit(const char* fmt, ...) ATTR_PRINTF(1,2); | |
| 233 | static void ATTR_NORETURN error_exit(const char* fmt, ...) ATTR_PRINTF(1,2); | |
| 234 | static void ATTR_NORETURN perror_exit(const char* fmt, ...) ATTR_PRINTF(1,2); | |
| 229 | 235 | static int check_strsncpy(char* dst, char* src, int maxlength); |
| 230 | 236 | static int check_atoi(char* str, int *result); |
| 231 | 237 | static int skip_spaces(char* str); |
| Previous | 199869 Revisions | Next |