iface comment fixes and sync

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40190
This commit is contained in:
Borja Ferrer 2006-11-13 13:55:44 +00:00
parent 2943111703
commit cda9c6952d
5 changed files with 5 additions and 25 deletions

View File

@ -133,7 +133,7 @@ namespace SourceMod
* @brief Pushes an array of cells onto the current call. Different rules than ICallable.
* NOTE: On Execute, the pointer passed will be modified according to the copyback rule.
*
* @param array Array to copy. Cannot be NULL, unlike ICallable's version.
* @param inarray Array to copy. Cannot be NULL, unlike ICallable's version.
* @param cells Number of cells to allocate and optionally read from the input array.
* @param phys_addr Unused. If a value is passed, it will be filled with NULL.
* @param flags Whether or not changes should be copied back to the input array.

View File

@ -63,7 +63,7 @@ namespace SourceMod
* This means you cannot push a pointer, change it, and push it again and expect
* two different values to come out.
*
* @param array Array to copy, NULL if no initial array should be copied.
* @param inarray Array to copy, NULL if no initial array should be copied.
* @param cells Number of cells to allocate and optionally read from the input array.
* @param phys_addr Optional return address for physical array, if one was made.
* @param flags Whether or not changes should be copied back to the input array.
@ -111,7 +111,6 @@ namespace SourceMod
* @brief Executes the forward, resets the pushed parameter list, and performs any copybacks.
*
* @param result Pointer to store return value in.
* @param reader Copy-back listener. NULL to specify
* @return Error code, if any.
*/
virtual int Execute(cell_t *result) =0;

View File

@ -230,7 +230,7 @@ namespace SourceMod
*
* @param path Path and filename of plugin, relative to plugins folder.
* @param debug Whether or not to default the plugin into debug mode.
* @param lifetime Lifetime of the plugin.
* @param type Lifetime of the plugin.
* @param error Buffer to hold any error message.
* @param err_max Maximum length of error message buffer.
* @return A new plugin pointer on success, false otherwise.
@ -244,7 +244,7 @@ namespace SourceMod
/**
* @brief Attempts to unload a plugin.
*
* @param Pointer to the plugin handle.
* @param plugin Pointer to the plugin handle.
* @return True on success, false otherwise.
*/
virtual bool UnloadPlugin(IPlugin *plugin) =0;
@ -253,7 +253,7 @@ namespace SourceMod
* @brief Finds a plugin by its context.
* Note: This function should be considered O(1).
*
* @param Pointer to an sp_context_t.
* @param ctx Pointer to an sp_context_t.
* @return Pointer to a matching IPlugin, or NULL if none found.
*/
virtual IPlugin *FindPluginByContext(const sp_context_t *ctx) =0;

View File

@ -72,24 +72,6 @@ int CFunction::PushFloatByRef(float *number, int flags)
return PushCellByRef((cell_t *)number, flags);
}
int CFunction::PushCells(cell_t array[], unsigned int numcells, bool each)
{
if (!each)
{
return PushArray(array, numcells, NULL, 0);
} else {
int err;
for (unsigned int i=0; i<numcells; i++)
{
if ((err=PushCell(array[i])) != SP_ERROR_NONE)
{
return SetError(err);
}
}
return SP_ERROR_NONE;
}
}
int CFunction::PushArray(cell_t *inarray, unsigned int cells, cell_t **phys_addr, int copyback)
{
if (m_curparam >= SP_MAX_EXEC_PARAMS)

View File

@ -25,7 +25,6 @@ public:
virtual int PushCellByRef(cell_t *cell, int flags);
virtual int PushFloat(float number);
virtual int PushFloatByRef(float *number, int flags);
virtual int PushCells(cell_t array[], unsigned int numcells, bool each);
virtual int PushArray(cell_t *inarray, unsigned int cells, cell_t **phys_addr, int copyback);
virtual int PushString(const char *string);
virtual int PushStringEx(char *string, int flags);