mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-25 20:00:42 +00:00
Code cleanup
This commit is contained in:
@@ -303,13 +303,9 @@ function FileRequest(/*CFURL*/ aURL, onsuccess, onfailure)
|
||||
#if COMMONJS
|
||||
if (aURL.pathExtension() === "j")
|
||||
{
|
||||
var FILE = require("file"),
|
||||
FileList = require("jake").FileList,
|
||||
aFilePath = aURL.toString().substring(5);
|
||||
|
||||
var OS = require("os"),
|
||||
var aFilePath = aURL.toString().substring(5),
|
||||
OS = require("os"),
|
||||
gccFlags = require("objective-j").currentCompilerFlags(),
|
||||
// gcc = OS.popen("gcc -E -x c -P -DPLATFORM_COMMONJS " + INCLUDES + " " + OS.enquote(aFilePath), { charset:"UTF-8" }),
|
||||
gcc = OS.popen("gcc -E -x c -P " + (gccFlags ? gccFlags : "") + " " + OS.enquote(aFilePath), { charset:"UTF-8" }),
|
||||
chunk,
|
||||
fileContents = "";
|
||||
|
||||
Reference in New Issue
Block a user