Changeset 46598 in webkit for trunk/JavaScriptCore/jsc.cpp
- Timestamp:
- Jul 30, 2009, 1:57:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jsc.cpp
r46431 r46598 444 444 } 445 445 446 static 447 #if !HAVE(READLINE) 448 NO_RETURN 449 #endif 450 void runInteractive(GlobalObject* globalObject) 446 #define RUNNING_FROM_XCODE 0 447 448 static void runInteractive(GlobalObject* globalObject) 451 449 { 452 450 while (true) { 453 #if HAVE(READLINE) 451 #if HAVE(READLINE) && !RUNNING_FROM_XCODE 454 452 char* line = readline(interactivePrompt); 455 453 if (!line) … … 460 458 free(line); 461 459 #else 462 p uts(interactivePrompt);460 printf("%s", interactivePrompt); 463 461 Vector<char, 256> line; 464 462 int c; … … 469 467 line.append(c); 470 468 } 469 if (line.isEmpty()) 470 break; 471 471 line.append('\0'); 472 472 Completion completion = evaluate(globalObject->globalExec(), globalObject->globalScopeChain(), makeSource(line.data(), interpreterName));
Note:
See TracChangeset
for help on using the changeset viewer.