diff options
Diffstat (limited to 'gram.y')
-rw-r--r-- | gram.y | 28 |
1 files changed, 10 insertions, 18 deletions
@@ -79,8 +79,7 @@ emails: email email : string { - if (restricted && ($1[0] == '|' || $1[0] == '/')) - { + if (restricted && ($1[0] == '|' || $1[0] == '/')) { yyerror("Construct not allowed"); YYERROR; } @@ -94,8 +93,7 @@ email : string } | INCLUDE string { - if (restricted) - { + if (restricted) { yyerror("Include statement is not allowed"); YYERROR; } @@ -169,10 +167,9 @@ main (int argc, char **argv) begin_aliases(); init_lex (); program_name = argv[0]; - while ((c = getopt_long (argc, argv, "-d:f:hp:ruvw:", options, NULL)) != EOF) - { - switch (c) - { + while ((c = getopt_long(argc, argv, "-d:f:hp:ruvw:", + options, NULL)) != EOF) { + switch (c) { case 1: if (!cw_list) read_include(&cw_list, cwfile); @@ -182,10 +179,8 @@ main (int argc, char **argv) break; case 'd': - for (p = optarg; *p; p++) - { - switch (*p) - { + for (p = optarg; *p; p++) { + switch (*p) { case '-': true = 0; break; @@ -213,10 +208,8 @@ main (int argc, char **argv) read_include(&cw_list, cwfile); file_list = NULL; read_include(&file_list, optarg); - if (file_list) - { - for (s = file_list->head; s; s = s->next) - { + if (file_list) { + for (s = file_list->head; s; s = s->next) { openaliases_prefix(optarg, s->str); yyparse(); file_count++; @@ -261,8 +254,7 @@ main (int argc, char **argv) if (!cw_list) read_include(&cw_list, cwfile); - while (argc--) - { + while (argc--) { openaliases(*argv++); yyparse(); file_count++; |