THRIFT-1944 Deprecate slist
authorJens Geyer <jensg@apache.org>
Tue, 4 Jun 2013 20:01:47 +0000 (22:01 +0200)
committerJens Geyer <jensg@apache.org>
Tue, 4 Jun 2013 20:01:47 +0000 (22:01 +0200)
Patch: Randy Abernethy

compiler/cpp/src/thriftl.ll

index fda6b33..958bb40 100644 (file)
@@ -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;                 }