Reviewers: Søren Gjesse, Description: Change the signature for StrNDup to match the implementation. This mismatch causes problems if attempting to build d8 with readline support.
Please review this at http://codereview.chromium.org/414033 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/allocation.h Index: src/allocation.h =================================================================== --- src/allocation.h (revision 3338) +++ src/allocation.h (working copy) @@ -124,7 +124,7 @@ // and StrNDup uses new and calls the FatalProcessOutOfMemory handler // if allocation fails. char* StrDup(const char* str); -char* StrNDup(const char* str, size_t n); +char* StrNDup(const char* str, int n); // Allocation policy for allocating in the C free store using malloc --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
