Changeset 30795 in webkit for trunk/JavaScriptCore/API/minidom.c
- Timestamp:
- Mar 5, 2008, 10:19:12 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/minidom.c
r29672 r30795 40 40 int main(int argc, char* argv[]) 41 41 { 42 UNUSED_PARAM(argc); 43 UNUSED_PARAM(argv); 42 const char *scriptPath = "minidom.js"; 43 if (argc > 1) { 44 scriptPath = argv[1]; 45 } 44 46 45 47 JSGlobalContextRef context = JSGlobalContextCreate(NULL); … … 54 56 JSStringRelease(node); 55 57 56 char* scriptUTF8 = createStringWithContentsOfFile( "minidom.js");58 char* scriptUTF8 = createStringWithContentsOfFile(scriptPath); 57 59 JSStringRef script = JSStringCreateWithUTF8CString(scriptUTF8); 58 60 JSValueRef exception;
Note:
See TracChangeset
for help on using the changeset viewer.