summaryrefslogtreecommitdiffabout
path: root/gram.y
authorSergey Poznyakoff <gray@gnu.org.ua>2013-03-04 19:44:25 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2013-03-04 19:44:25 (GMT)
commita75760ff7d9bedcb1377fc3441f5e38178da1d6a (patch) (side-by-side diff)
tree39413a06ee259848dfc2cb585a357ddac5d2d4ca /gram.y
parent860ec4960ff61cf3b2e98e0d020e7f8a93a56008 (diff)
downloadalck-a75760ff7d9bedcb1377fc3441f5e38178da1d6a.tar.gz
alck-a75760ff7d9bedcb1377fc3441f5e38178da1d6a.tar.bz2
Switch to a "right" style.
Diffstat (limited to 'gram.y') (more/less context) (show whitespace changes)
-rw-r--r--gram.y28
1 files changed, 10 insertions, 18 deletions
diff --git a/gram.y b/gram.y
index dd323be..34d46e2 100644
--- a/gram.y
+++ b/gram.y
@@ -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++;

Return to:

Send suggestions and report system problems to the System administrator.