OpenTTD
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
depend.cpp File Reference

Custom implementation of Makedepend. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#include <unistd.h>
#include <map>
#include <set>
#include <stack>
#include <cassert>

Go to the source code of this file.

Data Structures

struct  StringCompare
 Comparator for strings. More...
 
class  File
 Helper class to read a file. More...
 
class  Lexer
 Lexer of a file. More...
 

Macros

#define lengthof(x)   (sizeof(x) / sizeof(x[0]))
 Return the length of an fixed size array. More...
 
#define lastof(x)   (&x[lengthof(x) - 1])
 Get the last element of an fixed size array. More...
 
#define PATH_MAX   260
 The maximum length of paths, if we don't know it. More...
 

Typedefs

typedef std::set< const char *, StringCompareStringSet
 Set of C-style strings. More...
 
typedef std::map< const char *, StringSet *, StringCompareStringMap
 Mapping of C-style string to a set of C-style strings. More...
 
typedef std::pair< const char *, StringSet * > StringMapItem
 Pair of C-style string and a set of C-style strings. More...
 
typedef std::map< const char *, Token, StringCompareKeywordList
 Mapping from a C-style keyword representation to a Token. More...
 

Enumerations

enum  Token {
  TOKEN_UNKNOWN, TOKEN_END, TOKEN_EOL, TOKEN_SHARP,
  TOKEN_LOCAL, TOKEN_GLOBAL, TOKEN_IDENTIFIER, TOKEN_DEFINE,
  TOKEN_IF, TOKEN_IFDEF, TOKEN_IFNDEF, TOKEN_ELIF,
  TOKEN_ELSE, TOKEN_ENDIF, TOKEN_UNDEF, TOKEN_OR,
  TOKEN_AND, TOKEN_DEFINED, TOKEN_OPEN, TOKEN_CLOSE,
  TOKEN_NOT, TOKEN_ZERO, TOKEN_INCLUDE
}
 A token returned by the tokenizer. More...
 
enum  Ignore { NOT_IGNORE, IGNORE_UNTIL_ELSE, IGNORE_UNTIL_ENDIF }
 Enumerator to tell how long to ignore 'stuff'. More...
 

Functions

char * strecpy (char *dst, const char *src, const char *last)
 Copies characters from one buffer to another. More...
 
static char * strecat (char *dst, const char *src, const char *last)
 Appends characters from one string to another. More...
 
static void free (const void *ptr)
 Version of the standard free that accepts const pointers. More...
 
const char * GeneratePath (const char *dirname, const char *filename, bool local)
 Generate a path from a directory name and a relative filename. More...
 
bool ExpressionDefined (Lexer *lexer, StringSet *defines, bool verbose)
 Try to parse a 'defined(expr)' expression. More...
 
bool ExpressionOr (Lexer *lexer, StringSet *defines, bool verbose)
 Try to parse a 'expr || expr' expression. More...
 
bool ExpressionNot (Lexer *lexer, StringSet *defines, bool verbose)
 Try to parse a '!expr' expression. More...
 
bool ExpressionAnd (Lexer *lexer, StringSet *defines, bool verbose)
 Try to parse a 'expr && expr' expression. More...
 
void ScanFile (const char *filename, const char *ext, bool header, bool verbose)
 Scan a file for includes, defines and the lot. More...
 
int main (int argc, char *argv[])
 Entry point. More...
 

Variables

static StringSet _include_dirs
 Include directory to search in. More...
 
static StringMap _files
 Files that have been parsed/handled with their dependencies. More...
 
static StringMap _headers
 Dependencies of headers. More...
 
static StringSet _defines
 The current 'active' defines. More...
 

Detailed Description

Custom implementation of Makedepend.

We previously used makedepend, but that could not handle the amount of files we have and does not handle conditional includes in a sane manner. This caused many link problems because not enough files were recompiled. This has lead to the development of our own dependency generator. It is meant to be a substitute to the (relatively slow) dependency generation via gcc. It thus helps speeding up compilation. It will also ignore system headers making it less error prone when system headers are moved or renamed.

