Author: dreiss
Date: Tue Mar 24 20:00:47 2009
New Revision: 757988
URL: http://svn.apache.org/viewvc?rev=757988&view=rev
Log:
THRIFT-136. s/async/oneway/ in lexer and parser variables
This is an internal-only change.
Modified:
incubator/thrift/trunk/compiler/cpp/src/thriftl.ll
incubator/thrift/trunk/compiler/cpp/src/thrifty.yy
Modified: incubator/thrift/trunk/compiler/cpp/src/thriftl.ll
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/thriftl.ll?rev=757988&r1=757987&r2=757988&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/thriftl.ll (original)
+++ incubator/thrift/trunk/compiler/cpp/src/thriftl.ll Tue Mar 24 20:00:47 2009
@@ -106,7 +106,7 @@
"map" { return tok_map; }
"list" { return tok_list; }
"set" { return tok_set; }
-"async" { return tok_async; }
+"async" { return tok_oneway; }
"typedef" { return tok_typedef; }
"struct" { return tok_struct; }
"exception" { return tok_xception; }
Modified: incubator/thrift/trunk/compiler/cpp/src/thrifty.yy
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/thrifty.yy?rev=757988&r1=757987&r2=757988&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/thrifty.yy (original)
+++ incubator/thrift/trunk/compiler/cpp/src/thrifty.yy Tue Mar 24 20:00:47 2009
@@ -120,7 +120,7 @@
/**
* Function modifiers
*/
-%token tok_async
+%token tok_oneway
/**
* Thrift language keywords
@@ -189,7 +189,7 @@
%type<tstruct> Throws
%type<tservice> Extends
-%type<tbool> Async
+%type<tbool> Oneway
%type<tbool> XsdAll
%type<tbool> XsdOptional
%type<tbool> XsdNillable
@@ -778,7 +778,7 @@
}
Function:
- CaptureDocText Async FunctionType tok_identifier '(' FieldList ')' Throws
CommaOrSemicolonOptional
+ CaptureDocText Oneway FunctionType tok_identifier '(' FieldList ')' Throws
CommaOrSemicolonOptional
{
$6->set_name(std::string($4) + "_args");
$$ = new t_function($3, $4, $6, $8, $2);
@@ -787,8 +787,8 @@
}
}
-Async:
- tok_async
+Oneway:
+ tok_oneway
{
$$ = true;
}