X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Flibcore%2Flc_opts_enum.c;h=144294d744f63fe6b3d838a0370b7a7afc8032ba;hb=e64d870786b1564302c650e90eb9d3e5599b139e;hp=75ce0ff9fe73abe749afa097c9c18139a42f3835;hpb=e84184056559e90f2dffc7f7648f40705864e088;p=libfirm diff --git a/ir/libcore/lc_opts_enum.c b/ir/libcore/lc_opts_enum.c index 75ce0ff9f..144294d74 100644 --- a/ir/libcore/lc_opts_enum.c +++ b/ir/libcore/lc_opts_enum.c @@ -49,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); \ @@ -57,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; \ } \