You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2013/06/04 22:02:23 UTC

git commit: THRIFT-1944 Deprecate slist

Updated Branches:
  refs/heads/master cde23dfd2 -> 0ca234f3b


THRIFT-1944 Deprecate slist

Patch: Randy Abernethy


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/0ca234f3
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/0ca234f3
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/0ca234f3

Branch: refs/heads/master
Commit: 0ca234f3b667079aad3c6e7ff5d5b54bb30c572c
Parents: cde23df
Author: Jens Geyer <je...@apache.org>
Authored: Tue Jun 4 22:01:47 2013 +0200
Committer: Jens Geyer <je...@apache.org>
Committed: Tue Jun 4 22:01:47 2013 +0200

----------------------------------------------------------------------
 compiler/cpp/src/thriftl.ll |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/0ca234f3/compiler/cpp/src/thriftl.ll
----------------------------------------------------------------------
diff --git a/compiler/cpp/src/thriftl.ll b/compiler/cpp/src/thriftl.ll
index fda6b33..958bb40 100644
--- a/compiler/cpp/src/thriftl.ll
+++ b/compiler/cpp/src/thriftl.ll
@@ -143,7 +143,10 @@ literal_begin (['\"])
 "double"             { return tok_double;               }
 "string"             { return tok_string;               }
 "binary"             { return tok_binary;               }
-"slist"              { return tok_slist;                }
+"slist" {
+  pwarning(0, "\"slist\" is deprecated and will be removed in a future compiler version.  This type should be replaced with \"string\".\n");
+  return tok_slist;
+}
 "senum"              { return tok_senum;                }
 "map"                { return tok_map;                  }
 "list"               { return tok_list;                 }