diff options
author | Anand Avati <avati@redhat.com> | 2013-08-10 23:10:04 -0700 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-09-21 23:45:09 -0700 |
commit | eec0e973be78e454665e6fbc645caddf44e362b9 (patch) | |
tree | 3a38d2c38ba498f1497cbf68bc39c33b68d01772 /libglusterfs/src/graph.l | |
parent | 4152ef34ec08e09e885334955afe3ec88e798eb5 (diff) |
parser: use private namespace 'graphyy' instead of 'yy'
This can cause linker errors when accessing glusterfs through
libgfapi if the caller also uses a parser with 'yy' prefix.
Change-Id: I6544333c47a1f18193741420717c989e4bdea7b1
BUG: 764890
Signed-off-by: Anand Avati <avati@redhat.com>
Reviewed-on: http://review.gluster.org/5643
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'libglusterfs/src/graph.l')
-rw-r--r-- | libglusterfs/src/graph.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfs/src/graph.l b/libglusterfs/src/graph.l index ff34f6ef17c..e4eba9cbef6 100644 --- a/libglusterfs/src/graph.l +++ b/libglusterfs/src/graph.l @@ -70,10 +70,10 @@ TYPE [t][y][p][e] yyunput (0, NULL); } BEGIN (INITIAL); - yylval = text; + graphyylval = text; return STRING_TOK; } } -[^ \t\r\n\"\\]+ { yylval = gf_strdup (yytext) ; return ID; } +[^ \t\r\n\"\\]+ { graphyylval = gf_strdup (yytext) ; return ID; } [ \t\r\n]+ ; %% |