Worst commit ever, but I have removed some unnecessary things
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40438
This commit is contained in:
		
							parent
							
								
									fcb8c35eec
								
							
						
					
					
						commit
						6a7f216615
					
				@ -12,13 +12,7 @@
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include <math.h>
 | 
			
		||||
#include <string.h>
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
#include "sm_autonatives.h"
 | 
			
		||||
#include "sp_vm_api.h"
 | 
			
		||||
#include "sp_typeutil.h"
 | 
			
		||||
 | 
			
		||||
using namespace SourcePawn;
 | 
			
		||||
#include "sm_globals.h"
 | 
			
		||||
 | 
			
		||||
/****************************************
 | 
			
		||||
*                                       *
 | 
			
		||||
 | 
			
		||||
@ -11,14 +11,11 @@
 | 
			
		||||
 * Version: $Id$
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include "sm_platform.h"
 | 
			
		||||
#include <string.h>
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
#include "sm_globals.h"
 | 
			
		||||
#include "sm_stringutil.h"
 | 
			
		||||
 | 
			
		||||
using namespace SourcePawn;
 | 
			
		||||
 | 
			
		||||
inline const char *_strstr(const char *str, const char *substr)
 | 
			
		||||
{
 | 
			
		||||
#ifdef PLATFORM_WINDOWS
 | 
			
		||||
 | 
			
		||||
@ -464,6 +464,6 @@ namespace SourceMod
 | 
			
		||||
		 */
 | 
			
		||||
		virtual bool InvalidateAdmin(AdminId id) =0;
 | 
			
		||||
	};
 | 
			
		||||
};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#endif //_INCLUDE_SOURCEMOD_ADMINISTRATION_SYSTEM_H_
 | 
			
		||||
 | 
			
		||||
@ -245,6 +245,6 @@ namespace SourceMod
 | 
			
		||||
		 */
 | 
			
		||||
		virtual bool UnloadExtension(IExtension *pExt) =0;
 | 
			
		||||
	};
 | 
			
		||||
};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#endif //_INCLUDE_SOURCEMOD_MODULE_INTERFACE_H_
 | 
			
		||||
 | 
			
		||||
@ -329,7 +329,7 @@ namespace SourceMod
 | 
			
		||||
		 */
 | 
			
		||||
		virtual void ReleaseForward(IForward *forward) =0;
 | 
			
		||||
	};
 | 
			
		||||
};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 *  In the AMX Mod X model of forwarding, each forward contained a list of pairs, each pair containing
 | 
			
		||||
@ -387,7 +387,7 @@ namespace SourceMod
 | 
			
		||||
 * be immediately resolved.  Unfortunately, this became extremely burdensome on the API and exposed many problems,
 | 
			
		||||
 * the major (and breaking) one was that two separate Function objects cannot be in a calling process on the same 
 | 
			
		||||
 * plugin at once. (:TODO: perhaps prevent that in the IPlugin object?) This is because heap functions lose their order
 | 
			
		||||
 * and become impossible to re-arrange without some global heap tracking mechanis.  It also made iterative copy backs 
 | 
			
		||||
 * and become impossible to re-arrange without some global heap tracking mechanism.  It also made iterative copy backs 
 | 
			
		||||
 * for arrays/references overwhelmingly complex, since each plugin had to have its memory back-patched for each copy.
 | 
			
		||||
 *  Therefore, this was scrapped for cached parameters (current implementation), which is the implementation AMX Mod X 
 | 
			
		||||
 * uses.  It is both faster and works better.
 | 
			
		||||
 | 
			
		||||
@ -304,6 +304,6 @@ namespace SourceMod
 | 
			
		||||
		 */
 | 
			
		||||
		virtual bool InitAccessDefaults(TypeAccess *pTypeAccess, HandleAccess *pHandleAccess) =0;
 | 
			
		||||
	};
 | 
			
		||||
};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#endif //_INCLUDE_SOURCEMOD_HANDLESYSTEM_INTERFACE_H_
 | 
			
		||||
 | 
			
		||||
@ -174,6 +174,6 @@ namespace SourceMod
 | 
			
		||||
		 */
 | 
			
		||||
		virtual size_t PathFormat(char *buffer, size_t maxlength, const char *pathfmt, ...) =0;
 | 
			
		||||
	};
 | 
			
		||||
};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#endif //_INCLUDE_SOURCEMOD_LIBRARY_INTERFACE_SYS_H_
 | 
			
		||||
 | 
			
		||||
@ -312,6 +312,6 @@ namespace SourceMod
 | 
			
		||||
		 */
 | 
			
		||||
		virtual void RemovePluginsListener(IPluginsListener *listener) =0;
 | 
			
		||||
	};
 | 
			
		||||
};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#endif //_INCLUDE_SOURCEMOD_PLUGINMNGR_INTERFACE_H_
 | 
			
		||||
 | 
			
		||||
@ -107,6 +107,6 @@ namespace SourceMod
 | 
			
		||||
		 */
 | 
			
		||||
		virtual void DrawGenericOption(const char *cmd, const char *text) =0;
 | 
			
		||||
	};
 | 
			
		||||
};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#endif //_INCLUDE_SOURCEMOD_ROOT_CONSOLE_MENU_H_
 | 
			
		||||
 | 
			
		||||
@ -174,6 +174,6 @@ namespace SourceMod
 | 
			
		||||
		 */
 | 
			
		||||
		virtual void AddDependency(IExtension *myself, const char *filename, bool require, bool autoload) =0;
 | 
			
		||||
	};
 | 
			
		||||
};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#endif //_INCLUDE_SOURCEMOD_IFACE_SHARE_SYS_H_
 | 
			
		||||
 | 
			
		||||
@ -117,6 +117,6 @@ namespace SourceMod
 | 
			
		||||
									const cell_t *params,
 | 
			
		||||
									unsigned int param) =0;
 | 
			
		||||
	};
 | 
			
		||||
};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#endif //_INCLUDE_SOURCEMOD_MAIN_HELPER_INTERFACE_H_
 | 
			
		||||
 | 
			
		||||
@ -350,6 +350,6 @@ namespace SourceMod
 | 
			
		||||
		 */
 | 
			
		||||
		virtual unsigned int GetUTF8CharBytes(const char *stream) =0;
 | 
			
		||||
	};
 | 
			
		||||
};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#endif //_INCLUDE_SOURCEMOD_TEXTPARSERS_INTERFACE_H_
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user