Skip to content

Commit

Permalink
parse EOS before performing #include. Joshua Graessley <jgraessley@ap…
Browse files Browse the repository at this point in the history
…ple.com>

(i believe it is a bad practice to put {} inside expression, unless there's
very specific reason to do so...)
  • Loading branch information
itojun committed May 8, 2003
1 parent c51ab19 commit 2cb3d44
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kame/kame/racoon/cfparse.y
@@ -1,4 +1,4 @@
/* $KAME: cfparse.y,v 1.114 2003/02/03 08:27:50 itojun Exp $ */
/* $KAME: cfparse.y,v 1.115 2003/05/08 07:57:43 itojun Exp $ */

%{
#include <sys/types.h>
Expand Down Expand Up @@ -219,7 +219,7 @@ special_statement

/* include */
include_statement
: INCLUDE QUOTEDSTRING
: INCLUDE QUOTEDSTRING EOS
{
char path[MAXPATHLEN];

Expand All @@ -229,7 +229,6 @@ include_statement
if (yycf_switch_buffer(path) != 0)
return -1;
}
EOS
;

/* self infomation */
Expand Down

0 comments on commit 2cb3d44

Please sign in to comment.