From 21c0466b3d71093885134f5070a7cf22f7c88713 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Thu, 24 Apr 2008 10:25:44 +0000 Subject: [PATCH] Added any tag to ADT array functions to fix potential tag mismatches --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402094 --- plugins/include/adt_array.inc | 10 +++++----- plugins/include/adt_stack.inc | 4 ++-- plugins/include/adt_trie.inc | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/include/adt_array.inc b/plugins/include/adt_array.inc index 97e55ca4..94f383cf 100644 --- a/plugins/include/adt_array.inc +++ b/plugins/include/adt_array.inc @@ -85,8 +85,8 @@ native ClearArray(Handle:array); * no relation to the original. You MUST close it. * * @param array Array handle to be cloned - * @return New handle to the cloned array object - * @error Invalid Handle + * @return New handle to the cloned array object + * @error Invalid Handle */ native Handle:CloneArray(Handle:array); @@ -147,7 +147,7 @@ native PushArrayString(Handle:array, const String:value[]); * @return Index of the new entry. * @error Invalid Handle or out of memory. */ -native PushArrayArray(Handle:array, const values[], size=-1); +native PushArrayArray(Handle:array, const any:values[], size=-1); /** * Retrieves a cell value from an array. @@ -185,7 +185,7 @@ native GetArrayString(Handle:array, index, String:buffer[], maxlength); * @return Number of cells copied. * @error Invalid Handle or invalid index. */ -native GetArrayArray(Handle:array, index, buffer[], size=-1); +native GetArrayArray(Handle:array, index, any:buffer[], size=-1); /** * Sets a cell value in an array. @@ -223,7 +223,7 @@ native SetArrayString(Handle:array, index, const String:buffer[]); * @return Number of cells copied. * @error Invalid Handle or invalid index. */ -native SetArrayArray(Handle:array, index, const values[], size=-1); +native SetArrayArray(Handle:array, index, const any:values[], size=-1); /** * Shifts an array up. All array contents after and including the given diff --git a/plugins/include/adt_stack.inc b/plugins/include/adt_stack.inc index 596566b2..b3102e75 100644 --- a/plugins/include/adt_stack.inc +++ b/plugins/include/adt_stack.inc @@ -92,7 +92,7 @@ native PushStackString(Handle:stack, const String:value[]); * @noreturn * @error Invalid Handle or out of memory. */ -native PushStackArray(Handle:stack, const values[], size=-1); +native PushStackArray(Handle:stack, const any:values[], size=-1); /** * Pops a cell value from a stack. @@ -128,7 +128,7 @@ native bool:PopStackString(Handle:stack, String:buffer[], maxlength, &written=0) * @return True on success, false if the stack is empty. * @error Invalid Handle. */ -native bool:PopStackArray(Handle:stack, buffer[], size=-1); +native bool:PopStackArray(Handle:stack, any:buffer[], size=-1); /** * Checks if a stack is empty. diff --git a/plugins/include/adt_trie.inc b/plugins/include/adt_trie.inc index 3c9c4cfa..63750099 100644 --- a/plugins/include/adt_trie.inc +++ b/plugins/include/adt_trie.inc @@ -72,7 +72,7 @@ native bool:SetTrieValue(Handle:trie, const String:key[], any:value, bool:replac * @return True on success, false on failure. * @error Invalid Handle. */ -native bool:SetTrieArray(Handle:trie, const String:key[], const array[], num_items, bool:replace=true); +native bool:SetTrieArray(Handle:trie, const String:key[], const any:array[], num_items, bool:replace=true); /** * Sets a string value in a Trie, either inserting a new entry or replacing an old one. @@ -111,7 +111,7 @@ native bool:GetTrieValue(Handle:trie, const String:key[], &any:value); * as a value or string (not an array). * @error Invalid Handle. */ -native bool:GetTrieArray(Handle:trie, const String:key[], array[], max_size, &size=0); +native bool:GetTrieArray(Handle:trie, const String:key[], any:array[], max_size, &size=0); /** * Retrieves a string in a Trie.