[svn:parrot] r41519 - trunk/src/pmc
bacek at svn.parrot.org
bacek at svn.parrot.org
Sun Sep 27 09:11:26 UTC 2009
Author: bacek
Date: Sun Sep 27 09:11:25 2009
New Revision: 41519
URL: https://trac.parrot.org/parrot/changeset/41519
Log:
Revert "[PMC] Fixed FileHandle PMC's readline_interactive() message to return an empty"
Previous commit break handling of Ctrl-D in interactive shell of
PCT-based compilers.
Modified:
trunk/src/pmc/filehandle.pmc
Modified: trunk/src/pmc/filehandle.pmc
==============================================================================
--- trunk/src/pmc/filehandle.pmc Sun Sep 27 09:02:27 2009 (r41518)
+++ trunk/src/pmc/filehandle.pmc Sun Sep 27 09:11:25 2009 (r41519)
@@ -399,10 +399,10 @@
}
#endif
- if (!string_result)
- string_result = Parrot_str_new(INTERP, NULL, 0);
-
- RETURN(STRING *string_result);
+ if (string_result)
+ RETURN(STRING *string_result);
+ else
+ RETURN(PMC *PMCNULL);
}
/*
More information about the parrot-commits
mailing list