Skip to content

Commit

Permalink
dil: use dirSep from util.Path.
Browse files Browse the repository at this point in the history
  • Loading branch information
azizk committed Jan 13, 2014
1 parent 828a682 commit 39d39da
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 14 deletions.
1 change: 1 addition & 0 deletions src/cmd/Compile.d
Expand Up @@ -19,6 +19,7 @@ import dil.Compilation,
dil.Diagnostics,
dil.ModuleManager,
dil.String;
import util.Path;
import common;

/// The compile command.
Expand Down
4 changes: 0 additions & 4 deletions src/cmd/ImportGraph.d
Expand Up @@ -20,10 +20,6 @@ import common;

import std.regex;

import tango.io.model.IFile;

alias dirSep = FileConst.PathSeparatorChar;

/// The importgraph command.
class IGraphCommand : Command
{
Expand Down
3 changes: 0 additions & 3 deletions src/dil/ModuleManager.d
Expand Up @@ -14,13 +14,10 @@ import dil.Compilation,
import util.Path;
import common;

import tango.io.model.IFile;
import tango.io.Path : pathNormalize = normalize, isFolder;
import tango.core.Array : lbound, sort;
import tango.sys.Environment;

alias dirSep = FileConst.PathSeparatorChar;

/// Manages loaded modules in various tables.
class ModuleManager
{
Expand Down
3 changes: 0 additions & 3 deletions src/dil/semantic/Module.d
Expand Up @@ -20,9 +20,6 @@ import util.Path;
import common;

import std.file;
import tango.io.model.IFile;

alias dirSep = FileConst.PathSeparatorChar;

/// Represents a semantic D module and a source file.
class Module : ModuleSymbol
Expand Down
4 changes: 1 addition & 3 deletions src/dil/semantic/Pass1.d
Expand Up @@ -21,11 +21,9 @@ import dil.i18n.Messages;
import dil.Compilation,
dil.Diagnostics,
dil.Enums;
import util.Path;
import common;

import tango.io.model.IFile;
alias dirSep = FileConst.PathSeparatorChar;

/// The first pass is the declaration pass.
///
/// The basic task of this class is to traverse the parse tree,
Expand Down
6 changes: 5 additions & 1 deletion src/util/Path.d
Expand Up @@ -3,9 +3,13 @@
/// $(Maturity average)
module util.Path;

import tango.io.FilePath;
import common;

import tango.io.FilePath;
import std.path;

enum dirSep = dirSeparator[0]; /// Dir separator character.

/// This class is like FilePath, but adds additional
/// operators to make things easier.
class Path : FilePath
Expand Down

0 comments on commit 39d39da

Please sign in to comment.