mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-03 07:36:16 +00:00
Semicolons.
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user