Definition in file depend.cpp.

Macro Definition Documentation

◆ lastof

#define lastof (   x)    (&x[lengthof(x) - 1])

Get the last element of an fixed size array.

Parameters
xThe pointer to the first element of the array
Returns
The pointer to the last element of the array

Definition at line 50 of file depend.cpp.

Referenced by FiosFileScanner::AddFile(), ScenarioScanner::AddFile(), ScriptInfo::AddLabels(), ScriptInfo::AddSetting(), CheckExternalFiles(), ScriptInfo::CheckMethod(), CloneVehicleName(), CmdRenamePresident(), Squirrel::CompileError(), debug(), CrashLogOSX::DisplayCrashDialog(), ClientNetworkContentSocketHandler::DownloadSelectedContentHTTP(), DriverFactoryBase::DriverFactoryBase(), AIInfo::DummyConstructor(), error(), Squirrel::ErrorPrintFunc(), GameScannerInfo::FindInfo(), AIScannerInfo::FindInfo(), GameScannerLibrary::FindLibrary(), AIScannerLibrary::FindLibrary(), FiosDelete(), FiosMakeHeightmapName(), GenerateCompanyPasswordHash(), NetworkAddress::GetAddressAsString(), GetSavegameFormat(), grfmsg(), FileStringReader::HandlePragma(), HandleSavegameLoadCrash(), HelpDialogFunc(), IConsoleAliasExec(), InitializeMusic(), Textbuf::InsertClipboard(), IsGoodGRFConfigList(), KeycodeToString(), ScriptInstance::LoadCompatibilityScripts(), LoadTranslations(), CrashLogOSX::MakeCrashLog(), MidiSendCommand(), NetworkAddChatMessage(), NetworkAddress::NetworkAddress(), NetworkFindBroadcastIPsInternal(), NetworkFindName(), NetworkGameListHandleDelayedInsert(), NetworkServerSetCompanyPassword(), NetworkUDPQueryServer(), NetworkUpdateClientName(), BaseNetworkContentDownloadStatusWindow::OnDownloadProgress(), NetworkGameWindow::OnEditboxChanged(), NetworkStartServerWindow::OnEditboxChanged(), AIDebugWindow::OnEditboxChanged(), NetworkStartServerWindow::OnQueryTextFinished(), SaveLoadWindow::OnTimeout(), MusicDriver_ExtMidi::PlaySong(), Squirrel::PrintFunc(), PrintGrfInfo(), PrintLineByLine(), ServerNetworkGameSocketHandler::Receive_CLIENT_ERROR(), ServerNetworkUDPSocketHandler::Receive_CLIENT_GET_NEWGRFS(), ServerNetworkGameSocketHandler::Receive_CLIENT_MAP_OK(), ServerNetworkGameSocketHandler::Receive_CLIENT_QUIT(), ClientNetworkGameSocketHandler::Receive_SERVER_CHECK_NEWGRFS(), ClientNetworkContentSocketHandler::Receive_SERVER_INFO(), ClientNetworkUDPSocketHandler::Receive_SERVER_RESPONSE(), ScriptScanner::RegisterScript(), NetworkAddress::Resolve(), Squirrel::RunError(), SaveKeycodes(), SaveVersionInConfig(), Script_CreateDummyInfo(), DriverFactoryBase::SelectDriverImpl(), ServerNetworkGameSocketHandler::SendCompanyInfo(), SetFallbackFont(), TextfileWindow::SetFontNames(), LanguagePackGlyphSearcher::SetFontNames(), FileToSaveLoad::SetName(), ScriptConfig::SettingsToString(), FileToSaveLoad::SetTitle(), ShowHelp(), ShowInfoF(), ShowMissingContentWindow(), str_fmt(), usererror(), VerifyTownName(), and DriverFactoryBase::~DriverFactoryBase().

◆ lengthof

#define lengthof (   x)    (sizeof(x) / sizeof(x[0]))

Return the length of an fixed size array.

Unlike sizeof this function returns the number of elements of the given type.

