[svn:parrot] r36429 - trunk/src
coke at svn.parrot.org
coke at svn.parrot.org
Sun Feb 8 03:43:39 UTC 2009
Author: coke
Date: Sun Feb 8 03:43:33 2009
New Revision: 36429
URL: https://trac.parrot.org/parrot/changeset/36429
Log:
TT#286 - Fix bug introduced on darwin in r36427 -
stdin is apparently a macro there, so using it as a variable name is not boss.
Modified:
trunk/src/debug.c
Modified: trunk/src/debug.c
==============================================================================
--- trunk/src/debug.c Sun Feb 8 01:13:19 2009 (r36428)
+++ trunk/src/debug.c Sun Feb 8 03:43:33 2009 (r36429)
@@ -1265,10 +1265,10 @@
STRING * readline = CONST_STRING(pi, "readline_interactive");
STRING * prompt = CONST_STRING(pi, "(pdb) ");
STRING *s= Parrot_str_new(pi, NULL, 0);
- PMC *stdin = Parrot_io_stdhandle(interp->debugger, 0, NULL);
+ PMC *tmp_stdin = Parrot_io_stdhandle(interp->debugger, 0, NULL);
Parrot_PCCINVOKE(interp->debugger,
- stdin, readline,
+ tmp_stdin, readline,
"S->S", prompt, & s);
{
char * aux = Parrot_str_to_cstring(interp->debugger, s);
@@ -1282,7 +1282,7 @@
/*
while (ch != EOF && ch != '\n' && (i < DEBUG_CMD_BUFFER_LENGTH)) {
c[i++] = (char)ch;
- ch = fgetc(stdin);
+ ch = fgetc(tmp_stdin);
}
c[i] = '\0';
More information about the parrot-commits
mailing list