Author: dreiss
Date: Thu Mar 19 08:14:12 2009
New Revision: 755870
URL: http://svn.apache.org/viewvc?rev=755870&view=rev
Log:
THRIFT-361. Use separate negative id counters for arguments and exceptions
NOTE:
This will break wire-compatibility, but only with functions that have
both negative-id arguments and negative id-exceptions, and only in the
exceptional case.
Modified:
incubator/thrift/trunk/compiler/cpp/src/thrifty.yy
Modified: incubator/thrift/trunk/compiler/cpp/src/thrifty.yy
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/thrifty.yy?rev=755870&r1=755869&r2=755870&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/thrifty.yy (original)
+++ incubator/thrift/trunk/compiler/cpp/src/thrifty.yy Thu Mar 19 08:14:12 2009
@@ -677,7 +677,6 @@
$$->annotations_ = $7->annotations_;
delete $7;
}
- y_field_val = -1;
}
XsdAll:
@@ -727,7 +726,6 @@
$4->set_name($2);
$4->set_xception(true);
$$ = $4;
- y_field_val = -1;
}
Service:
@@ -788,7 +786,6 @@
if ($1 != NULL) {
$$->set_doc($1);
}
- y_field_val = -1;
}
Async:
@@ -830,6 +827,7 @@
|
{
pdebug("FieldList -> ");
+ y_field_val = -1;
$$ = new t_struct(g_program);
}