[svn:parrot] r39052 - trunk/src/pmc

jonathan at svn.parrot.org jonathan at svn.parrot.org
Fri May 22 20:56:51 UTC 2009


Author: jonathan
Date: Fri May 22 20:56:50 2009
New Revision: 39052
URL: https://trac.parrot.org/parrot/changeset/39052

Log:
[core] Revert part of r39051; while in theory it's fine, it left us without a readline_interactive method, possibly because of a bad interaction between conditional compilation and pmc2c.

Modified:
   trunk/src/pmc/filehandle.pmc

Modified: trunk/src/pmc/filehandle.pmc
==============================================================================
--- trunk/src/pmc/filehandle.pmc	Fri May 22 19:30:32 2009	(r39051)
+++ trunk/src/pmc/filehandle.pmc	Fri May 22 20:56:50 2009	(r39052)
@@ -395,8 +395,8 @@
 
 */
 
-#ifdef PARROT_HAS_READLINE
     METHOD readline_interactive(STRING *prompt :optional, INTVAL got_prompt :opt_flag) {
+#ifdef PARROT_HAS_READLINE
         STRING *string_result;
         char * const r = readline(got_prompt ? prompt->strstart : NULL);
 
@@ -410,9 +410,7 @@
         }
 
         RETURN(PMC *PMCNULL);
-    }
 #else
-    METHOD readline_interactive(STRING *prompt :optional, INTVAL got_prompt :opt_flag) {
         STRING *string_result;
         UINTVAL len;
 
@@ -437,8 +435,8 @@
         }
 
         RETURN(STRING *string_result);
-    }
 #endif
+    }
 
 /*
 


More information about the parrot-commits mailing list