| Index: src/d8-readline.cc
|
| diff --git a/src/d8-readline.cc b/src/d8-readline.cc
|
| index 08395e53de103aa481aa2752bdf94db15bdbc0ad..8422783407f94fb56933da0794081f20bcdbe251 100644
|
| --- a/src/d8-readline.cc
|
| +++ b/src/d8-readline.cc
|
| @@ -49,7 +49,7 @@ namespace v8 {
|
| class ReadLineEditor: public LineEditor {
|
| public:
|
| ReadLineEditor() : LineEditor(LineEditor::READLINE, "readline") { }
|
| - virtual i::SmartPointer<char> Prompt(const char* prompt);
|
| + virtual i::SmartArrayPointer<char> Prompt(const char* prompt);
|
| virtual bool Open();
|
| virtual bool Close();
|
| virtual void AddHistory(const char* str);
|
| @@ -81,9 +81,9 @@ bool ReadLineEditor::Close() {
|
| }
|
|
|
|
|
| -i::SmartPointer<char> ReadLineEditor::Prompt(const char* prompt) {
|
| +i::SmartArrayPointer<char> ReadLineEditor::Prompt(const char* prompt) {
|
| char* result = readline(prompt);
|
| - return i::SmartPointer<char>(result);
|
| + return i::SmartArrayPointer<char>(result);
|
| }
|
|
|
|
|
| @@ -105,7 +105,7 @@ char* ReadLineEditor::CompletionGenerator(const char* text, int state) {
|
| static unsigned current_index;
|
| static Persistent<Array> current_completions;
|
| if (state == 0) {
|
| - i::SmartPointer<char> full_text(i::StrNDup(rl_line_buffer, rl_point));
|
| + i::SmartArrayPointer<char> full_text(i::StrNDup(rl_line_buffer, rl_point));
|
| HandleScope scope;
|
| Handle<Array> completions =
|
| Shell::GetCompletions(String::New(text), String::New(*full_text));
|
|
|