X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Flibcore%2Flc_opts_enum.c;h=144294d744f63fe6b3d838a0370b7a7afc8032ba;hb=e64d870786b1564302c650e90eb9d3e5599b139e;hp=1d676028a7f1ea08f718ead9ba04a3f375d135d1;hpb=fee60d078e8edd2dabaaaa2d6dea02381f292369;p=libfirm diff --git a/ir/libcore/lc_opts_enum.c b/ir/libcore/lc_opts_enum.c index 1d676028a..144294d74 100644 --- a/ir/libcore/lc_opts_enum.c +++ b/ir/libcore/lc_opts_enum.c @@ -15,11 +15,10 @@ #include #include -#if defined(__FreeBSD__) -#include -#elif defined(_WIN32) +#ifdef _WIN32 #include -#else +#endif +#ifdef HAVE_ALLOCA_H #include #endif @@ -50,7 +49,7 @@ int lc_opt_enum_ ## N ## _cb(LC_UNUSED(const char *name), LC_UNUSED(lc_opt_type_ s[end] = '\0'; \ \ end = 0; \ - while(arg[end] != '\0') { \ + while (arg[end] != '\0') { \ unsigned int i; \ \ begin = end + strspn(arg + end, delim); \ @@ -58,8 +57,8 @@ int lc_opt_enum_ ## N ## _cb(LC_UNUSED(const char *name), LC_UNUSED(lc_opt_type_ s = tmp + begin; \ s[end - begin] = '\0'; \ \ - for(i = 0; items[i].name != NULL; ++i) { \ - if(strcmp(s, items[i].name) == 0) { \ + for (i = 0; items[i].name != NULL; ++i) { \ + if (strcmp(s, items[i].name) == 0) { \ *var->value op items[i].value; \ res = 1; \ } \