Parameters
xThe pointer to the first element of the array
Returns
The number of elements

Definition at line 42 of file depend.cpp.

Referenced by AddGenericCallback(), BuildLandLegend(), BuildLinkStatsLegend(), CanCargoServiceIndustry(), CmdChangeCompanySetting(), CmdDoTownAction(), CMSAMine(), IndustryCargoesWindow::ComputeCargoDisplay(), IndustryCargoesWindow::ComputeIndustryDisplay(), ScriptInfo::Constructor(), ErrorMessageData::CopyOutDParams(), GRFConfig::CopyParams(), IndustryCargoesWindow::CountMatchingAcceptingIndustries(), IndustryCargoesWindow::CountMatchingProducingIndustries(), Hash::Delete(), DeliverGoodsToIndustry(), LinkGraphOverlay::DrawContent(), ErrmsgWindow::DrawWidget(), ErrorMessageData::ErrorMessageData(), HeaderFileWriter::Finalise(), FioCloseAll(), FixTTOEngines(), FS2OTTD(), GetAmplitude(), CargoSpec::GetArraySize(), CargoArray::GetCount(), GetCurrentLocale(), GetDistanceFromNearbyHouse(), GetGRFContainerVersion(), IndustryDirectoryWindow::GetIndustryString(), BuildTreesWindow::GetMaxTreeSpriteSize(), GetNetworkErrorMsg(), GetNewgrfCurrencyIdConverted(), GRFConfig::GRFConfig(), GRFLoadConfig(), HandleIMEComposition(), StringReader::HandlePragma(), HelpDialogFunc(), IConsoleCmdExec(), IndustryDirectoryWindow::IndustryProductionSorter(), InitializeScreenshotFormats(), InitializeSpriteSorter(), SmallSet< Tdir, items >::IsFull(), IsTileForestIndustry(), IsValidCommand(), LoadIntList(), CrashLogUnix::LogStacktrace(), MakeAustrianTownName(), CargoesRow::MakeCargoLabel(), MakeDanishTownName(), MakeDutchTownName(), MakeEnglishAdditionalTownName(), MakeEnglishOriginalTownName(), MakeGermanTownName(), MakeHeightmapScreenshot(), MakePolishTownName(), MakeSwedishTownName(), NewGRFWindow::NameSorter(), NetworkServerShowStatusToConsole(), NewGRFDisplay(), IndustryViewWindow::OnClick(), SmallMapWindow::OnInit(), IndustryDirectoryWindow::OnInvalidateData(), CompanyWindow::OnPaint(), SelectCompanyManagerFaceWindow::OnQueryTextFinished(), VehicleDetailsWindow::OnResize(), AboutWindow::OnTick(), OTTD2FS(), ReadBuffer::ReadBuffer(), SmallMapWindow::RebuildColourIndexIfNecessary(), NetworkHTTPSocketHandler::Receive(), ClientNetworkContentSocketHandler::Receive_SERVER_CONTENT(), ClientNetworkGameSocketHandler::Receive_SERVER_ERROR(), ClientNetworkContentSocketHandler::Receive_SERVER_INFO(), ResetGenericCallbacks(), ResetObjects(), TextRefStack::RotateTop4Words(), LinkGraphSchedule::Run(), SaveHighScoreValue(), DriverFactoryBase::SelectDriverImpl(), NetworkGameSocketHandler::SendCommand(), GRFConfig::SetParameterDefaults(), ErrmsgWindow::SetStringParameters(), QueryWindow::SetStringParameters(), MusicDriver_Win32::SetVolume(), SmallMapWindow::SetZoomLevel(), MusicDriver_Win32::Start(), StringToContentType(), TransportIndustryGoods(), TriggerIndustryProduction(), UpdateIndustryStatistics(), UpdateStationAcceptance(), BuildObjectWindow::UpdateWidgetSize(), ErrmsgWindow::UpdateWidgetSize(), NewGRFParametersWindow::UpdateWidgetSize(), AboutWindow::UpdateWidgetSize(), OrdersWindow::UpdateWidgetSize(), CompanyLeagueWindow::UpdateWidgetSize(), GameSettingsWindow::UpdateWidgetSize(), ErrorMessageData::~ErrorMessageData(), and LinkGraphSchedule::~LinkGraphSchedule().

