more formatting cleanup

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22796 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Luigi Rizzo
2006-04-27 08:24:00 +00:00
parent 0b6bd0073b
commit f7e55f9a47
2 changed files with 175 additions and 113 deletions

View File

@@ -344,16 +344,47 @@ iftime_head : KW_IFTIME LP word3_list COLON word3_list COLON word3_list
and merge the words back together. */
word_list : word { $$ = $1;}
| word word { $$ = (char*)malloc(strlen($1)+strlen($2)+1); strcpy($$, $1); strcat($$, $2); free($1); free($2);prev_word = $$;}
| word word {
$$ = (char*)malloc(strlen($1)+strlen($2)+1);
strcpy($$, $1);
strcat($$, $2);
free($1);
free($2);
prev_word = $$;}
;
word3_list : word { $$ = $1;}
| word word { $$ = (char*)malloc(strlen($1)+strlen($2)+1); strcpy($$, $1); strcat($$, $2); free($1); free($2);prev_word = $$;}
| word word word { $$ = (char*)malloc(strlen($1)+strlen($2)+strlen($3)+1); strcpy($$, $1); strcat($$, $2); strcat($$, $3); free($1); free($2); free($3);prev_word=$$;}
| word word {
$$ = (char*)malloc(strlen($1)+strlen($2)+1);
strcpy($$, $1);
strcat($$, $2);
free($1);
free($2);
prev_word = $$;}
| word word word {
$$ = (char*)malloc(strlen($1)+strlen($2)+strlen($3)+1);
strcpy($$, $1);
strcat($$, $2);
strcat($$, $3);
free($1);
free($2);
free($3);
prev_word=$$;}
;
goto_word : word { $$ = $1;}
| word word { $$ = (char*)malloc(strlen($1)+strlen($2)+1); strcpy($$, $1); strcat($$, $2); free($1); free($2);}
| word COLON word { $$ = (char*)malloc(strlen($1)+strlen($3)+2); strcpy($$, $1); strcat($$,":"); strcat($$, $3); free($1); free($3);}
| word word {
$$ = (char*)malloc(strlen($1)+strlen($2)+1);
strcpy($$, $1);
strcat($$, $2);
free($1);
free($2);}
| word COLON word {
$$ = (char*)malloc(strlen($1)+strlen($3)+2);
strcpy($$, $1);
strcat($$,":");
strcat($$, $3);
free($1);
free($3);}
;
switch_head : KW_SWITCH LP { reset_parencount(parseio->scanner); } word RP LC