Skip to content

Commit

Permalink
Use SC_Filesystem instead of SC_DirUtils everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
mossheim committed Jul 24, 2017
1 parent 0edf563 commit 867871a
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 36 deletions.
1 change: 0 additions & 1 deletion SCDoc/SCDocPrim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include "PyrPrimitive.h"
#include "PyrSymbol.h"
#include "SCBase.h"
//#include "SC_DirUtils.h" // TODO_BRIAN: no longer needed, delete this

#include <stdlib.h>
#include <string.h>
Expand Down
3 changes: 1 addition & 2 deletions editors/sc-ide/core/util/standard_dirs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@

#include "standard_dirs.hpp"

//#include <SC_DirUtils.h>
// TODO_BRIAN: move this into SC_DirUtils
#include "SC_Filesystem.hpp"

namespace ScIDE {

Expand Down
2 changes: 2 additions & 0 deletions editors/sc-ide/core/util/standard_dirs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

#include <QString>

// @TODO: change to SC_Filesystem instead

namespace ScIDE {

enum StandardDirectory {
Expand Down
2 changes: 1 addition & 1 deletion lang/LangPrimSource/PyrFilePrim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Primitives for File i/o.
#include "PyrFilePrim.h"
#include "ReadWriteMacros.h"
#include "SCBase.h"
//#include "SC_DirUtils.h"
#include "SC_Filesystem.hpp"
#include "sc_popen.h"

#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion lang/LangPrimSource/PyrPlatformPrim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Primitives for platform dependent directories, constants etc.
*/

//#include "SC_DirUtils.h"
#include "SC_Filesystem.hpp"
#include "PyrPrimitive.h"
#include "PyrKernel.h"
#ifdef _WIN32
Expand Down
2 changes: 1 addition & 1 deletion lang/LangPrimSource/PyrPrimitive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
//#include "Wacom.h"
#include "InitAlloc.h"
#include "SC_LanguageConfig.hpp"
//#include "SC_DirUtils.h"
#include "SC_Filesystem.hpp"
#include "SC_Version.hpp"
#include <map>

Expand Down
2 changes: 1 addition & 1 deletion lang/LangPrimSource/PyrStringPrim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Primitives for String.
#include <stdlib.h>
#include <ctype.h>
#include "PyrLexer.h"
//#include "SC_DirUtils.h"
#include "SC_Filesystem.hpp"
#ifdef _WIN32
# include <direct.h>
# include "SC_Win32Utils.h"
Expand Down
2 changes: 1 addition & 1 deletion lang/LangPrimSource/PyrUnixPrim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Primitives for Unix.
#include "VMGlobals.h"
#include "GC.h"
#include "SC_RGen.h"
//#include "SC_DirUtils.h" // TODO_BRIAN: delete this include
#include "SC_Filesystem.hpp"
#include "sc_popen.h"
#include "SCBase.h"

Expand Down
2 changes: 1 addition & 1 deletion lang/LangSource/PyrLexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

#include "SC_LanguageConfig.hpp"

//#include "SC_DirUtils.h"
#include "SC_Filesystem.hpp"
#include "SC_TextUtils.hpp"

int yyparse();
Expand Down
2 changes: 1 addition & 1 deletion lang/LangSource/SC_LanguageClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#include "PyrSched.h"
#include "GC.h"
#include "VMGlobals.h"
//#include "SC_DirUtils.h"
#include "SC_Filesystem.hpp"
#include "SCBase.h"
#include "SC_StringBuffer.h"

Expand Down
28 changes: 7 additions & 21 deletions lang/LangSource/SC_LanguageConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,13 @@
*/

#include "SC_LanguageConfig.hpp"
#include "SCBase.h"
#include "SC_DirUtils.h"

#include <assert.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#ifdef _WIN32
# include "SC_Win32Utils.h"
#else
# include <sys/param.h>
# include <unistd.h>
# include <libgen.h>
#endif

#include <fstream>

#include <boost/filesystem.hpp>
#include <yaml-cpp/yaml.h>
#include "SC_Filesystem.hpp" // getDirectory

#include "SCBase.h" // postfl

#include <boost/filesystem/operations.hpp> // exists (, canonical?)
#include <boost/filesystem/fstream.hpp> // ofstream
#include <yaml-cpp/yaml.h> // YAML

static const char* INCLUDE_PATHS = "includePaths";
static const char* EXCLUDE_PATHS = "excludePaths";
Expand Down
2 changes: 1 addition & 1 deletion lang/LangSource/SC_TerminalClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#include "PyrLexer.h"
#include "PyrSlot.h"
#include "VMGlobals.h"
//#include "SC_DirUtils.h" // for gIdeName
#include "SC_Filesystem.hpp"
#include "SC_LanguageConfig.hpp"
#include "SC_Version.hpp"

Expand Down
2 changes: 1 addition & 1 deletion server/scsynth/SC_GraphDef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "ReadWriteMacros.h"
#include "SC_Prototypes.h"
#include "SC_CoreAudio.h"
//#include "SC_DirUtils.h"
#include "SC_Filesystem.hpp"


#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion server/scsynth/SC_Lib_Cintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "SC_WorldOptions.h"
#include "SC_StringParser.h"
#include "SC_InterfaceTable.h"
//#include "SC_DirUtils.h"
#include "SC_Filesystem.hpp"
#include <stdexcept>
#ifndef _MSC_VER
#include <dirent.h>
Expand Down
2 changes: 1 addition & 1 deletion server/scsynth/SC_SequencedCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "scsynthsend.h"
#include "SC_Prototypes.h"
#include "SC_HiddenWorld.h"
//#include "SC_DirUtils.h"
#include "SC_Filesystem.hpp"
#include "SC_StringParser.h"
#include "../../common/SC_SndFileHelpers.hpp"
#include "SC_WorldOptions.h"
Expand Down
2 changes: 1 addition & 1 deletion server/scsynth/SC_World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include "SC_Errors.h"
#include <stdio.h>
#include "SC_Prototypes.h"
//#include "SC_DirUtils.h"
#include "SC_Filesystem.hpp"
#include "SC_Lock.h"
#include "SC_Lib_Cintf.h"
#include "../../common/SC_SndFileHelpers.hpp"
Expand Down

0 comments on commit 867871a

Please sign in to comment.