Holy fucking shit I don't want to work on this. Sibly, you son of a ...
This commit is contained in:
+191
-192
@@ -10,183 +10,184 @@ using namespace std;
|
||||
|
||||
#ifdef MEMDEBUG
|
||||
|
||||
struct Mem{
|
||||
Mem *next,*prev;
|
||||
struct Mem {
|
||||
Mem *next, *prev;
|
||||
const char *file;
|
||||
int line,size,tag;
|
||||
int line, size, tag;
|
||||
};
|
||||
|
||||
static bool track;
|
||||
|
||||
static Mem head,tail;
|
||||
static Mem x_head,x_tail;
|
||||
static Mem head, tail;
|
||||
static Mem x_head, x_tail;
|
||||
|
||||
static void remove( Mem *m ){
|
||||
m->next->prev=m->prev;
|
||||
m->prev->next=m->next;
|
||||
static void remove(Mem *m) {
|
||||
m->next->prev = m->prev;
|
||||
m->prev->next = m->next;
|
||||
}
|
||||
|
||||
static void insert( Mem *m,Mem *next ){
|
||||
m->next=next;
|
||||
m->prev=next->prev;
|
||||
next->prev->next=m;
|
||||
next->prev=m;
|
||||
static void insert(Mem *m, Mem *next) {
|
||||
m->next = next;
|
||||
m->prev = next->prev;
|
||||
next->prev->next = m;
|
||||
next->prev = m;
|
||||
}
|
||||
|
||||
static void init(){
|
||||
if( head.next ) return;
|
||||
head.next=head.prev=&tail;head.tag='HEAD';
|
||||
tail.next=tail.prev=&head;tail.tag='TAIL';
|
||||
x_head.next=x_head.prev=&x_tail;x_head.tag='HEAD';
|
||||
x_tail.next=x_tail.prev=&x_head;x_tail.tag='TAIL';
|
||||
static void init() {
|
||||
if (head.next) return;
|
||||
head.next = head.prev = &tail; head.tag = 'HEAD';
|
||||
tail.next = tail.prev = &head; tail.tag = 'TAIL';
|
||||
x_head.next = x_head.prev = &x_tail; x_head.tag = 'HEAD';
|
||||
x_tail.next = x_tail.prev = &x_head; x_tail.tag = 'TAIL';
|
||||
}
|
||||
|
||||
static void check( Mem *m ){
|
||||
if( m->tag!='DNEW' ){
|
||||
MessageBox( GetDesktopWindow(),"mem_check: pre_tag!='DNEW'","Memory error",MB_OK|MB_ICONWARNING );
|
||||
if( m->tag=='NDWE' ){
|
||||
string t="Probable double delete";
|
||||
t+="- d_new file: "+string(m->file)+" line:"+itoa(m->line);
|
||||
MessageBox( GetDesktopWindow(),t.c_str(),"Memory error",MB_OK|MB_ICONWARNING );
|
||||
static void check(Mem *m) {
|
||||
if (m->tag != 'DNEW') {
|
||||
MessageBox(GetDesktopWindow(), "mem_check: pre_tag!='DNEW'", "Memory error", MB_OK | MB_ICONWARNING);
|
||||
if (m->tag == 'NDWE') {
|
||||
string t = "Probable double delete";
|
||||
t += "- d_new file: " + string(m->file) + " line:" + itoa(m->line);
|
||||
MessageBox(GetDesktopWindow(), t.c_str(), "Memory error", MB_OK | MB_ICONWARNING);
|
||||
}
|
||||
ExitProcess( 0 );
|
||||
ExitProcess(0);
|
||||
}
|
||||
int *t=(int*)( (char*)(m+1)+m->size );
|
||||
if( *t!='dnew' ){
|
||||
MessageBox( GetDesktopWindow(),"mem_check: post_tag!='dnew'","Memory error",MB_OK|MB_ICONWARNING );
|
||||
string t="Probable memory overwrite - d_new file: "+string(m->file)+" line:"+itoa(m->line);
|
||||
MessageBox( GetDesktopWindow(),t.c_str(),"Memory error",MB_OK|MB_ICONWARNING );
|
||||
ExitProcess( 0 );
|
||||
int *t = (int*)((char*)(m + 1) + m->size);
|
||||
if (*t != 'dnew') {
|
||||
MessageBox(GetDesktopWindow(), "mem_check: post_tag!='dnew'", "Memory error", MB_OK | MB_ICONWARNING);
|
||||
string t = "Probable memory overwrite - d_new file: " + string(m->file) + " line:" + itoa(m->line);
|
||||
MessageBox(GetDesktopWindow(), t.c_str(), "Memory error", MB_OK | MB_ICONWARNING);
|
||||
ExitProcess(0);
|
||||
}
|
||||
}
|
||||
|
||||
static void *op_new( size_t size,const char *file="<unknown>",int line=0 ){
|
||||
static void *op_new(size_t size, const char *file = "<unknown>", int line = 0) {
|
||||
init();
|
||||
Mem *m=(Mem*)malloc( sizeof(Mem)+size+sizeof(int) );
|
||||
memset( m+1,0xcc,size );
|
||||
m->file=file;m->line=line;m->size=size;m->tag='DNEW';
|
||||
int *t=(int*)( (char*)(m+1)+size );*t='dnew';
|
||||
if( track ) insert( m,head.next );
|
||||
else insert( m,x_head.next );
|
||||
return m+1;
|
||||
Mem *m = (Mem*)malloc(sizeof(Mem) + size + sizeof(int));
|
||||
memset(m + 1, 0xcc, size);
|
||||
m->file = file; m->line = line; m->size = size; m->tag = 'DNEW';
|
||||
int *t = (int*)((char*)(m + 1) + size); *t = 'dnew';
|
||||
if (track) insert(m, head.next);
|
||||
else insert(m, x_head.next);
|
||||
return m + 1;
|
||||
}
|
||||
|
||||
static void op_delete( void *q ){
|
||||
static void op_delete(void *q) {
|
||||
init();
|
||||
if( !q ) return;
|
||||
Mem *m=(Mem*)q-1;
|
||||
check( m );
|
||||
remove( m );
|
||||
m->tag='NDWE';
|
||||
*(int*)( (char*)(m+1)+m->size )='ndwe';
|
||||
free( m );
|
||||
if (!q) return;
|
||||
Mem *m = (Mem*)q - 1;
|
||||
check(m);
|
||||
remove(m);
|
||||
m->tag = 'NDWE';
|
||||
*(int*)((char*)(m + 1) + m->size) = 'ndwe';
|
||||
free(m);
|
||||
}
|
||||
|
||||
void trackmem( bool enable ){
|
||||
void trackmem(bool enable) {
|
||||
init();
|
||||
if( track==enable ) return;
|
||||
track=enable;
|
||||
if (track == enable) return;
|
||||
track = enable;
|
||||
Mem *m;
|
||||
while( (m=head.next)!=&tail ){
|
||||
remove( m );insert( m,x_head.next );
|
||||
while ((m = head.next) != &tail) {
|
||||
remove(m); insert(m, x_head.next);
|
||||
}
|
||||
}
|
||||
|
||||
void checkmem( ostream &out ){
|
||||
void checkmem(ostream &out) {
|
||||
init();
|
||||
Mem *m,*next;
|
||||
int sum=0,usum=0,xsum=0;
|
||||
for( m=head.next;m!=&tail;m=next ){
|
||||
check( m );
|
||||
next=m->next;
|
||||
if( m->line ){
|
||||
out<<m->file<<" line:"<<m->line<<" "<<m->size<<" bytes"<<endl;
|
||||
sum+=m->size;
|
||||
}else{
|
||||
usum+=m->size;
|
||||
Mem *m, *next;
|
||||
int sum = 0, usum = 0, xsum = 0;
|
||||
for (m = head.next; m != &tail; m = next) {
|
||||
check(m);
|
||||
next = m->next;
|
||||
if (m->line) {
|
||||
out << m->file << " line:" << m->line << " " << m->size << " bytes" << endl;
|
||||
sum += m->size;
|
||||
} else {
|
||||
usum += m->size;
|
||||
}
|
||||
}
|
||||
for( m=x_head.next;m!=&x_tail;m=m->next ){
|
||||
check( m );
|
||||
xsum+=m->size;
|
||||
for (m = x_head.next; m != &x_tail; m = m->next) {
|
||||
check(m);
|
||||
xsum += m->size;
|
||||
}
|
||||
out<<"Tracked blitz mem in use:"<<sum<<endl;
|
||||
out<<"Tracked other mem in use:"<<usum<<endl;
|
||||
out<<"Untracked mem in use:"<<xsum<<endl;
|
||||
out<<"Total mem in use:"<<(sum+usum+xsum)<<endl;
|
||||
out << "Tracked blitz mem in use:" << sum << endl;
|
||||
out << "Tracked other mem in use:" << usum << endl;
|
||||
out << "Untracked mem in use:" << xsum << endl;
|
||||
out << "Total mem in use:" << (sum + usum + xsum) << endl;
|
||||
}
|
||||
|
||||
void * _cdecl operator new( size_t size ){ return op_new( size ); }
|
||||
void * _cdecl operator new[]( size_t size ){ return op_new( size ); }
|
||||
void * _cdecl operator new( size_t size,const char *file,int line ){ return op_new( size,file,line ); }
|
||||
void * _cdecl operator new[]( size_t size,const char *file,int line ){ return op_new( size,file,line ); }
|
||||
void _cdecl operator delete( void *q ){ op_delete( q ); }
|
||||
void _cdecl operator delete[]( void *q ){ op_delete( q ); }
|
||||
void _cdecl operator delete( void *q,const char *file,int line ){ op_delete( q ); }
|
||||
void _cdecl operator delete[]( void *q,const char *file,int line ){ op_delete( q ); }
|
||||
void * _cdecl operator new(size_t size) { return op_new(size); }
|
||||
void * _cdecl operator new[](size_t size) { return op_new(size); }
|
||||
void * _cdecl operator new(size_t size, const char *file, int line) { return op_new(size, file, line); }
|
||||
void * _cdecl operator new[](size_t size, const char *file, int line) { return op_new(size, file, line); }
|
||||
void _cdecl operator delete(void *q) { op_delete(q); }
|
||||
void _cdecl operator delete[](void *q) { op_delete(q); }
|
||||
void _cdecl operator delete(void *q, const char *file, int line) { op_delete(q); }
|
||||
void _cdecl operator delete[](void *q, const char *file, int line) { op_delete(q); }
|
||||
|
||||
#else
|
||||
|
||||
void trackmem( bool enable ){
|
||||
void trackmem(bool enable) {
|
||||
}
|
||||
|
||||
void checkmem( ostream &out ){
|
||||
void checkmem(ostream &out) {
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
int atoi( const string &s ){
|
||||
return atoi( s.c_str() );
|
||||
int atoi(const string &s) {
|
||||
return atoi(s.c_str());
|
||||
}
|
||||
|
||||
double atof( const string &s ){
|
||||
return atof( s.c_str() );
|
||||
double atof(const string &s) {
|
||||
return atof(s.c_str());
|
||||
}
|
||||
|
||||
string itoa( int n ){
|
||||
char buff[32];itoa( n,buff,10 );
|
||||
return string( buff );
|
||||
string itoa(int n) {
|
||||
char buff[32];
|
||||
_itoa(n, buff, 10);
|
||||
return string(buff);
|
||||
}
|
||||
|
||||
static int _finite( double n ){ // definition: exponent anything but 2047.
|
||||
|
||||
int e; // 11 bit exponent
|
||||
const int eMax = 2047; // 0x7ff, all bits = 1
|
||||
|
||||
int *pn = (int *) &n;
|
||||
|
||||
e = *++pn; // Intel order!
|
||||
e = ( e >> 20 ) & eMax;
|
||||
|
||||
return e != eMax;
|
||||
}
|
||||
|
||||
static int _isnan( double n ){ // definition: exponent 2047, nonzero fraction.
|
||||
|
||||
int e; // 11 bit exponent
|
||||
const int eMax = 2047; // 0x7ff, all bits = 1
|
||||
|
||||
int *pn = (int *) &n;
|
||||
|
||||
e = *++pn; // Intel order!
|
||||
e = ( e >> 20 ) & eMax;
|
||||
|
||||
if ( e != 2047 ) return 0; // almost always return here
|
||||
|
||||
int fHi, fLo; // 52 bit fraction
|
||||
|
||||
fHi = ( *pn ) & 0xfffff; // first 20 bits
|
||||
fLo = *--pn; // last 32 bits
|
||||
|
||||
return ( fHi | fLo ) != 0; // returns 0,1 not just 0,nonzero
|
||||
}
|
||||
//static int _finite(double n) { // definition: exponent anything but 2047.
|
||||
//
|
||||
// int e; // 11 bit exponent
|
||||
// const int eMax = 2047; // 0x7ff, all bits = 1
|
||||
//
|
||||
// int *pn = (int *)&n;
|
||||
//
|
||||
// e = *++pn; // Intel order!
|
||||
// e = (e >> 20) & eMax;
|
||||
//
|
||||
// return e != eMax;
|
||||
//}
|
||||
//
|
||||
//static int _isnan(double n) { // definition: exponent 2047, nonzero fraction.
|
||||
//
|
||||
// int e; // 11 bit exponent
|
||||
// const int eMax = 2047; // 0x7ff, all bits = 1
|
||||
//
|
||||
// int *pn = (int *)&n;
|
||||
//
|
||||
// e = *++pn; // Intel order!
|
||||
// e = (e >> 20) & eMax;
|
||||
//
|
||||
// if (e != 2047) return 0; // almost always return here
|
||||
//
|
||||
// int fHi, fLo; // 52 bit fraction
|
||||
//
|
||||
// fHi = (*pn) & 0xfffff; // first 20 bits
|
||||
// fLo = *--pn; // last 32 bits
|
||||
//
|
||||
// return (fHi | fLo) != 0; // returns 0,1 not just 0,nonzero
|
||||
//}
|
||||
|
||||
/////////////
|
||||
//By FLOYD!//
|
||||
/////////////
|
||||
string ftoa( float n ){
|
||||
string ftoa(float n) {
|
||||
|
||||
static const int digits=6;
|
||||
static const int digits = 6;
|
||||
|
||||
int eNeg = -4, ePos = 8; // limits for e notation.
|
||||
|
||||
@@ -194,54 +195,52 @@ string ftoa( float n ){
|
||||
string t;
|
||||
int dec, sign;
|
||||
|
||||
if ( _finite( n ) ){
|
||||
if (_finite(n)) {
|
||||
|
||||
// if ( digits < 1 ) digits = 1; // less than one digit is nonsense
|
||||
// if ( digits > 8 ) digits = 8; // practical maximum for float
|
||||
|
||||
t = _ecvt( n, digits, &dec, &sign );
|
||||
// if ( digits < 1 ) digits = 1; // less than one digit is nonsense
|
||||
// if ( digits > 8 ) digits = 8; // practical maximum for float
|
||||
|
||||
if ( dec <= eNeg + 1 || dec > ePos ){
|
||||
t = _ecvt(n, digits, &dec, &sign);
|
||||
|
||||
_gcvt( n, digits, buffer );
|
||||
if (dec <= eNeg + 1 || dec > ePos) {
|
||||
|
||||
_gcvt(n, digits, buffer);
|
||||
t = buffer;
|
||||
return t;
|
||||
}
|
||||
|
||||
|
||||
// Here is the tricky case. We want a nicely formatted
|
||||
// number with no e-notation or multiple trailing zeroes.
|
||||
|
||||
if ( dec <= 0 ){
|
||||
|
||||
t = "0." + string( -dec, '0' ) + t;
|
||||
if (dec <= 0) {
|
||||
|
||||
t = "0." + string(-dec, '0') + t;
|
||||
dec = 1; // new location for decimal point
|
||||
|
||||
}
|
||||
else if( dec < digits ){
|
||||
} else if (dec < digits) {
|
||||
|
||||
t = t.substr( 0, dec ) + "." + t.substr( dec );
|
||||
t = t.substr(0, dec) + "." + t.substr(dec);
|
||||
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
|
||||
t = t + string( dec - digits, '0' ) + ".0";
|
||||
t = t + string(dec - digits, '0') + ".0";
|
||||
dec += dec - digits;
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Finally, trim off excess zeroes.
|
||||
|
||||
int dp1 = dec + 1, p = t.length();
|
||||
while( --p > dp1 && t[p] == '0' );
|
||||
t = string( t, 0, ++p );
|
||||
int dp1 = dec + 1, p = t.length();
|
||||
while (--p > dp1 && t[p] == '0');
|
||||
t = string(t, 0, ++p);
|
||||
|
||||
return sign ? "-" + t : t;
|
||||
|
||||
} // end of finite case
|
||||
|
||||
if ( _isnan( n ) ) return "NaN";
|
||||
if ( n > 0.0 ) return "Infinity";
|
||||
if ( n < 0.0 ) return "-Infinity";
|
||||
if (_isnan(n)) return "NaN";
|
||||
if (n > 0.0) return "Infinity";
|
||||
if (n < 0.0) return "-Infinity";
|
||||
|
||||
abort();
|
||||
}
|
||||
@@ -283,80 +282,80 @@ string ftoa( float n ){
|
||||
}
|
||||
*/
|
||||
|
||||
string tolower( const string &s ){
|
||||
string t=s;
|
||||
for( int k=0;k<t.size();++k ) t[k]=tolower(t[k]);
|
||||
string tolower(const string &s) {
|
||||
string t = s;
|
||||
for (unsigned int k = 0; k < t.size(); ++k) t[k] = tolower(t[k]);
|
||||
return t;
|
||||
}
|
||||
|
||||
string toupper( const string &s ){
|
||||
string t=s;
|
||||
for( int k=0;k<t.size();++k ) t[k]=toupper(t[k]);
|
||||
string toupper(const string &s) {
|
||||
string t = s;
|
||||
for (unsigned int k = 0; k < t.size(); ++k) t[k] = toupper(t[k]);
|
||||
return t;
|
||||
}
|
||||
|
||||
string fullfilename( const string &t ){
|
||||
char buff[MAX_PATH+1],*p;
|
||||
GetFullPathName( t.c_str(),MAX_PATH,buff,&p );
|
||||
string fullfilename(const string &t) {
|
||||
char buff[MAX_PATH + 1], *p;
|
||||
GetFullPathName(t.c_str(), MAX_PATH, buff, &p);
|
||||
return string(buff);
|
||||
}
|
||||
|
||||
string filenamepath( const string &t ){
|
||||
char buff[MAX_PATH+1],*p;
|
||||
GetFullPathName( t.c_str(),MAX_PATH,buff,&p );
|
||||
if( !p ) return "";
|
||||
*p=0;return string(buff);
|
||||
string filenamepath(const string &t) {
|
||||
char buff[MAX_PATH + 1], *p;
|
||||
GetFullPathName(t.c_str(), MAX_PATH, buff, &p);
|
||||
if (!p) return "";
|
||||
*p = 0; return string(buff);
|
||||
}
|
||||
|
||||
string filenamefile( const string &t ){
|
||||
char buff[MAX_PATH+1],*p;
|
||||
GetFullPathName( t.c_str(),MAX_PATH,buff,&p );
|
||||
if( !p ) return "";
|
||||
return string( p );
|
||||
string filenamefile(const string &t) {
|
||||
char buff[MAX_PATH + 1], *p;
|
||||
GetFullPathName(t.c_str(), MAX_PATH, buff, &p);
|
||||
if (!p) return "";
|
||||
return string(p);
|
||||
}
|
||||
|
||||
const int MIN_SIZE=256;
|
||||
const int MIN_SIZE = 256;
|
||||
|
||||
qstreambuf::qstreambuf(){
|
||||
buf=d_new char[MIN_SIZE];
|
||||
setg( buf,buf,buf );
|
||||
setp( buf,buf,buf+MIN_SIZE );
|
||||
qstreambuf::qstreambuf() {
|
||||
buf = d_new char[MIN_SIZE];
|
||||
setg(buf, buf, buf);
|
||||
setp(buf, buf, buf + MIN_SIZE);
|
||||
}
|
||||
|
||||
qstreambuf::~qstreambuf(){
|
||||
qstreambuf::~qstreambuf() {
|
||||
delete buf;
|
||||
}
|
||||
|
||||
int qstreambuf::size(){
|
||||
return pptr()-gptr();
|
||||
int qstreambuf::size() {
|
||||
return pptr() - gptr();
|
||||
}
|
||||
|
||||
char *qstreambuf::data(){
|
||||
char *qstreambuf::data() {
|
||||
return gptr();
|
||||
}
|
||||
|
||||
qstreambuf::int_type qstreambuf::underflow(){
|
||||
if( gptr()==egptr() ){
|
||||
if( gptr()==pptr() ) return traits_type::eof();
|
||||
setg( gptr(),gptr(),pptr() );
|
||||
qstreambuf::int_type qstreambuf::underflow() {
|
||||
if (gptr() == egptr()) {
|
||||
if (gptr() == pptr()) return traits_type::eof();
|
||||
setg(gptr(), gptr(), pptr());
|
||||
}
|
||||
|
||||
return traits_type::to_int_type( *gptr() );
|
||||
return traits_type::to_int_type(*gptr());
|
||||
}
|
||||
|
||||
qstreambuf::int_type qstreambuf::overflow( qstreambuf::int_type c ){
|
||||
if( c==traits_type::eof() ) return c;
|
||||
qstreambuf::int_type qstreambuf::overflow(qstreambuf::int_type c) {
|
||||
if (c == traits_type::eof()) return c;
|
||||
|
||||
if( pptr()==epptr() ){
|
||||
int sz=size();
|
||||
int n_sz=sz*2;if( n_sz<MIN_SIZE ) n_sz=MIN_SIZE;
|
||||
char *n_buf=d_new char[ n_sz ];
|
||||
memcpy( n_buf,gptr(),sz );
|
||||
delete buf;buf=n_buf;
|
||||
setg( buf,buf,buf+sz );
|
||||
setp( buf+sz,buf+sz,buf+n_sz );
|
||||
if (pptr() == epptr()) {
|
||||
int sz = size();
|
||||
int n_sz = sz * 2; if (n_sz < MIN_SIZE) n_sz = MIN_SIZE;
|
||||
char *n_buf = d_new char[n_sz];
|
||||
memcpy(n_buf, gptr(), sz);
|
||||
delete buf; buf = n_buf;
|
||||
setg(buf, buf, buf + sz);
|
||||
setp(buf + sz, buf + sz, buf + n_sz);
|
||||
}
|
||||
|
||||
*pptr()=traits_type::to_char_type( c );
|
||||
pbump( 1 );return traits_type::not_eof( c );
|
||||
*pptr() = traits_type::to_char_type(c);
|
||||
pbump(1); return traits_type::not_eof(c);
|
||||
}
|
||||
|
||||
+42
-127
@@ -1,14 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Blitz2DRelease|Win32">
|
||||
<Configuration>Blitz2DRelease</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Blitz3DRelease|Win32">
|
||||
<Configuration>Blitz3DRelease</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
@@ -17,34 +9,14 @@
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Template|Win32">
|
||||
<Configuration>Template</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<SccProjectName />
|
||||
<SccLocalPath />
|
||||
<ProjectGuid>{6BCFC5CA-EA71-4AE9-8B96-28B8701F939E}</ProjectGuid>
|
||||
<WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>
|
||||
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Template|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Blitz3DRelease|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Blitz2DRelease|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
@@ -60,17 +32,6 @@
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Template|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Blitz3DRelease|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Blitz2DRelease|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" />
|
||||
@@ -81,40 +42,43 @@
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<OutDir>.\Release\</OutDir>
|
||||
<IntDir>.\Release\</IntDir>
|
||||
<OutDir>..\#Build\$(ProjectName)\$(ConfigurationName)\</OutDir>
|
||||
<IntDir>..\#Intermediate\$(ProjectName)\$(ConfigurationName)\</IntDir>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<IncludePath>$(DXSDK_DIR)Include\;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
|
||||
<LibraryPath>$(DXSDK_DIR)Lib\x86\;$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(NETFXKitsDir)Lib\um\x86</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<OutDir>..\#Build\$(ProjectName)\$(ConfigurationName)\</OutDir>
|
||||
<IntDir>..\#Intermediate\$(ProjectName)\$(ConfigurationName)\</IntDir>
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Blitz2DRelease|Win32'">
|
||||
<OutDir>.\stdutil___Win32_Blitz2DRelease\</OutDir>
|
||||
<IntDir>.\stdutil___Win32_Blitz2DRelease\</IntDir>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Blitz3DRelease|Win32'">
|
||||
<OutDir>.\stdutil___Win32_Blitz3DRelease\</OutDir>
|
||||
<IntDir>.\stdutil___Win32_Blitz3DRelease\</IntDir>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<IncludePath>$(DXSDK_DIR)Include\;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
|
||||
<LibraryPath>$(DXSDK_DIR)Lib\x86\;$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(NETFXKitsDir)Lib\um\x86</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<StringPooling>true</StringPooling>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AssemblerListingLocation>.\Release\</AssemblerListingLocation>
|
||||
<PrecompiledHeaderOutputFile>.\Release\stdutil.pch</PrecompiledHeaderOutputFile>
|
||||
<PrecompiledHeader />
|
||||
<ObjectFileName>.\Release\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>.\Release\</ProgramDataBaseFileName>
|
||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<FloatingPointExceptions>true</FloatingPointExceptions>
|
||||
<CreateHotpatchableImage>true</CreateHotpatchableImage>
|
||||
<CompileAsManaged>false</CompileAsManaged>
|
||||
<CompileAsWinRT>false</CompileAsWinRT>
|
||||
<SDLCheck>false</SDLCheck>
|
||||
<ControlFlowGuard>Guard</ControlFlowGuard>
|
||||
<ProgramDataBaseFileName>$(IntDir)vc$(PlatformToolsetVersion).pdb</ProgramDataBaseFileName>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<EnforceTypeConversionRules>false</EnforceTypeConversionRules>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<OpenMPSupport>false</OpenMPSupport>
|
||||
<CallingConvention>StdCall</CallingConvention>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<Culture>0x0409</Culture>
|
||||
@@ -126,24 +90,34 @@
|
||||
</Bscmake>
|
||||
<Lib>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<OutputFile>.\Release\stdutil.lib</OutputFile>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
|
||||
<FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AssemblerListingLocation>.\Debug\</AssemblerListingLocation>
|
||||
<PrecompiledHeaderOutputFile>.\Debug\stdutil.pch</PrecompiledHeaderOutputFile>
|
||||
<ObjectFileName>.\Debug\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>.\Debug\</ProgramDataBaseFileName>
|
||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN32;DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<FloatingPointExceptions>true</FloatingPointExceptions>
|
||||
<CreateHotpatchableImage>true</CreateHotpatchableImage>
|
||||
<CompileAsManaged>false</CompileAsManaged>
|
||||
<CompileAsWinRT>false</CompileAsWinRT>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<ControlFlowGuard>Guard</ControlFlowGuard>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<ProgramDataBaseFileName>$(IntDir)vc$(PlatformToolsetVersion).pdb</ProgramDataBaseFileName>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<EnforceTypeConversionRules>true</EnforceTypeConversionRules>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<OpenMPSupport>false</OpenMPSupport>
|
||||
<CallingConvention>StdCall</CallingConvention>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<Culture>0x0409</Culture>
|
||||
@@ -155,66 +129,7 @@
|
||||
</Bscmake>
|
||||
<Lib>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<OutputFile>.\Debug\stdutil.lib</OutputFile>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Blitz2DRelease|Win32'">
|
||||
<ClCompile>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<StringPooling>true</StringPooling>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AssemblerListingLocation>.\stdutil___Win32_Blitz2DRelease\</AssemblerListingLocation>
|
||||
<PrecompiledHeaderOutputFile>.\stdutil___Win32_Blitz2DRelease\stdutil.pch</PrecompiledHeaderOutputFile>
|
||||
<PrecompiledHeader />
|
||||
<ObjectFileName>.\stdutil___Win32_Blitz2DRelease\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>.\stdutil___Win32_Blitz2DRelease\</ProgramDataBaseFileName>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<Culture>0x0409</Culture>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<OutputFile>.\stdutil___Win32_Blitz2DRelease\stdutil.bsc</OutputFile>
|
||||
</Bscmake>
|
||||
<Lib>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<OutputFile>.\stdutil___Win32_Blitz2DRelease\stdutil.lib</OutputFile>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Blitz3DRelease|Win32'">
|
||||
<ClCompile>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<StringPooling>true</StringPooling>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PreprocessorDefinitions>_LIB;WIN32;NDEBUG;PRO;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AssemblerListingLocation>.\stdutil___Win32_Blitz3DRelease\</AssemblerListingLocation>
|
||||
<PrecompiledHeaderOutputFile>.\stdutil___Win32_Blitz3DRelease\stdutil.pch</PrecompiledHeaderOutputFile>
|
||||
<PrecompiledHeader />
|
||||
<ObjectFileName>.\stdutil___Win32_Blitz3DRelease\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>.\stdutil___Win32_Blitz3DRelease\</ProgramDataBaseFileName>
|
||||
<CallingConvention>StdCall</CallingConvention>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<Culture>0x0409</Culture>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<OutputFile>.\stdutil___Win32_Blitz3DRelease\stdutil.bsc</OutputFile>
|
||||
</Bscmake>
|
||||
<Lib>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<OutputFile>.\stdutil___Win32_Blitz3DRelease\stdutil.lib</OutputFile>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user