Advertisement
Guest User

src/dynoplibs/io.ops multi-char rec-sep GH #812

a guest
Aug 15th, 2012
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1.  
  2. diff --git a/src/dynoplibs/io.ops b/src/dynoplibs/io.ops
  3. index 7a809a9..82205c1 100644
  4. --- a/src/dynoplibs/io.ops
  5. +++ b/src/dynoplibs/io.ops
  6. @@ -75,7 +75,9 @@ This switches the filehandle to linebuffer-mode.
  7.  =cut
  8.  
  9.  inline op readline(out STR, invar PMC) :base_io {
  10. -    $1 = Parrot_io_readline(interp, $2);
  11. +    STRING *record_separator;
  12. +    GET_ATTR_record_separator(interp, SELF, record_separator);
  13. +    $1 = Parrot_io_readline_s(interp, $2, record_separator);
  14.  }
  15.  
  16.  ##########################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement