From 7e8b71dd5289c0634de6826df7ac04adc5251908 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Thu, 10 Nov 2011 10:36:47 +0000 Subject: [PATCH] Semicolons. --- Objective-J/CommonJS/lib/objective-j.js | 6 +++--- .../CommonJS/lib/objective-j/compiler.js | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Objective-J/CommonJS/lib/objective-j.js b/Objective-J/CommonJS/lib/objective-j.js index 3bb275a27..8b0d4e2f5 100644 --- a/Objective-J/CommonJS/lib/objective-j.js +++ b/Objective-J/CommonJS/lib/objective-j.js @@ -9,7 +9,7 @@ if (system.engine === "rhino") window.__parent__ = null; window.__proto__ = global; } - + // setup OBJJ_HOME, OBJJ_INCLUDE_PATHS, etc window.OBJJ_HOME = exports.OBJJ_HOME = FILE.resolve(module.path, ".."); @@ -146,7 +146,7 @@ exports.repl = function() require("browser/timeout").serviceTimeouts(); } -} +}; // creates a narwhal factory function in the objj module scope exports.make_narwhal_factory = function(path) @@ -157,7 +157,7 @@ exports.make_narwhal_factory = function(path) Executable.setCommonJSArguments(require, exports, module, system, print, window); Executable.fileImporterForURL(FILE.dirname(path))(path, YES); } -} +}; } // end "with" diff --git a/Objective-J/CommonJS/lib/objective-j/compiler.js b/Objective-J/CommonJS/lib/objective-j/compiler.js index a0c54468c..14e5d251c 100644 --- a/Objective-J/CommonJS/lib/objective-j/compiler.js +++ b/Objective-J/CommonJS/lib/objective-j/compiler.js @@ -100,16 +100,16 @@ function resolveFlags(args) for (; index < count; ++index) { var argument = args[index]; - + if (argument === "-o") { if (++index < count) outputFilePaths.push(args[index]); } - + else if (argument.indexOf("-D") === 0) - gccFlags.push(argument) - + gccFlags.push(argument); + else if (argument.indexOf("-U") === 0) gccFlags.push(argument); @@ -124,13 +124,13 @@ function resolveFlags(args) else if (argument.indexOf("-E") === 0) objjcFlags &= ~ObjectiveJ.Preprocessor.Flags.Preprocess; - + else if (argument.indexOf("-S") === 0) objjcFlags &= ~ObjectiveJ.Preprocessor.Flags.CheckSyntax; - + else if (argument.indexOf("-g") === 0) objjcFlags |= ObjectiveJ.Preprocessor.Flags.IncludeDebugSymbols; - + else if (argument.indexOf("-O") === 0) objjcFlags |= ObjectiveJ.Preprocessor.Flags.Compress; @@ -149,7 +149,7 @@ exports.compile = function(aFilePath, flags) var resolvedFlags = resolveFlags(flags); return compileWithResolvedFlags(aFilePath, resolvedFlags.objjcFlags, resolvedFlags.gccFlags); -} +}; exports.main = function(args) { @@ -167,7 +167,7 @@ exports.main = function(args) FILE.write(outputFilePaths[index], compileWithResolvedFlags(filePath, objjcFlags, gccFlags), { charset: "UTF-8" }); }); -} +}; if (require.main == module.id) exports.main(system.args);