| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <stdio.h> // NOLINT | 5 #include <stdio.h> // NOLINT |
| 6 #include <string.h> // NOLINT | 6 #include <string.h> // NOLINT |
| 7 #include <readline/readline.h> // NOLINT | 7 #include <readline/readline.h> // NOLINT |
| 8 #include <readline/history.h> // NOLINT | 8 #include <readline/history.h> // NOLINT |
| 9 | 9 |
| 10 // The readline includes leaves RETURN defined which breaks V8 compilation. | 10 // The readline includes leaves RETURN defined which breaks V8 compilation. |
| 11 #undef RETURN | 11 #undef RETURN |
| 12 | 12 |
| 13 #include "d8.h" | 13 #include "src/d8.h" |
| 14 | 14 |
| 15 // There are incompatibilities between different versions and different | 15 // There are incompatibilities between different versions and different |
| 16 // implementations of readline. This smooths out one known incompatibility. | 16 // implementations of readline. This smooths out one known incompatibility. |
| 17 #if RL_READLINE_VERSION >= 0x0500 | 17 #if RL_READLINE_VERSION >= 0x0500 |
| 18 #define completion_matches rl_completion_matches | 18 #define completion_matches rl_completion_matches |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 | 21 |
| 22 namespace v8 { | 22 namespace v8 { |
| 23 | 23 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 return strdup(*str); | 143 return strdup(*str); |
| 144 } else { | 144 } else { |
| 145 current_completions.Reset(); | 145 current_completions.Reset(); |
| 146 return NULL; | 146 return NULL; |
| 147 } | 147 } |
| 148 } | 148 } |
| 149 #endif // V8_SHARED | 149 #endif // V8_SHARED |
| 150 | 150 |
| 151 | 151 |
| 152 } // namespace v8 | 152 } // namespace v8 |
| OLD | NEW |