A few import fixes.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2011-01-23 08:43:46 -08:00
parent 38dc125fc2
commit aada884cff
7 changed files with 23 additions and 7 deletions
+1
View File
@@ -21,6 +21,7 @@
*/
@import <Foundation/CPObject.j>
@import <Foundation/CPTimer.j>
@import "CAMediaTimingFunction.j"
+1
View File
@@ -231,6 +231,7 @@ var _builtInCharacterSets = {};
- (BOOL)hasMemberInPlane:(int)plane // TO DO : when inverted
{
// FIXME: range is undefined... don't know what's supposed to be going on here.
// the highest Unicode plane we reach.
// (There are 65536 code points in each plane.)
var maxPlane = Math.floor((range.start + range.length - 1) / 65536); // FIXME: should iterate _ranges
+2
View File
@@ -23,10 +23,12 @@
@import "CPArray.j"
@import "CPDictionary.j"
@import "CPException.j"
@import "CPIndexSet.j"
@import "CPNull.j"
@import "CPObject.j"
@import "CPSet.j"
CPUndefinedKeyException = @"CPUndefinedKeyException";
CPTargetObjectUserInfoKey = @"CPTargetObjectUserInfoKey";
CPUnknownUserInfoKey = @"CPUnknownUserInfoKey";
+2
View File
@@ -20,8 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@import "CPException.j"
@import "CPObject.j"
CPPropertyListUnknownFormat = 0;
CPPropertyListOpenStepFormat = kCFPropertyListOpenStepFormat;
CPPropertyListXMLFormat_v1_0 = kCFPropertyListXMLFormat_v1_0;
+1 -1
View File
@@ -102,7 +102,7 @@ CPWebDAVManagerNonCollectionResourceType = 0;
}
if (!aBlock)
return makeContents(aURL, response);
return makeContents(aURL, [self PROPFIND:aURL properties:properties depth:1 block:nil]);
[self PROPFIND:aURL properties:properties depth:1 block:function(aURL, response)
{
+11 -5
View File
@@ -253,18 +253,24 @@ task ("demos", function()
// Testing
task("test", ["CommonJS", "test-only"]);
task("test", ["CommonJS", "test-only", "check-missing-imports"]);
task("test-only", function()
{
var tests = new FileList('Tests/**/*Test.j');
var cmd = ["ojtest"].concat(tests.items());
var tests = new FileList('Tests/**/*Test.j'),
cmd = ["ojtest"].concat(tests.items()),
code = OS.system(serializedENV() + " " + cmd.map(OS.enquote).join(" "));
var code = OS.system(serializedENV() + " " + cmd.map(OS.enquote).join(" "));
if (code !== 0)
OS.exit(code);
});
OS.system(serializedENV() + " " + ["js", "Tests/DetectMissingImports.js"].map(OS.enquote).join(" "));
task("check-missing-imports", function()
{
var code = OS.system(serializedENV() + " " + ["js", "Tests/DetectMissingImports.js"].map(OS.enquote).join(" "));
if (code !== 0)
OS.exit(code);
});
task("push-packages", ["push-cappuccino", "push-objective-j"]);
+5 -1
View File
@@ -5,7 +5,11 @@ var FILE = require("file"),
var cPreprocessedFileContents = function(aFilePath)
{
var gcc = OS.popen("gcc -E -x c -P -DPLATFORM_COMMONJS " + OS.enquote(aFilePath), { charset:"UTF-8" }),
var INCLUDES = new FileList(FILE.join(FILE.dirname(aFilePath), "**", "*.h")).map(function(aFilename)
{
return "--include \"" + aFilename + "\"";
}).join(" ");
var gcc = OS.popen("gcc -E -x c -P -DPLATFORM_COMMONJS " + INCLUDES + " " + OS.enquote(aFilePath), { charset:"UTF-8" }),
chunk,
fileContents = "";