trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject git commit: TS-2167: Update apichecker.pl to give suggestions on additional deprecated APIs
Date Fri, 30 Aug 2013 23:25:32 GMT
Updated Branches:
  refs/heads/master bb50292e0 -> 9ad6885de


TS-2167: Update apichecker.pl to give suggestions on additional deprecated APIs


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/9ad6885d
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/9ad6885d
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/9ad6885d

Branch: refs/heads/master
Commit: 9ad6885de1dc02275fbbf30556029bd4b1dd05ee
Parents: bb50292
Author: Sean Cosgrave <stc@yahoo-inc.com>
Authored: Fri Aug 30 16:24:20 2013 -0700
Committer: Bryan Call <bcall@apache.org>
Committed: Fri Aug 30 16:24:20 2013 -0700

----------------------------------------------------------------------
 tools/apichecker.pl | 179 ++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 178 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/9ad6885d/tools/apichecker.pl
----------------------------------------------------------------------
diff --git a/tools/apichecker.pl b/tools/apichecker.pl
index 93ffc9f..706a9b8 100755
--- a/tools/apichecker.pl
+++ b/tools/apichecker.pl
@@ -30,6 +30,81 @@ require 5.006;
 #
 # tsapi const struct sockaddr_storage *INKHttpTxnClientSockAddrGet(TSHttpTxn txnp);
 my %INK_EXCLUDES = (
+  "INKSTAT_TYPE_INT64" => 1,
+  "INKSTAT_TYPE_FLOAT" => 1,
+  "INKStatTypes" => 1,
+  "INKStat" => 1,
+  "INKCoupledStat" => 1,
+  "INKStatCreate" => 1,
+  "INKStatIntAddTo" => 1,
+  "INKStatFloatAddTo" => 1,
+  "INKStatDecrement" => 1,
+  "INKStatIncrement" => 1,
+  "INKStatIntGet" => 1,
+  "INKStatFloatGet" => 1,
+  "INKStatIntSet" => 1,
+  "INKStatFloatSet" => 1,
+  "INKStatCoupledGlobalCategoryCreate" => 1,
+  "INKStatCoupledLocalCopyCreate" => 1,
+  "INKStatCoupledLocalCopyDestroy" => 1,
+  "INKStatCoupledGlobalAdd" => 1,
+  "INKStatCoupledLocalAdd" => 1,
+  "INKStatsCoupledUpdate" => 1,
+  "INKStatCreateV2" => 1,
+  "INKStatIncrementV2" => 1,
+  "INKStatIncrementByNameV2" => 1,
+  "INKStatDecrementV2" => 1,
+  "INKStatDecrementByNameV2" => 1,
+  "INKStatGetCurrentV2" => 1,
+  "INKStatGetCurrentByNameV2" => 1,
+  "INKStatGetV2" => 1,
+  "INKStatGetByNameV2" => 1,
+  "INKMimeFieldCreate" => 1,
+  "INKMimeFieldDestroy" => 1,
+  "INKMimeFieldCopy" => 1,
+  "INKMimeFieldCopyValues" => 1,
+  "INKMimeFieldNext" => 1,
+  "INKMimeFieldLengthGet" => 1,
+  "INKMimeFieldNameGet" => 1,
+  "INKMimeFieldNameSet" => 1,
+  "INKMimeFieldValuesClear" => 1,
+  "INKMimeFieldValuesCount" => 1,
+  "INKMimeFieldValueGet" => 1,
+  "INKMimeFieldValueGetInt" => 1,
+  "INKMimeFieldValueGetUint" => 1,
+  "INKMimeFieldValueGetDate" => 1,
+  "INKMimeFieldValueSet" => 1,
+  "INKMimeFieldValueSetInt" => 1,
+  "INKMimeFieldValueSetUint" => 1,
+  "INKMimeFieldValueSetDate" => 1,
+  "INKMimeFieldValueAppend" => 1,
+  "INKMimeFieldValueInsert" => 1,
+  "INKMimeFieldValueInsertInt" => 1,
+  "INKMimeFieldValueInsertUint" => 1,
+  "INKMimeFieldValueInsertDate" => 1,
+  "INKMimeFieldValueDelete" => 1,
+  "INKMimeHdrFieldValueSet" => 1,
+  "INKMimeHdrFieldValueGet" => 1,
+  "INKMimeHdrFieldInsert" => 1,
+  "INKMimeHdrFieldDelete" => 1,
+  "INKMutexTryLock" => 1,
+  "INKMBufferDataSet" => 1,
+  "INKMBufferDataGet" => 1,
+  "INKMBufferLengthGet" => 1,
+  "INKMBufferRef" => 1,
+  "INKMBufferUnref" => 1,
+  "INKMBufferCompress" => 1,
+  "INKIOBufferDataCreate" => 1,
+  "INKIOBufferBlockCreate" => 1,
+  "INKIOBufferAppend" => 1,
+  "INKCacheHttpInfoCreate" => 1,
+  "INKCacheHttpInfoReqGet" => 1,
+  "INKCacheHttpInfoRespGet" => 1,
+  "INKCacheHttpInfoReqSet" => 1,
+  "INKCacheHttpInfoRespSet" => 1,
+  "INKCacheHttpInfoKeySet" => 1,
+  "INKCacheHttpInfoSizeSet" => 1,
+  "INKCacheHttpInfoVector" => 1,
 );
 
 sub ink2ts {
@@ -87,6 +162,46 @@ my %RENAMED = (
   "tsremap_remap" => "TSRemapDoRemap",
   "tsremap_os_response" => "TSRemapOSResponse",
   "rhandle" => "TSHttpTxn",
+  "INKStatCreateV2" => "TSStatCreate",
+  "INKStatIncrementV2" => "TSStatIntIncrement",
+  "INKStatIncrementByNameV2" => "TSStatIntIncrement",
+  "INKStatDecrementV2" => "TSStatIntDecrement",
+  "INKStatDecrementByNameV2" => "TSStatIntDecrement",
+  "INKStatGetCurrentV2" => "TSStatIntGet",
+  "INKStatGetCurrentByNameV2" => "TSStatIntGet",
+  "INKStatGetV2" => "TSStatIntGet",
+  "INKStatGetByNameV2" => "TSStatIntGet",
+  "INKMimeFieldCreate" => "TSMimeHdrFieldCreate",
+  "INKMimeFieldDestroy" => "TSMimeHdrFieldDestroy",
+  "INKMimeFieldCopy" => "TSMimeHdrFieldCopy",
+  "INKMimeFieldCopyValues" => "TSMimeHdrFieldCopyValues",
+  "INKMimeFieldNext" => "TSMimeHdrFieldNext",
+  "INKMimeFieldLengthGet" => "TSMimeHdrFieldLengthGet",
+  "INKMimeFieldNameGet" => "TSMimeHdrFieldNameGet",
+  "INKMimeFieldNameSet" => "TSMimeHdrFieldNameSet",
+  "INKMimeFieldValuesClear" => "TSMimeHdrFieldValuesClear",
+  "INKMimeFieldValuesCount" => "TSMimeHdrFieldValuesCount",
+  "INKMimeHdrFieldValueGet" => "TSMimeHdrFieldValueStringGet",
+  "INKMimeFieldValueGet" => "TSMimeHdrFieldValueStringGet",
+  "INKMimeFieldValueGetInt" => "TSMimeHdrFieldValueIntGet",
+  "INKMimeFieldValueGetUint" => "TSMimeHdrFieldValueUintGet",
+  "INKMimeFieldValueGetDate" => "TSMimeHdrFieldValueDateGet",
+  "INKMimeFieldValueSet" => "TSMimeHdrFieldValueStringSet",
+  "TSMimeHdrFieldValueSet" => "TSMimeHdrFieldValueStringSet",
+  "INKMimeFieldValueSetInt" => "TSMimeHdrFieldValueIntSet",
+  "INKMimeFieldValueSetUint" => "TSMimeHdrFieldValueUintSet",
+  "INKMimeFieldValueSetDate" => "TSMimeHdrFieldValueDateSet",
+  "INKMimeFieldValueAppend" => "TSMimeHdrFieldValueAppend",
+  "INKMimeFieldValueInsert" => "TSMimeHdrFieldValueStringInsert",
+  "INKMimeFieldValueInsertInt" => "TSMimeHdrFieldValueIntInsert",
+  "INKMimeFieldValueInsertUint" => "TSMimeHdrFieldValueUintInsert",
+  "INKMimeFieldValueInsertDate" => "TSMimeHdrFieldValueDateInsert",
+  "INKMimeFieldValueDelete" => "TSMimeHdrFieldValueDelete",
+  "INKMimeHdrFieldInsert" => "TSMimeHdrFieldAppend",
+  "INKMimeHdrFieldDelete" => "TSMimeHdrFieldDestroy",
+  "INKMutexTryLock" =>  "TSMutexLockTry",
+  "INKIOBufferDataCreate" => "TSIOBufferCreate",
+  "TSIOBufferDataCreate" => "TSIOBufferCreate",
 );
 
 my %TWO_2_THREE = (
@@ -238,6 +353,15 @@ my %TWO_2_THREE = (
   "tsremap_delete_instance" =>  [$W_RENAMED],
   "tsremap_remap" =>  [$W_RENAMED, $W_TSREMAPSTATUS],
   "tsremap_os_response" => [$W_RENAMED],
+  "INKStatCreateV2" => [$W_RENAMED],
+  "INKStatIncrementV2" => [$W_RENAMED],
+  "INKStatIncrementByNameV2" => [$W_RENAMED],
+  "INKStatDecrementV2" => [$W_RENAMED],
+  "INKStatDecrementByNameV2" => [$W_RENAMED],
+  "INKStatGetCurrentV2" => [$W_RENAMED],
+  "INKStatGetCurrentByNameV2" => [$W_RENAMED],
+  "INKStatGetV2" => [$W_RENAMED],
+  "INKStatGetByNameV2" => [$W_RENAMED],
   "orig_url" => [$W_DEPRECATED],
   "orig_url_size" => [$W_DEPRECATED],
   "request_port" =>  [$W_DEPRECATED],
@@ -261,6 +385,55 @@ my %TWO_2_THREE = (
   "new_matrix" =>  [$W_DEPRECATED],
   "redirect_url" =>  [$W_DEPRECATED],
   "require_ssl" =>  [$W_DEPRECATED],
+  "INKMimeFieldCreate" => [$W_RENAMED],
+  "INKMimeFieldDestroy" => [$W_RENAMED],
+  "INKMimeFieldCopy" => [$W_RENAMED],
+  "INKMimeFieldCopyValues" => [$W_RENAMED],
+  "INKMimeFieldNext" => [$W_RENAMED],
+  "INKMimeFieldLengthGet" => [$W_RENAMED],
+  "INKMimeFieldNameGet" => [$W_RENAMED],
+  "INKMimeFieldNameSet" => [$W_RENAMED],
+  "INKMimeFieldValuesClear" => [$W_RENAMED],
+  "INKMimeFieldValuesCount" => [$W_RENAMED],
+  "INKMimeFieldValueGet" => [$W_RENAMED],
+  "INKMimeFieldValueGetInt" => [$W_RENAMED],
+  "INKMimeFieldValueGetUint" => [$W_RENAMED],
+  "INKMimeFieldValueGetDate" => [$W_RENAMED],
+  "INKMimeFieldValueSet" => [$W_RENAMED],
+  "INKMimeFieldValueSetInt" => [$W_RENAMED],
+  "INKMimeFieldValueSetUint" => [$W_RENAMED],
+  "INKMimeFieldValueSetDate" => [$W_RENAMED],
+  "INKMimeFieldValueAppend" => [$W_RENAMED],
+  "INKMimeFieldValueInsert" => [$W_RENAMED],
+  "INKMimeFieldValueInsertInt" => [$W_RENAMED],
+  "INKMimeFieldValueInsertUint" => [$W_RENAMED],
+  "INKMimeFieldValueInsertDate" => [$W_RENAMED],
+  "INKMimeFieldValueDelete" => [$W_RENAMED],
+  "INKMimeHdrFieldValueGet" => [$W_RENAMED],
+  "INKMimeHdrFieldValueSet" => [$W_RENAMED],
+  "INKMimeHdrFieldInsert" => [$W_RENAMED],
+  "INKMimeHdrFieldDelete" => [$W_RENAMED],
+  "INKMutexTryLock" => [$W_RENAMED],
+  "INKMBufferDataSet" => [$W_DEPRECATED],
+  "INKMBufferDataGet" => [$W_DEPRECATED],
+  "INKMBufferLengthGet" => [$W_DEPRECATED],
+  "INKMBufferRef" => [$W_DEPRECATED],
+  "INKMBufferUnref" => [$W_DEPRECATED],
+  "INKMBufferCompress" => [$W_DEPRECATED],
+  "INKIOBufferDataCreate" => [$W_RENAMED],
+  "TSIOBufferDataCreate" => [$W_RENAMED],
+  "INKIOBufferBlockCreate" => [$W_DEPRECATED],
+  "TSIOBufferBlockCreate" => [$W_DEPRECATED],
+  "INKIOBufferAppend" => [$W_DEPRECATED],
+  "TSIOBufferAppend" => [$W_DEPRECATED],
+  "INKCacheHttpInfoCreate" => [$W_DEPRECATED],
+  "INKCacheHttpInfoReqGet" => [$W_DEPRECATED],
+  "INKCacheHttpInfoRespGet" => [$W_DEPRECATED],
+  "INKCacheHttpInfoReqSet" => [$W_DEPRECATED],
+  "INKCacheHttpInfoRespSet" => [$W_DEPRECATED],
+  "INKCacheHttpInfoKeySet" => [$W_DEPRECATED],
+  "INKCacheHttpInfoSizeSet" => [$W_DEPRECATED],
+  "INKCacheHttpInfoVector" => [$W_DEPRECATED],
 );
 
 
@@ -328,7 +501,11 @@ sub process {
   while (<FILE>) {
     my @tokens = split(/[^a-zA-Z0-9_\.]/);
 
-    if (ink2ts(\@tokens, $_) || two2three(\@tokens, $_)) {
+    if (ink2ts(\@tokens, $_)) {
+      print "$file:$line:$_\n";
+    }
+
+    if (two2three(\@tokens, $_)) {
       print "$file:$line:$_\n";
     }
 


Mime
View raw message