view src/Settings.d @ 839:4063da6f3edd default tip

Refactored the config file and how it is loaded.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Thu, 21 Aug 2008 17:51:04 +0200
parents bcb74c9b895c
children
line wrap: on
line source

/++
  Author: Aziz Köksal
  License: GPL3
+/
module Settings;
import common;

/// Global application settings.
struct GlobalSettings
{
static:
  /// Path to the data directory.
  string dataDir = "data/";
  /// Predefined version identifiers.
  string[] versionIds;
  /// Path to the language file.
  string langFile = "lang_en.d";
  /// Language code of loaded messages catalogue.
  string langCode = "en";
  /// Table of localized compiler messages.
  string[] messages;
  /// Array of import paths to look for modules.
  string[] importPaths;
  /// Array of DDoc macro file paths.
  string[] ddocFilePaths;
  string xmlMapFile = "xml_map.d"; /// XML map file.
  string htmlMapFile = "html_map.d"; /// HTML map file.
  string lexerErrorFormat = "{0}({1},{2})L: {3}"; /// Lexer error.
  string parserErrorFormat = "{0}({1},{2})P: {3}"; /// Parser error.
  string semanticErrorFormat = "{0}({1},{2})S: {3}"; /// Semantic error.
}