◆ PATH_MAX

#define PATH_MAX   260

The maximum length of paths, if we don't know it.

Definition at line 121 of file depend.cpp.

Typedef Documentation

◆ KeywordList

typedef std::map<const char*, Token, StringCompare> KeywordList

Mapping from a C-style keyword representation to a Token.

Definition at line 239 of file depend.cpp.

◆ StringMap

typedef std::map<const char*, StringSet*, StringCompare> StringMap

Mapping of C-style string to a set of C-style strings.

Definition at line 140 of file depend.cpp.

◆ StringMapItem

typedef std::pair<const char*, StringSet*> StringMapItem

Pair of C-style string and a set of C-style strings.

Definition at line 142 of file depend.cpp.

◆ StringSet

typedef std::set<const char*, StringCompare> StringSet

Set of C-style strings.

Definition at line 138 of file depend.cpp.

Enumeration Type Documentation

◆ Ignore

enum Ignore

Enumerator to tell how long to ignore 'stuff'.

Enumerator
NOT_IGNORE 

No ignoring.

IGNORE_UNTIL_ELSE 

Ignore till a #else is reached.

IGNORE_UNTIL_ENDIF 

Ignore till a #endif is reached.

Definition at line 682 of file depend.cpp.

◆ Token

enum Token

A token returned by the tokenizer.

Enumerator
TOKEN_UNKNOWN 

Unknown token.

TOKEN_END 

End of document.

TOKEN_EOL 

End of line.

TOKEN_SHARP 

character, usually telling something important comes.

TOKEN_LOCAL 

Read a local include.

TOKEN_GLOBAL 

Read a global include.

TOKEN_IDENTIFIER 

Identifier within the data.

TOKEN_DEFINE 

