[svn:parrot] r42961 - trunk/src

darbelo at svn.parrot.org darbelo at svn.parrot.org
Wed Dec 9 19:57:34 UTC 2009


Author: darbelo
Date: Wed Dec  9 19:57:26 2009
New Revision: 42961
URL: https://trac.parrot.org/parrot/changeset/42961

Log:
Replace direct struct member poking with macro.

Modified:
   trunk/src/library.c

Modified: trunk/src/library.c
==============================================================================
--- trunk/src/library.c	Wed Dec  9 18:47:29 2009	(r42960)
+++ trunk/src/library.c	Wed Dec  9 19:57:26 2009	(r42961)
@@ -328,7 +328,7 @@
 is_abs_path(ARGIN(const STRING *file))
 {
     ASSERT_ARGS(is_abs_path)
-    const char * const file_name = file->strstart;
+    const char * const file_name = Buffer_bufstart(file);
     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 = path->strstart;
+    cnv = Buffer_bufstart(path);
     while ((cnv = strchr(cnv, path_separator)) != NULL)
         *cnv = win32_path_separator;
 }


More information about the parrot-commits mailing list