VWR-24487 make PREHASH variables char const* const
parent
cf4d929888
commit
2c584790d0
|
|
@ -206,6 +206,7 @@ Boroondas Gupte
|
|||
VWR-20583
|
||||
VWR-20891
|
||||
VWR-23455
|
||||
VWR-24487
|
||||
WEB-262
|
||||
Bulli Schumann
|
||||
CT-218
|
||||
|
|
|
|||
|
|
@ -2441,12 +2441,12 @@ void dump_prehash_files()
|
|||
" * Generated from message template version number %.3f\n"
|
||||
" */\n",
|
||||
gMessageSystem->mMessageFileVersionNumber);
|
||||
fprintf(fp, "\n\nextern F32 gPrehashVersionNumber;\n\n");
|
||||
fprintf(fp, "\n\nextern F32 const gPrehashVersionNumber;\n\n");
|
||||
for (i = 0; i < MESSAGE_NUMBER_OF_HASH_BUCKETS; i++)
|
||||
{
|
||||
if (!LLMessageStringTable::getInstance()->mEmpty[i] && LLMessageStringTable::getInstance()->mString[i][0] != '.')
|
||||
{
|
||||
fprintf(fp, "extern char * _PREHASH_%s;\n", LLMessageStringTable::getInstance()->mString[i]);
|
||||
fprintf(fp, "extern char const* const _PREHASH_%s;\n", LLMessageStringTable::getInstance()->mString[i]);
|
||||
}
|
||||
}
|
||||
fprintf(fp, "\n\n#endif\n");
|
||||
|
|
@ -2471,12 +2471,12 @@ void dump_prehash_files()
|
|||
gMessageSystem->mMessageFileVersionNumber);
|
||||
fprintf(fp, "#include \"linden_common.h\"\n");
|
||||
fprintf(fp, "#include \"message.h\"\n\n");
|
||||
fprintf(fp, "\n\nF32 gPrehashVersionNumber = %.3ff;\n\n", gMessageSystem->mMessageFileVersionNumber);
|
||||
fprintf(fp, "\n\nF32 const gPrehashVersionNumber = %.3ff;\n\n", gMessageSystem->mMessageFileVersionNumber);
|
||||
for (i = 0; i < MESSAGE_NUMBER_OF_HASH_BUCKETS; i++)
|
||||
{
|
||||
if (!LLMessageStringTable::getInstance()->mEmpty[i] && LLMessageStringTable::getInstance()->mString[i][0] != '.')
|
||||
{
|
||||
fprintf(fp, "char * _PREHASH_%s = LLMessageStringTable::getInstance()->getString(\"%s\");\n", LLMessageStringTable::getInstance()->mString[i], LLMessageStringTable::getInstance()->mString[i]);
|
||||
fprintf(fp, "char const* const _PREHASH_%s = LLMessageStringTable::getInstance()->getString(\"%s\");\n", LLMessageStringTable::getInstance()->mString[i], LLMessageStringTable::getInstance()->mString[i]);
|
||||
}
|
||||
}
|
||||
fclose(fp);
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -1216,12 +1216,12 @@ BOOL LLPrimitive::packTEMessage(LLDataPacker &dp) const
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
S32 LLPrimitive::unpackTEMessage(LLMessageSystem *mesgsys, char *block_name)
|
||||
S32 LLPrimitive::unpackTEMessage(LLMessageSystem* mesgsys, char const* block_name)
|
||||
{
|
||||
return(unpackTEMessage(mesgsys,block_name,-1));
|
||||
}
|
||||
|
||||
S32 LLPrimitive::unpackTEMessage(LLMessageSystem *mesgsys, char *block_name, const S32 block_num)
|
||||
S32 LLPrimitive::unpackTEMessage(LLMessageSystem* mesgsys, char const* block_name, const S32 block_num)
|
||||
{
|
||||
// use a negative block_num to indicate a single-block read (a non-variable block)
|
||||
S32 retval = 0;
|
||||
|
|
|
|||
|
|
@ -358,8 +358,8 @@ public:
|
|||
S32 unpackTEField(U8 *cur_ptr, U8 *buffer_end, U8 *data_ptr, U8 data_size, U8 face_count, EMsgVariableType type);
|
||||
BOOL packTEMessage(LLMessageSystem *mesgsys) const;
|
||||
BOOL packTEMessage(LLDataPacker &dp) const;
|
||||
S32 unpackTEMessage(LLMessageSystem *mesgsys, char *block_name);
|
||||
S32 unpackTEMessage(LLMessageSystem *mesgsys, char *block_name, const S32 block_num); // Variable num of blocks
|
||||
S32 unpackTEMessage(LLMessageSystem* mesgsys, char const* block_name);
|
||||
S32 unpackTEMessage(LLMessageSystem* mesgsys, char const* block_name, const S32 block_num); // Variable num of blocks
|
||||
BOOL unpackTEMessage(LLDataPacker &dp);
|
||||
|
||||
#ifdef CHECK_FOR_FINITE
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ bool LLVolumeMessage::packProfileParams(
|
|||
bool LLVolumeMessage::unpackProfileParams(
|
||||
LLProfileParams* params,
|
||||
LLMessageSystem* mesgsys,
|
||||
char* block_name,
|
||||
char const* block_name,
|
||||
S32 block_num)
|
||||
{
|
||||
bool ok = true;
|
||||
|
|
@ -322,7 +322,7 @@ bool LLVolumeMessage::packPathParams(
|
|||
bool LLVolumeMessage::unpackPathParams(
|
||||
LLPathParams* params,
|
||||
LLMessageSystem* mesgsys,
|
||||
char* block_name,
|
||||
char const* block_name,
|
||||
S32 block_num)
|
||||
{
|
||||
U8 curve;
|
||||
|
|
@ -522,7 +522,7 @@ bool LLVolumeMessage::packVolumeParams(const LLVolumeParams* params, LLDataPacke
|
|||
bool LLVolumeMessage::unpackVolumeParams(
|
||||
LLVolumeParams* params,
|
||||
LLMessageSystem* mesgsys,
|
||||
char* block_name,
|
||||
char const* block_name,
|
||||
S32 block_num)
|
||||
{
|
||||
bool ok = true;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ protected:
|
|||
static bool unpackProfileParams(
|
||||
LLProfileParams* params,
|
||||
LLMessageSystem* mesgsys,
|
||||
char* block_name,
|
||||
char const* block_name,
|
||||
S32 block_num = 0);
|
||||
static bool unpackProfileParams(LLProfileParams* params, LLDataPacker& dp);
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ protected:
|
|||
static bool unpackPathParams(
|
||||
LLPathParams* params,
|
||||
LLMessageSystem* mesgsys,
|
||||
char* block_name,
|
||||
char const* block_name,
|
||||
S32 block_num = 0);
|
||||
static bool unpackPathParams(LLPathParams* params, LLDataPacker& dp);
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ public:
|
|||
static bool unpackVolumeParams(
|
||||
LLVolumeParams* params,
|
||||
LLMessageSystem* mesgsys,
|
||||
char* block_name,
|
||||
char const* block_name,
|
||||
S32 block_num = 0);
|
||||
static bool unpackVolumeParams(LLVolumeParams* params, LLDataPacker &dp);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -193,8 +193,8 @@ LLFontGL* LLFontGL::getFontDefault()
|
|||
return NULL;
|
||||
}
|
||||
|
||||
char* _PREHASH_AgentData = "AgentData";
|
||||
char* _PREHASH_AgentID = "AgentID";
|
||||
char const* const _PREHASH_AgentData = 0; // never dereferenced during this test
|
||||
char const* const _PREHASH_AgentID = 0; // never dereferenced during this test
|
||||
|
||||
LLHost LLHost::invalid(INVALID_PORT,INVALID_HOST_IP_ADDRESS);
|
||||
|
||||
|
|
|
|||
|
|
@ -61,8 +61,8 @@ void LLMessageSystem::addUUIDFast(char const *,LLUUID const &) { }
|
|||
void LLMessageSystem::nextBlockFast(char const *) { }
|
||||
void LLMessageSystem::newMessage(char const *) { }
|
||||
LLMessageSystem * gMessageSystem;
|
||||
char * _PREHASH_AgentID;
|
||||
char * _PREHASH_AgentData;
|
||||
char const* const _PREHASH_AgentID = 0; // never dereferenced during this test
|
||||
char const* const _PREHASH_AgentData = 0; // never dereferenced during this test
|
||||
LLAgent gAgent;
|
||||
LLAgent::LLAgent() : mAgentAccess(s_saved_settings) { }
|
||||
LLAgent::~LLAgent() { }
|
||||
|
|
|
|||
Loading…
Reference in New Issue