Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/_wsproto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include "always.h"

#include "_WSProto.h"
#include "_wsproto.h"


WinsockInterfaceClass *PacketTransport = 0; //The object for interfacing with Winsock
6 changes: 3 additions & 3 deletions code/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,19 +204,19 @@ struct ChooseCampaignStruct {
** Enable the set of limited cheat key options.
*/
#ifdef _DEBUG
#define PARM_PLAYTEST 0xF7DDC227 // "PLAYTEST"
#define PARM_PLAYTEST static_cast<int>(0xF7DDC227u) // "PLAYTEST"
#endif

/*
** Enable the full set of cheat key options.
*/
#ifdef _DEBUG
#ifndef PARM_PLAYTEST
#define PARM_PLAYTEST 0xF7DDC227 // "PLAYTEST"
#define PARM_PLAYTEST static_cast<int>(0xF7DDC227u) // "PLAYTEST"
#endif
#endif

#define PARM_INSTALL 0xD95C68A2 // "FROMINSTALL"
#define PARM_INSTALL static_cast<int>(0xD95C68A2u) // "FROMINSTALL"


/****************************************
Expand Down
8 changes: 4 additions & 4 deletions code/int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "mpmath.h"


int bignum::Error = 0;
bool bignum::Carry = false;
bool bignum::Borrow = false;
bignum bignum::Remainder;
template<> int Int<MAX_UNIT_PRECISION>::Error = 0;
template<> bool Int<MAX_UNIT_PRECISION>::Carry = false;
template<> bool Int<MAX_UNIT_PRECISION>::Borrow = false;
template<> Int<MAX_UNIT_PRECISION> Int<MAX_UNIT_PRECISION>::Remainder{};
2 changes: 1 addition & 1 deletion code/int.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class Int {

// Friend helper functions.
template<class T>
friend T Generate_Prime(Straw & rng, int pbits, T const * = 0);
friend T Generate_Prime(Straw & rng, int pbits, T const *);
template<class T>
friend T Gcd(const Int<PRECISION> & a, const T & b);
// friend bool NextPrime(Int<PRECISION> & p, const Int<PRECISION> & max, bool blumInt=false);
Expand Down
1 change: 1 addition & 0 deletions code/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

#include "control.h"
#include "dialog.h"
#include "font.h"
#include "shapebtn.h"
#include "slider.h"
#include "vector.h"
Expand Down
12 changes: 6 additions & 6 deletions code/lzo1x_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static int do_compress(const lzo_byte * in, lzo_uint in_len,
lzo_voidp wrkmem )
{

register const lzo_byte *ip;
const lzo_byte *ip;
lzo_uint dv;
lzo_byte *op;
const lzo_byte * const in_end = in + in_len;
Expand All @@ -139,7 +139,7 @@ static int do_compress(const lzo_byte * in, lzo_uint in_len,
DVAL_NEXT(dv,ip); UPDATE_D(dict,cycle,dv,ip); ip++;

for (;;) {
register const lzo_byte *m_pos;
const lzo_byte *m_pos;
lzo_uint m_len;
lzo_ptrdiff_t m_off;
lzo_uint lit;
Expand Down Expand Up @@ -197,7 +197,7 @@ static int do_compress(const lzo_byte * in, lzo_uint in_len,

/* store current literal run */
if (lit > 0) {
register lzo_uint t = lit;
lzo_uint t = lit;

if (t <= 3) {
assert(op - 2 > out);
Expand All @@ -206,7 +206,7 @@ static int do_compress(const lzo_byte * in, lzo_uint in_len,
if (t <= 18) {
*op++ = LZO_BYTE(t - 3);
} else {
register lzo_uint tt = t - 18;
lzo_uint tt = t - 18;

*op++ = 0;
while (tt > 255) {
Expand Down Expand Up @@ -304,7 +304,7 @@ static int do_compress(const lzo_byte * in, lzo_uint in_len,

/* store final literal run */
if (in_end - ii > 0) {
register lzo_uint t = in_end - ii;
lzo_uint t = in_end - ii;

if (op == out && t <= 238) {
*op++ = LZO_BYTE(17 + t);
Expand All @@ -315,7 +315,7 @@ static int do_compress(const lzo_byte * in, lzo_uint in_len,
if (t <= 18) {
*op++ = LZO_BYTE(t - 3);
} else {
register lzo_uint tt = t - 18;
lzo_uint tt = t - 18;

*op++ = 0;
while (tt > 255) {
Expand Down
8 changes: 4 additions & 4 deletions code/lzo1x_d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ int lzo1x_decompress ( const lzo_byte * in, lzo_uint in_len,
lzo_byte * out, lzo_uint * out_len,
lzo_voidp )
{
register lzo_byte *op;
register const lzo_byte *ip;
register lzo_uint t;
register const lzo_byte *m_pos;
lzo_byte *op;
const lzo_byte *ip;
lzo_uint t;
const lzo_byte *m_pos;
const lzo_byte * const ip_end = in + in_len;

*out_len = 0;
Expand Down
2 changes: 1 addition & 1 deletion code/scenario.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ void Clear_Scenario(void)

Map.ZoneConnections.Clear();

TagClass::Init();
TagClass::Delete_All();

for (index = 0; index < ARRAY_SIZE(Scen->GlobalFlags); index++) {
Scen->Set_Global_To(index, false);
Expand Down
2 changes: 1 addition & 1 deletion code/tag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ void TagClass::Set_Position(Cell cell)
/// This routine is called when a scenario is torn down so that no tag from the previous
/// mission survives into the next one.
/// </summary>
void TagClass::Init(void)
void TagClass::Delete_All(void)
{
while (Tags.Count() > 0) {
delete Tags[0];
Expand Down
2 changes: 1 addition & 1 deletion code/tag.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class TagClass : public AbstractClass
static void All_Timer_Global_Reset(int global);
static void All_Timer_Local_Reset(int local);

static void Init(void);
static void Delete_All(void);

void Link(TriggerClass *trigger);
bool Unlink(TriggerClass *trigger);
Expand Down
6 changes: 3 additions & 3 deletions code/vqalib/unvq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ void __cdecl UnVQ2_C0_4x4_TRANS(unsigned char * codebook, unsigned char * pointe
{
uint8_t * dst = (uint8_t *)buffer;
uint8_t * row_base = (uint8_t *)buffer;
register uint16_t * src = (uint16_t *)pointers;
uint16_t * src = (uint16_t *)pointers;
uint32_t blocks = 0;
uint32_t total = blocksperrow * numrows;

Expand Down Expand Up @@ -1222,7 +1222,7 @@ void __cdecl UnVQ2_C0_4x4_KEY(unsigned char * codebook, unsigned char * pointers
{
uint8_t * dst = (uint8_t *)buffer;
uint8_t * row_base = (uint8_t *)buffer;
register uint16_t * src = (uint16_t *)pointers;
uint16_t * src = (uint16_t *)pointers;
uint32_t blocks = 0;
uint32_t total = numrows * blocksperrow;

Expand Down Expand Up @@ -2010,7 +2010,7 @@ void __cdecl UnVQ2_C0_4x2_KEY(unsigned char * codebook, unsigned char * pointers
{
uint8_t * dst = (uint8_t *)buffer;
uint8_t * row_base = (uint8_t *)buffer;
register uint16_t * src = (uint16_t *)pointers;
uint16_t * src = (uint16_t *)pointers;
uint32_t blocks = 0;
uint32_t total = numrows * blocksperrow;

Expand Down
8 changes: 4 additions & 4 deletions code/vqalib/vqapalette.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
extern "C" {
#endif

void cdecl SetPalette(unsigned char *palette,long numbytes,unsigned long slowpal);
void cdecl ReadPalette(void *palette);
void cdecl SetDAC(long color, long red, long green, long blue);
void cdecl TranslatePalette(void *pal24, void *pal15, long numbytes);
void __cdecl SetPalette(unsigned char *palette,long numbytes,unsigned long slowpal);
void __cdecl ReadPalette(void *palette);
void __cdecl SetDAC(long color, long red, long green, long blue);
void __cdecl TranslatePalette(void *pal24, void *pal15, long numbytes);

#ifdef __cplusplus
}
Expand Down
2 changes: 1 addition & 1 deletion code/wsproto.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#pragma once

#include "_WSProto.h"
#include "_wsproto.h"
#include "ipxaddr.h"
#include "vector.h"

Expand Down
Loading