(#)define in code

TOKEN_IF 

(#)if in code

TOKEN_IFDEF 

(#)ifdef in code

TOKEN_IFNDEF 

(#)ifndef in code

TOKEN_ELIF 

(#)elif in code

TOKEN_ELSE 

(#)else in code

TOKEN_ENDIF 

(#)endif in code

TOKEN_UNDEF 

(#)undef in code

TOKEN_OR 

'||' within #if expression

TOKEN_AND 

'&&' within #if expression

TOKEN_DEFINED 

'defined' within #if expression

TOKEN_OPEN 

'(' within #if expression

TOKEN_CLOSE 

')' within #if expression

TOKEN_NOT 

'!' within #if expression

TOKEN_ZERO 

'0' within #if expression

TOKEN_INCLUDE 

(#)include in code

Definition at line 212 of file depend.cpp.

Function Documentation

◆ ExpressionAnd()

bool ExpressionAnd ( Lexer lexer,
StringSet defines,
bool  verbose 
)

Try to parse a 'expr && expr' expression.

Parameters
lexerthe lexer to get tokens from.
definesthe set of known defines.
verbosewhether to give verbose debugging information.
Returns
the value of the expression.

Definition at line 650 of file depend.cpp.

References ExpressionDefined(), Lexer::GetToken(), Lexer::Lex(), and TOKEN_AND.

Referenced by ExpressionOr().

◆ ExpressionDefined()

bool ExpressionDefined ( Lexer lexer,
StringSet defines,
bool  verbose 
)

Try to parse a 'defined(expr)' expression.

Parameters
lexerthe lexer to get tokens from.
definesthe set of known defines.
verbosewhether to give verbose debugging information.
Returns
the value of the expression.

Definition at line 620 of file depend.cpp.

References ExpressionNot(), Lexer::GetString(), Lexer::GetToken(), Lexer::Lex(), TOKEN_DEFINED, TOKEN_IDENTIFIER, and TOKEN_OPEN.

Referenced by ExpressionAnd(), and ExpressionNot().

◆ ExpressionNot()

bool ExpressionNot ( Lexer lexer,
StringSet defines,
bool  verbose 
)

Try to parse a '!expr' expression.

Also parses the '(expr)', '0' and identifiers. Finally it also consumes any unknown tokens.

Parameters
lexerthe lexer to get tokens from.
definesthe set of known defines.
verbosewhether to give verbose debugging information.
Returns
the value of the expression.

Definition at line 577 of file depend.cpp.

References ExpressionDefined(), ExpressionOr(), Lexer::GetToken(), Lexer::Lex(), TOKEN_IDENTIFIER, TOKEN_NOT, TOKEN_OPEN, TOKEN_UNKNOWN, and TOKEN_ZERO.

Referenced by ExpressionDefined().

◆ ExpressionOr()

bool ExpressionOr ( Lexer lexer,
StringSet defines,
bool  verbose 
)

Try to parse a 'expr || expr' expression.

Parameters
lexerthe lexer to get tokens from.
definesthe set of known defines.
verbosewhether to give verbose debugging information.
Returns
the value of the expression.

Definition at line 669 of file depend.cpp.

References ExpressionAnd(), Lexer::GetToken(), Lexer::Lex(), and TOKEN_OR.

Referenced by ExpressionNot().

◆ free()

static void free ( const void *  ptr)
inlinestatic

Version of the standard free that accepts const pointers.

Parameters
ptrThe data to free.

Definition at line 114 of file depend.cpp.

Referenced by ScriptScanner::AddFile(), AddGRFTextToList(), AllocateMap(), SmallMatrix< BaseEdge >::Assign(), GameInfo::CanLoadFromVersion(), AIInfo::CanLoadFromVersion(), CBinaryHeapT< Titem_ >::CBinaryHeapT(), ScriptConfig::Change(), CleanIndustryTileTable(), GroupStatistics::Clear(), BinaryHeap::Clear(), LoadCheckData::Clear(), Hash::Clear(), AutoFreeSmallVector< byte *, 16 >::Clear(), PersistentStorageArray< int32, 16 >::ClearChanges(), ScriptConfig::ClearConfigList(), FreeTypeFontCache::ClearFontCache(), SpriteFontCache::ClearGlyphToSpriteMap(), ClearSnowLine(), ClearTemporaryNewGRFData(), CmdRenameCompany(), CmdRenameDepot(), CmdRenameEngine(), CmdRenamePresident(), CmdRenameTown(), CmdRenameVehicle(), CmdRenameWaypoint(), CmdSetGoalProgress(), CmdSetGoalText(), CmdSetStoryPageTitle(), CmdTownSetText(), GameInfo::Constructor(), BaseConsist::CopyConsistPropertiesFrom(), ErrorMessageData::CopyOutDParams(), DEF_CONSOLE_CMD(), DEFINE_NEWGRF_CLASS_METHOD(), Hash::Delete(), Hash::DeleteValue(), DoScanNewGRFFiles(), FioCloseFile(), BinaryHeap::Free(), CommandQueue::Free(), FreeEngine(), FreeHeightMap(), LangString::FreeTranslation(), GamelogFree(), GetLayouter(), GRFError::GRFError(), Gunzip(), HeightMapAdjustWaterLevel(), InitGRFTownGeneratorNames(), ScriptScanner::Initialize(), InitializeOldNames(), IsGoodGRFConfigList(), LanguageScanner::LanguageScanner(), Lexer::Lex(), CrashLogUnix::LogStacktrace(), AyStar::Loop(), NetworkClose(), NetworkGameListRemoveItem(), NetworkHandleCommandQueue(), NetworkHTTPContentConnecter::OnFailure(), GRFText::operator delete(), ZeroedMemoryAllocator::operator delete(), ZeroedMemoryAllocator::operator delete[](), SmallVector< SmallPair< uint32, SmallPair< size_t, const void *> >, 16 >::operator=(), ReadLanguagePack(), SmallVector< SmallPair< uint32, SmallPair< size_t, const void *> >, 16 >::Reset(), SmallMatrix< BaseEdge >::Reset(), ScriptScanner::Reset(), ResetCustomAirports(), ResetCustomHouses(), ResetCustomIndustries(), ResetCustomObjects(), ResetCustomStations(), ResetOldNames(), ScriptConfig::ResetSettings(), SpriteGroup::Resolve(), ErrorMessageData::SetDParamStr(), StringFilter::SetFilterTerm(), IniItem::SetValue(), SlError(), SmallMatrix< BaseEdge >::SmallMatrix(), VideoDriver_Dedicated::Stop(), MusicDriver_ExtMidi::Stop(), StringFilter::StringFilter(), ScriptConfig::StringToSettings(), ContentInfo::TransferFrom(), UnloadWagonOverrides(), ScanProgressWindow::UpdateNewGRFScanStatus(), UpdateNumEngineGroup(), UpdateOSKOriginalText(), BaseSet< GraphicsSet, MAX_GFT, true >::~BaseSet(), Case::~Case(), ContentInfo::~ContentInfo(), ErrorMessageData::~ErrorMessageData(), FallbackParagraphLayout::FallbackVisualRun::~FallbackVisualRun(), File::~File(), FileWriter::~FileWriter(), FixedSizeArray< SubArray, 1024 >::~FixedSizeArray(), FreeTypeFontCache::~FreeTypeFontCache(), FreeUnitIDGenerator::~FreeUnitIDGenerator(), Goal::~Goal(), GRFConfig::~GRFConfig(), HeaderFileWriter::~HeaderFileWriter(), IConsoleLine::~IConsoleLine(), IniGroup::~IniGroup(), IniItem::~IniItem(), IniLoadFile::~IniLoadFile(), LangString::~LangString(), LanguageStrings::~LanguageStrings(), Lexer::~Lexer(), NetworkHTTPContentConnecter::~NetworkHTTPContentConnecter(), NetworkHTTPSocketHandler::~NetworkHTTPSocketHandler(), OverrideManagerBase::~OverrideManagerBase(), Packet::~Packet(), PersistentStorageArray< int32, 16 >::~PersistentStorageArray(), QueryString::~QueryString(), ReusableBuffer< SpriteLoader::CommonPixel >::~ReusableBuffer(), ScanProgressWindow::~ScanProgressWindow(), ScriptConfig::~ScriptConfig(), Sign::~Sign(), StoryPageElement::~StoryPageElement(), StringData::~StringData(), StringReader::~StringReader(), Town::~Town(), and UnmappedChoiceList::~UnmappedChoiceList().

◆ GeneratePath()

const char* GeneratePath ( const char *  dirname,
const char *  filename,
bool  local 
)

Generate a path from a directory name and a relative filename.

If the file is not local the include directory names will be used instead of the passed parameter with directory name. If the file is local both will be queried where the parameter takes precedence.

Parameters
dirnamethe directory to look in.
filenamethe file to look for.
localwhether to look locally (in dirname) for the file.
Returns
the absolute path, or NULL if the file doesn't exist.

Definition at line 508 of file depend.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Entry point.

Arguably the most common function in all applications.

Parameters
argcthe number of arguments.
argvthe actual arguments.
Returns
return value for the caller to tell we succeed or not.

Definition at line 909 of file depend.cpp.

References _include_dirs.

Referenced by GetSettingsTree().

◆ ScanFile()

void ScanFile ( const char *  filename,
const char *  ext,
bool  header,
bool  verbose 
)

Scan a file for includes, defines and the lot.

Parameters
filenamethe name of the file to scan.
extthe extension of the filename.
headerwhether the file is a header or not.
verbosewhether to give verbose debugging information.

Definition at line 695 of file depend.cpp.

References _defines.

◆ strecat()

static char* strecat ( char *  dst,
const char *  src,
const char *  last 
)
static

Appends characters from one string to another.

Appends the source string to the destination string with respect of the terminating null-character and and the last pointer to the last element in the destination buffer. If the last pointer is set to NULL no boundary check is performed.

Note
usage: strecat(dst, src, lastof(dst));
lastof() applies only to fixed size arrays
Parameters
dstThe buffer containing the target string
srcThe buffer containing the string to append
lastThe pointer to the last element of the destination buffer
Returns
The pointer to the terminating null-character in the destination buffer

Definition at line 99 of file depend.cpp.

Referenced by CloneVehicleName(), KeycodeToString(), Squirrel::PrintFunc(), ClientNetworkUDPSocketHandler::Receive_SERVER_RESPONSE(), SaveKeycodes(), ServerNetworkGameSocketHandler::SendCompanyInfo(), and ScriptConfig::SettingsToString().

◆ strecpy()

char* strecpy ( char *  dst,
const char *  src,
const char *  last 
)

Copies characters from one buffer to another.

Copies the source string to the destination buffer with respect of the terminating null-character and the last pointer to the last element in the destination buffer. If the last pointer is set to NULL no boundary check is performed.

Note
usage: strecpy(dst, src, lastof(dst));
lastof() applies only to fixed size arrays
Parameters
dstThe destination buffer
srcThe buffer containing the string to copy
lastThe pointer to the last element of the destination buffer
Returns
The pointer to the terminating null-character in the destination buffer

Definition at line 68 of file depend.cpp.

Referenced by ScenarioScanner::AddFile(), Textbuf::Assign(), CloneVehicleName(), DriverFactoryBase::DriverFactoryBase(), DumpDebugFacilityNames(), GameScannerInfo::FindInfo(), AIScannerInfo::FindInfo(), FiosMakeHeightmapName(), FormatNumber(), NetworkAddress::GetAddressAsString(), ServerNetworkGameSocketHandler::GetClientName(), GetClipboardContents(), GRFBuildParamList(), FileStringReader::HandlePragma(), IConsoleAliasExec(), LoadTranslations(), MakeCatalanTownName(), MakeCzechTownName(), MakeFinnishTownName(), MakeFrenchTownName(), MakeHungarianTownName(), MakeItalianTownName(), MakeNorwegianTownName(), MakeRomanianTownName(), MakeSillyTownName(), MakeSlovakTownName(), MakeSpanishTownName(), MakeSwissTownName(), MakeTurkishTownName(), mkpath(), NetworkAddChatMessage(), NetworkAddress::NetworkAddress(), NetworkFindBroadcastIPsInternal(), NetworkFindName(), NetworkGameListHandleDelayedInsert(), NetworkServerSetCompanyPassword(), NetworkUDPQueryServer(), BaseNetworkContentDownloadStatusWindow::OnDownloadProgress(), NetworkGameWindow::OnEditboxChanged(), NetworkStartServerWindow::OnEditboxChanged(), AIDebugWindow::OnEditboxChanged(), NetworkStartServerWindow::OnQueryTextFinished(), MusicDriver_ExtMidi::PlaySong(), StringListReader::ReadLine(), ServerNetworkUDPSocketHandler::Receive_CLIENT_GET_NEWGRFS(), ClientNetworkContentSocketHandler::Receive_SERVER_INFO(), NetworkAddress::Resolve(), DriverFactoryBase::SelectDriverImpl(), ServerNetworkGameSocketHandler::SendCompanyInfo(), TextfileWindow::SetFontNames(), LanguagePackGlyphSearcher::SetFontNames(), FileToSaveLoad::SetName(), FileToSaveLoad::SetTitle(), ShowMissingContentWindow(), and DriverFactoryBase::~DriverFactoryBase().

Variable Documentation

◆ _defines

StringSet _defines
static

The current 'active' defines.

Definition at line 151 of file depend.cpp.

Referenced by ScanFile().

◆ _files

StringMap _files
static

Files that have been parsed/handled with their dependencies.

Definition at line 147 of file depend.cpp.

◆ _headers

StringMap _headers
static

Dependencies of headers.

Definition at line 149 of file depend.cpp.

◆ _include_dirs

StringSet _include_dirs
static

Include directory to search in.

Definition at line 145 of file depend.cpp.

Referenced by main().