Merge from master terrible

This commit is contained in:
KimLS 2013-05-15 16:01:13 -07:00
commit b26df187e6
609 changed files with 37214 additions and 37933 deletions

View File

@ -82,4 +82,3 @@ MARK_AS_ADVANCED(
MySQL_LIBRARY_RELEASE
MySQL_INCLUDE_DIR
)

View File

@ -124,24 +124,3 @@ void DumpPacketBin(const BasePacket* app) {
DumpPacketBin(app->pBuffer, app->size);
}

View File

@ -89,5 +89,3 @@ extern void DumpPacketBin(const BasePacket* app);
#endif /*BASEPACKET_H_*/

View File

@ -12,3 +12,4 @@ uint16 CRC16(const unsigned char *buf, int size, int key)
crc = CRC32::Update(buf, size, crc);
return CRC32::Finish(crc) & 0xffff;
}

View File

@ -73,6 +73,3 @@ Const_char *EQDB::escape_string(Const_char *from) {
return(m_escapeBuffer.c_str());
}

View File

@ -49,3 +49,4 @@ map<string,string> EQDBRes::fetch_row_hash() {
return rowhash;
}

View File

@ -446,27 +446,3 @@ void EQEmuConfig::Dump() const
// cout << "DynamicCount = " << DynamicCount << endl;
}

View File

@ -1448,6 +1448,3 @@ EQStream::MatchState EQStream::CheckSignature(const Signature *sig) {
return(res);
}

View File

@ -277,5 +277,5 @@ class EQStream : public EQStreamInterface {
};
#endif

View File

@ -314,7 +314,6 @@ Timer DecayTimer(20);
(*cur)->ReleaseFromUse();
}
Sleep(10);
MStreams.lock();
@ -328,20 +327,3 @@ Timer DecayTimer(20);
}
}

View File

@ -1,4 +1,3 @@
#include "debug.h"
#include "EQStreamIdent.h"
#include "EQStreamProxy.h"
@ -163,37 +162,3 @@ EQStreamIdentifier::Record::Record(EQStream *s)
{
}

View File

@ -170,6 +170,4 @@ protected:
map<const EQStreamInfo, T *> streams;
};
#endif

View File

@ -42,14 +42,5 @@ protected:
OpcodeManager **const m_opcodes; //we do not own this object.
};
#endif /*EQSTREAMPROXY_H_*/

View File

