[svn:parrot] r40123 - trunk/t/compilers/imcc/syn

NotFound at svn.parrot.org NotFound at svn.parrot.org
Thu Jul 16 20:05:07 UTC 2009


Author: NotFound
Date: Thu Jul 16 20:05:06 2009
New Revision: 40123
URL: https://trac.parrot.org/parrot/changeset/40123

Log:
[cage] use constant in libpaths instead of magic value

Modified:
   trunk/t/compilers/imcc/syn/file.t

Modified: trunk/t/compilers/imcc/syn/file.t
==============================================================================
--- trunk/t/compilers/imcc/syn/file.t	Thu Jul 16 19:32:01 2009	(r40122)
+++ trunk/t/compilers/imcc/syn/file.t	Thu Jul 16 20:05:06 2009	(r40123)
@@ -463,6 +463,7 @@
 
     pir_output_is( <<"CODE", <<'OUT', 'load PIR from added paths, minding slash' );
   .include 'iglobals.pasm'
+  .include 'libpaths.pasm'
 
   .sub main :main
       .local pmc interp
@@ -471,9 +472,8 @@
       .local pmc lib_paths
       lib_paths = interp[.IGLOBALS_LIB_PATHS]
 
-      # XXX - hard-coded magic constant (should be PARROT_LIB_PATH_LIBRARY)
       .local pmc include_paths
-      include_paths = lib_paths[1]
+      include_paths = lib_paths[.PARROT_LIB_PATH_LIBRARY]
 
       unshift include_paths, '$temp_dir'
       load_bytecode 'with_slash.pir'


More information about the parrot-commits mailing list