Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

global.h File Reference

#include <cstdio>
#include <cstdlib>
#include "utils/bitcompat.h"
#include "debug.h"

Go to the source code of this file.

Defines

#define VMA_MIN   0
#define VMA_MAX   0xfffffffflu
#define FOR_EACH_BEGIN(type, container, iter)
#define FOR_EACH_END(type, container, iter)   } }
#define FOR_EACH_CONST_BEGIN(type, container, iter)
#define FOR_EACH_CONST_END(type, container, iter)   } }
#define ALLOF(container)   container.begin(),container.end()

Typedefs

typedef uint32_t vma_t
typedef unsigned char uchar

Functions

template<class T> const T & f77_min (const T &a, const T &b)


Define Documentation

#define ALLOF container       container.begin(),container.end()
 

Definition at line 72 of file global.h.

#define FOR_EACH_BEGIN type,
container,
iter   
 

Value:

{ type::iterator __end = container.end(); \
for(type::iterator iter = container.begin(); iter != __end; ++iter) {

Definition at line 62 of file global.h.

Referenced by THeuristicMotor::Process().

#define FOR_EACH_CONST_BEGIN type,
container,
iter   
 

Value:

{ type::const_iterator __end = container.end(); \
for(type::const_iterator iter = container.begin(); iter != __end; ++iter) {

Definition at line 67 of file global.h.

#define FOR_EACH_CONST_END type,
container,
iter       } }
 

Definition at line 70 of file global.h.

#define FOR_EACH_END type,
container,
iter       } }
 

Definition at line 65 of file global.h.

Referenced by THeuristicMotor::Process().

#define VMA_MAX   0xfffffffflu
 

Definition at line 54 of file global.h.

#define VMA_MIN   0
 

Definition at line 53 of file global.h.


Typedef Documentation

typedef unsigned char uchar
 

Definition at line 55 of file global.h.

Referenced by InstructionDecoder::check_forward(), InstructionDecoder::Decode(), InstructionDecoder::do_mod_rm(), InstructionDecoder::do_sib(), ByteInfos::GetIstrLen(), INSTPROCDECL(), InstructionDecoder::mod0(), InstructionDecoder::mod1(), InstructionDecoder::mod2(), mod3(), and InstructionDecoder::mod_reg2().

typedef uint32_t vma_t
 

Definition at line 52 of file global.h.

Referenced by CodeParser::_ReverseScan(), IstrReferences::Add(), CodeParser::AddExportTempFlow(), ScanningComplexReg::AddLabel(), RelocationInfos::AddRelocation(), CodeParser::AddTempFlow(), IstrReferences::beginReferenceTo(), CodeParser::CheckCode(), CodeParser::CheckCodeRecursively(), CodeParser::CheckForAddress(), CodeParser::CheckImmediateCodeAddress(), CodeParser::CheckJumpReference(), ScanningComplexReg::CheckLoop(), CodeParser::CheckReference(), IstrReferences::endReferenceTo(), CodeParser::ExcludeFileRange(), CodeParser::ExecuteComplexReference(), CodeParser::ExecuteComplexReferenceMemory(), CodeParser::ExecuteComplexReferenceReg(), CodeParser::GetBitStat(), ObjectModule::GetDataReader(), ObjectModule::GetEntryPoint(), GetInstruction(), ByteInfos::GetIstrLen(), ByteInfos::GetLen(), Symbols::GetNextValid(), CodeParser::GetPointerArrayStats(), RelocationInfos::GetRelocation(), ObjectModule::GetSection(), CodeParser::GetStringStats(), Symbols::insert(), IsCodePointer(), IsNullAddress(), ByteInfos::IsOccupied(), IstrReferences::IsPresent(), IstrReference::IstrReference(), Symbols::IsValid(), ObjectModule::IsValid(), ObjectModule::ObjectModule(), Symbols::operator[](), ByteInfos::operator[](), ObjectModule::OutOfAddress::OutOfAddress(), CodeParser::Parse(), ParseCode(), THeuristicMotor::Process(), ScanningComplexReg::ProcessInstruction(), ObjectModule::ReadByte(), ObjectModule::ReadDword(), ObjectModule::ReadWord(), CodeParser::ResetCodeRange(), CodeParser::ReverseScan(), CodeParser::ScanCode(), ScanningComplexReg::ScanningComplexReg(), ObjectModule::Section::Section(), CodeParser::SetCodeRange(), ByteInfos::SetLen(), Symbols::Symbol::Symbol(), ObjectModule::DataReader::Tell(), THeuristicMotor::THeuristicMotor(), CodeParser::WriteBegin(), CodeParser::WriteCode(), and CodeParser::WriteString().


Function Documentation

template<class T>
const T& f77_min const T &    a,
const T &    b
[inline]
 

Definition at line 78 of file global.h.

Referenced by CopyFileToFile(), CodeParser::ExecuteComplexReferenceMemory(), and THeuristicMotor::Process().

00079 {
00080   return (a<b)?a:b;
00081 }


Generated on Mon Jan 13 22:20:35 2003 for perdr by doxygen1.2.15