@ -17,30 +17,10 @@
*/
/*
*
*
*
*
* There are really two or three different objects shoe-hored into this
* connection object. Sombody really needs to factor out the relay link
* crap into its own subclass of this object, it will clean things up
* tremendously.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
There are really two or three different objects shoe-hored into this
connection object. Sombody really needs to factor out the relay link
crap into its own subclass of this object, it will clean things up
tremendously.
*/
#include "../common/debug.h"
@ -141,7 +121,6 @@ EmuTCPConnection::~EmuTCPConnection() {
//the queues free their content right now I believe.
}
EmuTCPNetPacket_Struct* EmuTCPConnection::MakePacket(ServerPacket* pack, uint32 iDestination) {
int32 size = sizeof(EmuTCPNetPacket_Struct) + pack->size;
if (pack->compressed) {
@ -473,7 +452,6 @@ void EmuTCPConnection::ClearBuffers() {
timeout_timer.Start();
}
void EmuTCPConnection::SendNetErrorPacket(const char* reason) {
#if TCPC_DEBUG >= 1
struct in_addr in;
@ -842,14 +820,3 @@ bool EmuTCPConnection::RecvData(char* errbuf) {
return(true);
}

View File

@ -1,7 +1,3 @@
#include "debug.h"
#include "EmuTCPServer.h"
#include "EmuTCPConnection.h"
@ -83,14 +79,3 @@ EmuTCPConnection *EmuTCPServer::FindConnection(uint32 iID) {
return(nullptr);
}

View File

@ -644,8 +644,7 @@ uint8 MaxSkillTable(uint16 skillid, uint16 race, uint16 eqclass, uint16 level) {
case MONK: case MONKGM:{
// 1 252 252
r_value = level*7; // This can't be right can it?
break
;
break;
}
case WARRIOR: case WARRIORGM:
case ROGUE: case ROGUEGM: {

View File

@ -352,17 +352,3 @@ ProcLauncher::Spec &ProcLauncher::Spec::operator=(const Spec &other) {
return(*this);
}

View File

@ -65,21 +65,14 @@ public:
virtual void OnTerminate(const ProcRef &ref, const Spec *spec) = 0;
};
/*
* The main launch method, call to start a new background process.
*/
/* The main launch method, call to start a new background process. */
ProcRef Launch(Spec *&to_launch); //takes ownership of the pointer
/*
* The terminate method
*/
/* The terminate method */
bool Terminate(const ProcRef &proc, bool graceful = true);
void TerminateAll(bool final = true);
/*
* The main processing method. Call regularly to check for terminated
* background processes.
*/
/* The main processing method. Call regularly to check for terminated background processes. */
void Process();
protected:
@ -96,29 +89,5 @@ private:
#endif
};
#endif /*PROCLAUNCHER_H_*/

View File

@ -943,7 +943,3 @@ bool TCPConnection::RunLoop() {
return ret;
}

View File

@ -177,5 +177,3 @@ private:
#endif

View File

@ -1,5 +1,3 @@
#include "debug.h"
#include "TCPServer.h"
#include <stdio.h>
@ -18,12 +16,8 @@
#define SOCKET_ERROR -1
#endif
#define SERVER_LOOP_GRANULARITY 3 //# of ms between checking our socket/queues
BaseTCPServer::BaseTCPServer(uint16 in_port) {
NextID = 1;
pPort = in_port;
@ -230,4 +224,3 @@ bool BaseTCPServer::IsOpen() {
return ret;
}

View File

@ -54,6 +54,3 @@ protected:
#endif

View File

@ -1,5 +1,3 @@
// Doors
#ifdef SHAREMEM
int32 Database::GetDoorsCount(uint32* oMaxID) {

View File

@ -437,5 +437,3 @@ void EQEMuLog::SetAllCallbacks(msgCallbackPva proc) {
}
}

View File

@ -49,5 +49,3 @@ extern const char *OpcodeNames[_maxEmuOpcode+1];
#endif

View File

@ -225,18 +225,18 @@ struct Spawn_Struct {
/*0088*/ uint8 findable; // 0=can't be found, 1=can be found
/*0089*/ uint8 unknown0089[5];
/*0094*/ signed deltaHeading:10; // change in heading
signed x:19; // x coord
signed padding0054:3; // ***Placeholder
/*????*/ signed x:19; // x coord
/*????*/ signed padding0054:3; // ***Placeholder
/*0098*/ signed y:19; // y coord
signed animation:10; // animation
signed padding0058:3; // ***Placeholder
/*????*/ signed animation:10; // animation
/*????*/ signed padding0058:3; // ***Placeholder
/*0102*/ signed z:19; // z coord
signed deltaY:13; // change in y
/*????*/ signed deltaY:13; // change in y
/*0106*/ signed deltaX:13; // change in x
unsigned heading:12; // heading
signed padding0066:7; // ***Placeholder
/*????*/ unsigned heading:12; // heading
/*????*/ signed padding0066:7; // ***Placeholder
/*0110*/ signed deltaZ:13; // change in z
signed padding0070:19; // ***Placeholder
/*????*/ signed padding0070:19; // ***Placeholder
/*0114*/ uint8 eyecolor1; // Player's left eye color
/*0115*/ uint8 unknown0115[11]; // Was [24]
/*0126*/ uint8 StandState; // stand state for SoF+ 0x64 for normal animation
@ -1119,8 +1119,7 @@ struct SpecialMesg_Struct
};
/*
** When somebody changes what they're wearing
** or give a pet a weapon (model changes)
** When somebody changes what they're wearing or give a pet a weapon (model changes)
** Length: 19 Bytes
*/
struct WearChange_Struct{
@ -1321,8 +1320,7 @@ struct SpawnPositionUpdate_Struct
/*0000*/ uint16 spawn_id;
/*0002*/ uint64 y_pos:19, z_pos:19, x_pos:19, padding002:7;
/*0010*/ unsigned heading:12;
signed padding010:4;
/*0012*/
/*0012*/ signed padding010:4;
};
/*
@ -2457,7 +2455,7 @@ struct Shielding_Struct {
/*
** Click Object Action Struct
** Response to client clicking on a World Container (ie, forge)
* also sent by the client when they close the container.
** also sent by the client when they close the container.
**
*/
struct ClickObjectAction_Struct {
@ -5080,3 +5078,4 @@ typedef std::list<ServerLootItem_Struct*> ItemList;
#pragma pack()
#endif

View File

@ -273,8 +273,3 @@ void EQTime::ToString(TimeOfDay_Struct *t, string &str) {
str = buf;
}

View File

@ -50,8 +50,3 @@ bool SetExtendedProfile(ExtendedProfile_Struct *to, char *old, unsigned int len)
return(false);
}

View File

@ -249,3 +249,4 @@ namespace EQEmu {
} // EQEmu
#endif

View File

@ -155,6 +155,3 @@ bool load_log_settings(const char *filename) {
return(true);
}

View File

@ -33,13 +33,7 @@
* - mhex(TYPE, data, length) - Zone only. Log a packet hex dump from a Mob:: context, prefixing it with the mob's name
* Types are defined in logtypes.h
*
*
*
*
* this is very C-ish, not C++ish, but thats how I felt like writting it
*
*
*
*/
#include <stdarg.h>
@ -175,13 +169,5 @@ extern void log_toggle(LogType t);
extern bool load_log_settings(const char *filename);
#endif /*LOGSYS_H_*/

View File

@ -37,7 +37,3 @@ void log_messageVA(LogType type, const char *fmt, va_list args) {
LogFile->writePVA(EQEMuLog::Debug, prefix_buffer, fmt, args);
}

View File

@ -16,8 +16,6 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef LOG_CATEGORY
#define LOG_CATEGORY(name)
#endif
@ -32,8 +30,6 @@
#endif
LOG_CATEGORY( CHAT )
LOG_TYPE( CHAT, SAY, DISABLED )
LOG_TYPE( CHAT, EMOTE, DISABLED )
@ -260,6 +256,3 @@ LOG_TYPE( WORLD, LAUNCH_TRACE, ENABLED )
#undef LOG_TYPE
#undef LOG_CATEGORY

View File

@ -267,5 +267,9 @@ void MD5::Transform(uint32 hash[4], const uint32 input[16]) {
MD5STEP(F4, c, d, a, b, input[ 2]+0x2ad7d2bb, 15);
MD5STEP(F4, b, c, d, a, input[ 9]+0xeb86d391, 21);
hash[0] += a; hash[1] += b; hash[2] += c; hash[3] += d;
hash[0] += a;
hash[1] += b;
hash[2] += c;
hash[3] += d;
}

View File

@ -41,3 +41,4 @@ void build_hex_line(const char *buffer, unsigned long length, unsigned long offs
void print_hex(const char *buffer, unsigned long length);
#endif

View File

@ -180,7 +180,6 @@ bool RegularOpcodeManager::ReloadOpcodes(const char *filename, bool report_error
return(ret);
}
uint16 RegularOpcodeManager::EmuToEQ(const EmuOpcode emu_op) {
//opcode is checked for validity in GetEQOpcode
uint16 res;
@ -221,7 +220,6 @@ void RegularOpcodeManager::SetOpcode(EmuOpcode emu_op, uint16 eq_op) {
s.Set(emu_op, eq_op);
}
void RegularOpcodeManager::NormalMemStrategy::Set(EmuOpcode emu_op, uint16 eq_op) {
if(uint32(emu_op) >= it->EmuOpcodeCount || eq_op >= it->EQOpcodeCount)
return;
@ -233,7 +231,6 @@ NullOpcodeManager::NullOpcodeManager()
: MutableOpcodeManager() {
}
bool NullOpcodeManager::LoadOpcodes(const char *filename, bool report_errors) {
return(true);
}
@ -254,7 +251,6 @@ EmptyOpcodeManager::EmptyOpcodeManager()
: MutableOpcodeManager() {
}
bool EmptyOpcodeManager::LoadOpcodes(const char *filename, bool report_errors) {
return(true);
}
@ -280,9 +276,3 @@ void EmptyOpcodeManager::SetOpcode(EmuOpcode emu_op, uint16 eq_op) {
eq_to_emu[eq_op] = emu_op;
}

View File

@ -162,15 +162,3 @@ protected:
#endif

View File

@ -193,3 +193,4 @@ void DumpPacketBin(const void* iData, uint32 len) {
cout << " " << hex << setw(2) << setfill('0') << (int) data[k-1] << dec;
cout << endl;
}

View File

@ -33,3 +33,4 @@ void DumpPacketBin(uint16 data);
void DumpPacketBin(uint8 data);
#endif

View File

@ -9,3 +9,4 @@ void RegisterExecutablePlatform(EQEmuExePlatform p) {
const EQEmuExePlatform& GetExecutablePlatform() {
return exe_platform;
}

View File

@ -508,9 +508,7 @@ $races_table = array(
402 => "Invader Soldier Elite",
403 => "UNKNOWN RACE",
404 => "Discord Ship",
*/
#endif

View File

@ -166,7 +166,3 @@ void RDTSC_Collector::reset() {
_count = 0;
}

View File

@ -83,5 +83,4 @@ protected:
int64 _count;
};
#endif

View File

@ -54,18 +54,15 @@ CREATE TABLE rule_values (
Commands:
#rules:
- current -> lists current set name
- switch (set name) -> change set in the DB, but dont reload
- load (set name) -> load set into this zone without changing the world
- wload (set name) -> tell world and all zones to load this rule set
- store [set name] -> store the current rules in this zone to the set (or
active if not specified)
- reset -> reset all rule values to their defaults.
- list [catname]
- set (cat) (rule) (value)
- values [catname] -> show the values of all rules in the specified category/
current -> lists current set name
switch (set name) -> change set in the DB, but dont reload
load (set name) -> load set into this zone without changing the world
wload (set name) -> tell world and all zones to load this rule set
store [set name] -> store the current rules in this zone to the set (or active if not specified)
reset -> reset all rule values to their defaults.
list [catname]
set (cat) (rule) (value)
values [catname] -> show the values of all rules in the specified category/
*/
const char *RuleManager::s_categoryNames[_CatCount+1] = {
@ -458,35 +455,3 @@ bool RuleManager::GetBoolRule(RuleManager::BoolType t) const
return (m_RuleBoolValues[t] == 1);
}

View File

@ -152,3 +152,4 @@ private:
};
#endif /*RULESYS_H_*/

View File

@ -1,4 +1,3 @@
#include "shareddb.h"
#include <iostream>
#include <cstring>

View File

@ -192,3 +192,4 @@ const uint32 Timer::SetCurrentTime()
// cerr << "Current time:" << current_time << endl;
return current_time;
}

View File

@ -110,6 +110,4 @@ typedef const char Const_char; //for perl XS
#define DLLFUNC extern "C"
#endif
#endif

View File

@ -46,4 +46,3 @@ char* strlwr(char* tmp) {
int joe = 1;
#endif /* !WIN32 */

View File

@ -32,3 +32,4 @@ char* strlwr(char* tmp);
#endif
#endif
#endif

View File

@ -48,3 +48,4 @@ extern "C" { //the perl headers dont do this for us...
#endif /*EMU_PERL_H_*/

View File

@ -94,8 +94,3 @@ void WorldConnection::Disconnect() {
tcpc.Disconnect();
}

View File

@ -250,38 +250,3 @@ void ZoneLaunch::OnTerminate(const ProcLauncher::ProcRef &ref, const ProcLaunche
SendStatus();
}

View File

@ -75,13 +75,4 @@ private:
static Timer s_startTimer;
};
#endif /*ZONELAUNCH_H_*/

View File

@ -23,3 +23,4 @@ char* Encrypt(const char* buffer, unsigned int bufferSize, unsigned int &outSize
void _HeapDeleteCharBuffer(char *buffer);
#endif

View File

@ -207,3 +207,4 @@ void ErrorLog::LogPacket(eqLogType type, const char *data, size_t size)
log_mutex->unlock();
}

View File

@ -342,3 +342,4 @@ void ServerManager::DestroyServerByName(string l_name, string s_name, WorldServe
iter++;
}
}

View File

@ -1,6 +1,4 @@
/*
EQEMu: Everquest Server Emulator
/* EQEMu: Everquest Server Emulator
Copyright (C) 2001-2008 EQEMu Development Team (http://eqemulator.net)
This program is free software; you can redistribute it and/or modify
@ -321,3 +319,4 @@ void Database::LogMerchantTransaction(QSMerchantLogTransaction_Struct* QS, uint3
}
}
}

View File

@ -1,6 +1,4 @@
/*
EQEMu: Everquest Server Emulator
/* EQEMu: Everquest Server Emulator
Copyright (C) 2001-2008 EQEMu Development Team (http://eqemulator.net)
This program is free software; you can redistribute it and/or modify
@ -61,3 +59,4 @@ private:
};
#endif

View File

@ -433,3 +433,4 @@ void LFGuildManager::SendGuildStatus(uint32 FromZoneID, uint32 FromInstanceID, c
}
}
}

View File

@ -1,6 +1,4 @@
/*
EQEMu: Everquest Server Emulator
/* EQEMu: Everquest Server Emulator
Copyright (C) 2001-2008 EQEMu Development Team (http://eqemulator.net)
This program is free software; you can redistribute it and/or modify

View File

@ -1,6 +1,4 @@
/*
EQEMu: Everquest Server Emulator
/* EQEMu: Everquest Server Emulator
Copyright (C) 2001-2008 EQEMu Development Team (http://eqemulator.net)
This program is free software; you can redistribute it and/or modify
@ -27,3 +25,4 @@ queryservconfig *queryservconfig::_chat_config = nullptr;
string queryservconfig::GetByName(const string &var_name) const {
return(EQEmuConfig::GetByName(var_name));
}

View File

@ -1,6 +1,4 @@
/*
EQEMu: Everquest Server Emulator
/* EQEMu: Everquest Server Emulator
Copyright (C) 2001-2008 EQEMu Development Team (http://eqemulator.net)
This program is free software; you can redistribute it and/or modify
@ -54,3 +52,4 @@ public:
};
#endif

View File

@ -23,3 +23,4 @@ class SharedDatabase;
void LoadSkillCaps(SharedDatabase *database);
#endif

View File

@ -40,3 +40,4 @@ void LoadSpells(SharedDatabase *database) {
database->LoadSpells(ptr, records);
mutex.Unlock();
}

View File

@ -34,6 +34,7 @@ IF(MINGW)
ENDIF(MINGW)
IF(UNIX)
IF(NOT FREEBSD)
TARGET_LINK_LIBRARIES(ucs "dl")
ENDIF(NOT FREEBSD)

View File

@ -1,6 +1,4 @@
/*
EQEMu: Everquest Server Emulator
/* EQEMu: Everquest Server Emulator
Copyright (C) 2001-2008 EQEMu Development Team (http://eqemulator.net)
This program is free software; you can redistribute it and/or modify
@ -704,3 +702,4 @@ string CapitaliseName(string inString) {
return NormalisedName;
}

View File

@ -1,6 +1,4 @@
/*
EQEMu: Everquest Server Emulator
/* EQEMu: Everquest Server Emulator
Copyright (C) 2001-2008 EQEMu Development Team (http://eqemulator.net)
This program is free software; you can redistribute it and/or modify
@ -2407,3 +2405,4 @@ int Client::GetCharID() {
return Characters[0].CharID;
}

View File

@ -1,6 +1,4 @@
/*
EQEMu: Everquest Server Emulator
/* EQEMu: Everquest Server Emulator
Copyright (C) 2001-2008 EQEMu Development Team (http://eqemulator.net)
This program is free software; you can redistribute it and/or modify
@ -32,12 +30,14 @@
#define MAX_JOINED_CHANNELS 10
enum { CommandJoin = 0, CommandLeaveAll, CommandLeave, CommandListAll, CommandList, CommandSet, CommandAnnounce, CommandSetOwner,
enum {
CommandJoin = 0, CommandLeaveAll, CommandLeave, CommandListAll, CommandList, CommandSet, CommandAnnounce, CommandSetOwner,
CommandOPList, CommandInvite, CommandGrant, CommandModerate, CommandVoice, CommandKick,
CommandPassword, CommandToggleInvites, CommandAFK, CommandUptime,
CommandGetHeaders, CommandGetBody, CommandMailTo, CommandSetMessageStatus, CommandSelectMailBox,
CommandSetMailForwarding, CommandBuddy, CommandIgnorePlayer,
CommandEndOfList };
CommandEndOfList
};
struct CommandEntry {
const char *CommandString;

View File

@ -1,6 +1,4 @@
/*
EQEMu: Everquest Server Emulator
/* EQEMu: Everquest Server Emulator
Copyright (C) 2001-2008 EQEMu Development Team (http://eqemulator.net)
This program is free software; you can redistribute it and/or modify
@ -768,3 +766,4 @@ void Database::GetFriendsAndIgnore(int CharID, vector<string> &Friends, vector<s
return;
}

View File

@ -1,6 +1,4 @@
/*
EQEMu: Everquest Server Emulator
/* EQEMu: Everquest Server Emulator
Copyright (C) 2001-2008 EQEMu Development Team (http://eqemulator.net)
This program is free software; you can redistribute it and/or modify
@ -71,3 +69,4 @@ private:
};
#endif

View File

@ -1,6 +1,4 @@
/*
EQEMu: Everquest Server Emulator
/* EQEMu: Everquest Server Emulator
Copyright (C) 2001-2008 EQEMu Development Team (http://eqemulator.net)
This program is free software; you can redistribute it and/or modify

View File

@ -1,6 +1,4 @@
/*
EQEMu: Everquest Server Emulator
/* EQEMu: Everquest Server Emulator
Copyright (C) 2001-2008 EQEMu Development Team (http://eqemulator.net)
This program is free software; you can redistribute it and/or modify
@ -27,3 +25,4 @@ ucsconfig *ucsconfig::_chat_config = nullptr;
string ucsconfig::GetByName(const string &var_name) const {
return(EQEmuConfig::GetByName(var_name));
}

View File

@ -1,6 +1,4 @@
/*
EQEMu: Everquest Server Emulator
/* EQEMu: Everquest Server Emulator
Copyright (C) 2001-2008 EQEMu Development Team (http://eqemulator.net)
This program is free software; you can redistribute it and/or modify
@ -54,3 +52,4 @@ public:
};
#endif

View File

@ -9,12 +9,8 @@
#include <netinet/in.h>
#endif
#ifndef nullptr
#define nullptr 0
#endif
typedef unsigned long uint32;
typedef long int32;
typedef unsigned int uint32;
typedef int int32;
typedef unsigned short uint16;
typedef short int16;

View File

@ -1,8 +1,8 @@
#ifndef __EQCLIENT_TYPES_H_
#define __EQCLIENT_TYPES_H_
typedef unsigned long uint32;
typedef long int32;
typedef unsigned int uint32;
typedef int int32;
typedef unsigned short uint16;
typedef short int16;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 673 B

After

Width:  |  Height:  |  Size: 665 B

View File

@ -436,3 +436,4 @@ void Adventure::MoveCorpsesToGraveyard()
c_iter++;
}
}

View File

@ -80,6 +80,7 @@ IF(MINGW)
ENDIF(MINGW)
IF(UNIX)
IF(NOT FREEBSD)
TARGET_LINK_LIBRARIES(world "dl")
ENDIF(NOT FREEBSD)

View File

@ -357,28 +357,3 @@ map<string,string> EQLConfig::GetZoneDetails(Const_char *zone_ref) {
return(res);
}

View File

@ -72,11 +72,5 @@ protected:
map<string, LauncherZone> m_zones; //static zones.
};
#endif /*EQLCONFIG_H_*/

View File

@ -55,9 +55,6 @@ extern LoginServerList loginserverlist;
extern LauncherList launcher_list;
extern volatile bool RunLoops;
EQW EQW::s_EQW;
//IO Capture routine
@ -469,18 +466,3 @@ void EQW::WorldShutDown(uint32 time, uint32 interval) {
#endif //EMBPERL

View File

@ -336,5 +336,3 @@ ThreadReturnType EQWHTTPServer::ThreadProc(void *data) {
THREAD_RETURN(nullptr);
}*/

View File

@ -96,6 +96,3 @@ protected:
#endif

View File

@ -226,10 +226,10 @@ bool EQWParser::eval_file(const char * packagename, const char * filename, std::
bool EQWParser::dosub(const char * subname, const std::vector<std::string> &args, string &error, int mode) {
bool err = false;
dSP; /* initialize stack pointer */
ENTER; /* everything created after here */
SAVETMPS; /* ...is a temporary variable. */
PUSHMARK(SP); /* remember the stack pointer */
dSP; // initialize stack pointer
ENTER; // everything created after here
SAVETMPS; // ...is a temporary variable
PUSHMARK(SP); // remember the stack pointer
if(args.size() > 0)
{
for(std::vector<std::string>::const_iterator i = args.begin(); i != args.end(); ++i)
@ -237,14 +237,14 @@ bool EQWParser::dosub(const char * subname, const std::vector<std::string> &args
XPUSHs(sv_2mortal(newSVpv(i->c_str(), i->length())));
}
}
PUTBACK; /* make local stack pointer global */
PUTBACK; // make local stack pointer global
call_pv(subname, mode); /*eval our code*/
SPAGAIN; /* refresh stack pointer */
SPAGAIN; // refresh stack pointer
if(SvTRUE(ERRSV)) {
err = true;
}
FREETMPS; /* free temp values */
LEAVE; /* ...and the XPUSHed "mortal" args.*/
FREETMPS; // free temp values
LEAVE; // ...and the XPUSHed "mortal" args.
if(err) {
error = "Perl runtime error: ";
@ -260,7 +260,6 @@ bool EQWParser::eval(const char * code, string &error) {
return(dosub("my_eval", arg, error, G_SCALAR|G_DISCARD|G_EVAL|G_KEEPERR));
}
void EQWParser::EQW_eval(const char *pkg, const char *code) {
char namebuf[64];
@ -330,7 +329,6 @@ class MerchantEditor extends BaseEditor {
}
}
function dispatch() {
my $dispatcher = $this->_dispatchers[$action];
$body = new Template($dispatcher["template"]);
@ -348,5 +346,5 @@ function dispatch() {
*/
#endif //EMBPERL

View File

@ -68,12 +68,5 @@ protected:
};
#endif //EMBPERL
#endif /*EQWPARSER_H_*/

View File

@ -80,14 +80,3 @@ void HTTPRequest::redirect(Const_char *URL) {
SetResponseCode("302");
}

View File

@ -37,7 +37,6 @@ public:
//BEGIN PERL EXPORT
Const_char * get(Const_char *name, Const_char *default_value = "") const;
int getInt(Const_char *name, int default_value = 0) const;
float getFloat(Const_char *name, float default_value = 0.0) const;
@ -57,8 +56,5 @@ protected:
std::map<std::string, std::string> m_values;
};
#endif /*HTTPREQUEST_H_*/

View File

@ -74,8 +74,5 @@ protected:
std::map<std::string, ZoneState> m_states;
};
#endif /*LAUNCHERLINK_H_*/

View File

@ -194,29 +194,3 @@ void LauncherList::Remove(const char *name) {
}
}

View File

@ -54,14 +54,5 @@ protected:
int nextID;
};
#endif /*LAUNCHERLIST_H_*/

View File

@ -198,7 +198,6 @@ DumpPacket(pack->pBuffer, pack->size);
break;
}
}
delete pack;
}

View File

@ -2034,3 +2034,4 @@ void Client::SetRacialLanguages( PlayerProfile_Struct *pp )
}
}
}

View File

@ -111,7 +111,6 @@ private:
EQStreamInterface* const eqs;
};
bool CheckCharCreateInfoSoF(CharCreate_Struct *cc);
bool CheckCharCreateInfoTitanium(CharCreate_Struct *cc);

View File

@ -295,32 +295,3 @@ bool ClientListEntry::CheckAuth(uint32 id, const char* iKey, uint32 ip) {
return false;
}

View File

@ -122,5 +122,5 @@ private:
char pLFGComments[64];
};
#endif /*CLIENTENTRY_H_*/

Some files were not shown because too many files have changed in this diff Show More