Style nits ...

This commit is contained in:
Themaister 2011-10-15 12:56:48 +02:00
parent 48e015558e
commit f48247a18b
7 changed files with 11 additions and 11 deletions

View File

@ -133,7 +133,7 @@ static bool al_get_buffer(al_t *al, ALuint *buffer)
};
#endif
for(;;)
for (;;)
{
if (al_unqueue_buffers(al))
break;

View File

@ -39,11 +39,11 @@
#define SYM(type, x) do { \
p##x = (type)DLSYM(lib_handle, x); \
if (p##x == NULL) { SSNES_ERR("Failed to load symbol: \"%s\"\n", #x); exit(1); } \
} while(0)
} while (0)
#define OPT_SYM(type, x) do { \
p##x = (type)DLSYM(lib_handle, x); \
} while(0)
} while (0)
static dylib_t lib_handle = NULL;
#endif
@ -144,7 +144,7 @@ static void load_dynamic(void)
#define SSYM(x) do { \
p##x = x; \
} while(0)
} while (0)
#ifndef HAVE_DYNAMIC
static void set_statics(void)

2
file.c
View File

@ -251,7 +251,7 @@ static ssize_t read_rom_file(FILE* file, void** buf)
return -1;
}
for(;;)
for (;;)
{
size_t ret = fread(rom_buf + buf_ptr, 1, buf_size - buf_ptr, stdin);
buf_ptr += ret;

View File

@ -300,17 +300,17 @@ extern struct global g_extern;
if (g_extern.verbose) \
fprintf(stderr, "SSNES: " __VA_ARGS__); \
fflush(stderr); \
} while(0)
} while (0)
#define SSNES_ERR(...) do { \
fprintf(stderr, "SSNES [ERROR] :: " __VA_ARGS__); \
fflush(stderr); \
} while(0)
} while (0)
#define SSNES_WARN(...) do { \
fprintf(stderr, "SSNES [WARN] :: " __VA_ARGS__); \
fflush(stderr); \
} while(0)
} while (0)
static inline uint32_t next_pow2(uint32_t v)
{

View File

@ -78,7 +78,7 @@ uint32_t crc32_adjust(uint32_t crc32, uint8_t input)
uint32_t crc32_calculate(const uint8_t *data, unsigned length)
{
uint32_t crc32 = ~0;
for(unsigned i = 0; i < length; i++)
for (unsigned i = 0; i < length; i++)
crc32 = crc32_adjust(crc32, data[i]);
return ~crc32;
}

View File

@ -546,7 +546,7 @@ static void parse_input(int argc, char *argv[])
#endif
char optstring[] = "hs:fvS:m:p4jJg:b:B:Y:Z:P:HC:F:U:DN:X:" FFMPEG_RECORD_ARG CONFIG_FILE_ARG;
for(;;)
for (;;)
{
val = 0;
int c = getopt_long(argc, argv, optstring, opts, &option_index);

View File

@ -235,7 +235,7 @@ static void parse_input(int argc, char *argv[])
};
int option_index = 0;
for(;;)
for (;;)
{
int c = getopt_long(argc, argv, optstring, opts, &option_index);
if (c == -1)