THRIFT-136. s/async/oneway/ in the Thrift IDL
This is the real change. The lexer now recognizes "oneway"
and warns on "async". All example and test IDLs have been
updated, as have the syntax files.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757994 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/thriftl.ll b/compiler/cpp/src/thriftl.ll
index 60a7f2c..9392734 100644
--- a/compiler/cpp/src/thriftl.ll
+++ b/compiler/cpp/src/thriftl.ll
@@ -106,7 +106,7 @@
"map" { return tok_map; }
"list" { return tok_list; }
"set" { return tok_set; }
-"async" { return tok_oneway; }
+"oneway" { return tok_oneway; }
"typedef" { return tok_typedef; }
"struct" { return tok_struct; }
"exception" { return tok_xception; }
@@ -117,6 +117,10 @@
"const" { return tok_const; }
"required" { return tok_required; }
"optional" { return tok_optional; }
+"async" {
+ pwarning(0, "\"async\" is deprecated. It is called \"oneway\" now.\n");
+ return tok_oneway;
+}
"abstract" { thrift_reserved_keyword(yytext); }