diff trunk/src/Settings.d @ 779:8e6fed11bb68

Moved Settings.d and SettingsLoader.d to src/.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Wed, 20 Feb 2008 22:47:33 +0100
parents trunk/src/dil/Settings.d@78be32e3e157
children c24be8d4f6ab
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trunk/src/Settings.d	Wed Feb 20 22:47:33 2008 +0100
@@ -0,0 +1,29 @@
+/++
+  Author: Aziz Köksal
+  License: GPL3
++/
+module Settings;
+import common;
+
+/// Global application settings.
+struct GlobalSettings
+{
+static:
+  /// 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";
+  string htmlMapFile = "html_map.d";
+  string lexerErrorFormat = "{0}({1},{2})L: {3}";
+  string parserErrorFormat = "{0}({1},{2})P: {3}";
+  string semanticErrorFormat = "{0}({1},{2})S: {3}";
+}