A little code clean up.

This commit is contained in:
Martin Carlberg committed 2012-12-17 17:14:33 +01:00
1 parent ca99114b16
commit 803c8ce6b5
2 files changed
+444 -60

No files matched your search

+2 -7
View File
@@ -41,13 +41,8 @@ function FileExecutable(/*CFURL|String*/ aURL, /*Dictionary*/ aFilenameTranslate
if (fileContents.match(/^@STATIC;/))
executable = decompile(fileContents, aURL);
else if ((extension === "j" || !extension) && !fileContents.match(/^{/)) {
// console.log("Compile: " + aURL);
// if (!aURL || aURL.toString().indexOf("Boplats/Office/Applications") === -1)
// executable = exports.preprocess(fileContents, aURL, Preprocessor.Flags.IncludeDebugSymbols);
// else
executable = exports.compileFileDependencies(fileContents, aURL, ObjJCompiler.Flags.IncludeDebugSymbols);
}
else if ((extension === "j" || !extension) && !fileContents.match(/^{/))
executable = exports.compileFileDependencies(fileContents, aURL, ObjJCompiler.Flags.IncludeDebugSymbols); // FIXME: Include correct flags
else
executable = new Executable(fileContents, [], aURL);
File diff suppressed because it is too large. Load diff