0ad/source/dcdt/se/se.cpp
janwas 5bf9bca9ef fix/disable warnings.
there are too many W4 and "potentially uninitialized", so those are
disabled by 0ad_warning_disable.h.

the silly "int x = strlen" and very dangerous "int x = (void*)p" (and
vice versa) problems are fixed.

This was SVN commit r5526.
2007-12-23 12:18:57 +00:00

33 lines
681 B
C++

#include "precompiled.h"
#include "0ad_warning_disable.h"
# include "se.h"
//================================= SeElement ====================================
SeElement::SeElement ()
{
_index=0;
_symedge=0;
_next=_prior=this;
}
SeElement* SeElement::_remove ()
{
_next->_prior = _prior;
_prior->_next = _next;
return this;
}
// same insert_prior() implementation as in SrListNode
SeElement* SeElement::_insert ( SeElement* n )
{
n->_prior = _prior;
_prior->_next = n;
n->_next = this;
_prior = n;
return n;
}
//=== End of File ===================================================================