commit | fb790d726297cfa85900db00214fc0f3a9d029e6 | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | 周四 9月 02 16:41:45 2010 +0000 |
committer | David Reiss <dreiss@apache.org> | 周四 9月 02 16:41:45 2010 +0000 |
tree | 708ddf62b433af57bea98f4b5d951728f2b8f8d9 | |
parent | f723e8d5b59bc5322663431e82c75ccace59287a [diff] [blame] |
Allow "*" as a catch-all namespace. In an IDL file, you can can now declare "namespace * foo", which will apply to any language not explicitly specified. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@992012 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/thriftl.ll b/compiler/cpp/src/thriftl.ll index 84e02bb..b8c36c3 100644 --- a/compiler/cpp/src/thriftl.ll +++ b/compiler/cpp/src/thriftl.ll
@@ -342,6 +342,11 @@ } +. { + /* Catch-all to let us catch "*" in the parser. */ + return (int) yytext[0]; +} + %% /* vim: filetype=lex