Recovered from cvs revision 2007-10-24 14:17:00

This commit is contained in:
2007-10-24 23:17:00 +00:00
parent 119ec4e513
commit 62ce250c12
8 changed files with 368 additions and 455 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: AseAwk.java,v 1.15 2007/10/19 05:05:20 bacon Exp $
* $Id: AseAwk.java,v 1.16 2007/10/24 03:46:51 bacon Exp $
*/
import java.awt.*;
@ -24,6 +24,7 @@ import ase.awk.StdAwk;
import ase.awk.Console;
import ase.awk.Context;
import ase.awk.Argument;
import ase.awk.Return;
public class AseAwk extends StdAwk
{
@ -301,11 +302,11 @@ public class AseAwk extends StdAwk
addFunction ("sleep", 1, 1);
}
public Object sleep (Context ctx, String name, Argument[] args) throws ase.awk.Exception
public void sleep (Context ctx, String name, Return ret, Argument[] args) throws ase.awk.Exception
{
try { Thread.sleep (args[0].getIntValue() * 1000); }
catch (InterruptedException e) {}
return new Long(0);
ret.setIntValue (0);
}
public void parse () throws ase.awk.Exception

View File

@ -1,5 +1,5 @@
/*
* $Id: AseAwkPanel.java,v 1.7 2007/10/21 13:58:47 bacon Exp $
* $Id: AseAwkPanel.java,v 1.8 2007/10/24 03:46:51 bacon Exp $
*/
import java.awt.*;
@ -17,6 +17,7 @@ import ase.awk.StdAwk;
import ase.awk.Console;
import ase.awk.Context;
import ase.awk.Argument;
import ase.awk.Return;
public class AseAwkPanel extends Panel
{
@ -93,11 +94,11 @@ public class AseAwkPanel extends Panel
addFunction ("sleep", 1, 1);
}
public Object sleep (Context ctx, String name, Argument[] args)
public void sleep (Context ctx, String name, Return ret, Argument[] args)
{
try { Thread.sleep (args[0].getIntValue() * 1000); }
catch (InterruptedException e) {}
return new Long(0);
ret.setIntValue (0);
}
protected int openSource (int mode)