[svn:parrot] r45885 - in trunk: include/parrot src

petdance at svn.parrot.org petdance at svn.parrot.org
Thu Apr 22 05:02:34 UTC 2010


Author: petdance
Date: Thu Apr 22 05:02:33 2010
New Revision: 45885
URL: https://trac.parrot.org/parrot/changeset/45885

Log:
starting on the consting of all the STRING *

Modified:
   trunk/include/parrot/packfile.h
   trunk/src/packfile.c

Modified: trunk/include/parrot/packfile.h
==============================================================================
--- trunk/include/parrot/packfile.h	Thu Apr 22 04:59:31 2010	(r45884)
+++ trunk/include/parrot/packfile.h	Thu Apr 22 05:02:33 2010	(r45885)
@@ -582,7 +582,7 @@
 PARROT_CAN_RETURN_NULL
 PackFile_Segment * PackFile_find_segment(PARROT_INTERP,
     ARGIN_NULLOK(PackFile_Directory *dir),
-    ARGIN(STRING *name),
+    ARGIN(const STRING *name),
     int sub_dir)
         __attribute__nonnull__(1)
         __attribute__nonnull__(3);

Modified: trunk/src/packfile.c
==============================================================================
--- trunk/src/packfile.c	Thu Apr 22 04:59:31 2010	(r45884)
+++ trunk/src/packfile.c	Thu Apr 22 05:02:33 2010	(r45885)
@@ -1212,7 +1212,7 @@
 /*
 
 =item C<PackFile_Segment * PackFile_find_segment(PARROT_INTERP,
-PackFile_Directory *dir, STRING *name, int sub_dir)>
+PackFile_Directory *dir, const STRING *name, int sub_dir)>
 
 Finds the segment with the name C<name> in the C<PackFile_Directory> if
 C<sub_dir> is true, searches directories recursively.  The returned segment is
@@ -1227,7 +1227,7 @@
 PARROT_CAN_RETURN_NULL
 PackFile_Segment *
 PackFile_find_segment(PARROT_INTERP, ARGIN_NULLOK(PackFile_Directory *dir),
-    ARGIN(STRING *name), int sub_dir)
+    ARGIN(const STRING *name), int sub_dir)
 {
     ASSERT_ARGS(PackFile_find_segment)
     if (dir) {


More information about the parrot-commits mailing list