[svn:parrot] r43049 - trunk/src
darbelo at svn.parrot.org
darbelo at svn.parrot.org
Mon Dec 14 16:17:59 UTC 2009
Author: darbelo
Date: Mon Dec 14 16:17:58 2009
New Revision: 43049
URL: https://trac.parrot.org/parrot/changeset/43049
Log:
Revert this change, _bufstart can differ from strstart here.
Modified:
trunk/src/library.c
Modified: trunk/src/library.c
==============================================================================
--- trunk/src/library.c Mon Dec 14 15:22:42 2009 (r43048)
+++ trunk/src/library.c Mon Dec 14 16:17:58 2009 (r43049)
@@ -328,7 +328,7 @@
is_abs_path(ARGIN(const STRING *file))
{
ASSERT_ARGS(is_abs_path)
- const char * const file_name = (const char *)Buffer_bufstart(file);
+ const char * const file_name = (const char *)file->strstart;
if (file->strlen <= 1)
return 0;
PARROT_ASSERT(file->encoding == Parrot_fixed_8_encoding_ptr ||
@@ -371,7 +371,7 @@
PARROT_ASSERT(path->encoding == Parrot_fixed_8_encoding_ptr ||
path->encoding == Parrot_utf8_encoding_ptr);
- cnv = Buffer_bufstart(path);
+ cnv = path->strstart;
while ((cnv = strchr(cnv, path_separator)) != NULL)
*cnv = win32_path_separator;
}
More information about the parrot-commits
mailing list