projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
285f815
)
Add support for stdout returns
author
Miguel de Icaza
<miguel@gnome.org>
Tue, 14 Jan 2014 17:52:18 +0000
(12:52 -0500)
committer
Miguel de Icaza
<miguel@gnome.org>
Tue, 14 Jan 2014 17:52:18 +0000
(12:52 -0500)
mcs/tools/csharp/repl.cs
patch
|
blob
|
history
diff --git
a/mcs/tools/csharp/repl.cs
b/mcs/tools/csharp/repl.cs
index 1d8738bce74a707d7c88aa06aa166462febe7e08..5083e6f28c594633232f14012fb1b9321c9e0c7e 100644
(file)
--- a/
mcs/tools/csharp/repl.cs
+++ b/
mcs/tools/csharp/repl.cs
@@
-603,7
+603,10
@@
namespace Mono {
RESULT_NOT_SET = 3,
// Errors and warnings string follows
- ERROR = 4,
+ ERROR = 4,
+
+ // Stdout
+ STDOUT = 5,
}
class ClientCSharpShell : CSharpShell {
@@
-650,6
+653,11
@@
namespace Mono {
string err = ns.GetString ();
Console.Error.WriteLine (err);
break;
+
+ case AgentStatus.STDOUT:
+ string stdout = ns.GetString ();
+ Console.WriteLine (stdout);
+ break;
case AgentStatus.RESULT_NOT_SET:
return null;