changes to build.xml

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@10037 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
phaller 2007-02-19 14:22:00 +00:00
parent 42e81e2185
commit c728a843c6
2 changed files with 6 additions and 3 deletions

View File

@ -652,9 +652,9 @@ TEST
<mkdir dir="${strap.dir}/lib/actors"/> <mkdir dir="${strap.dir}/lib/actors"/>
<javac <javac
srcdir="${src.dir}/actors" srcdir="${src.dir}/actors"
destdir="${quick.dir}/lib/actors" destdir="${strap.dir}/lib/actors"
source="1.4" target="1.4" deprecation="yes" source="1.4" target="1.4" deprecation="yes"
classpath="${quick.dir}/lib/actors" classpath="${strap.dir}/lib/actors"
includes="scala/actors/**/*.java"/> includes="scala/actors/**/*.java"/>
<quick <quick
srcdir="${src.dir}/actors" srcdir="${src.dir}/actors"
@ -797,6 +797,9 @@ DOCUMENTATION
<include name="dbc/**/*.scala"/> <include name="dbc/**/*.scala"/>
<include name="actors/**/*.scala"/> <include name="actors/**/*.scala"/>
<exclude name="actors/scala/actors/ThreadPoolScheduler.scala" if="java14"/> <exclude name="actors/scala/actors/ThreadPoolScheduler.scala" if="java14"/>
<exclude name="actors/scala/actors/Scheduler.scala"/>
<exclude name="actors/scala/actors/FJTaskScheduler.scala"/>
<exclude name="actors/scala/actors/FJTaskScheduler2.scala"/>
<include name="library/**/*.scala"/> <include name="library/**/*.scala"/>
<excludesfile name="${nsc.excludes.file}" if="excludes.avail"/> <excludesfile name="${nsc.excludes.file}" if="excludes.avail"/>
</quickdoc> </quickdoc>

View File

@ -12,7 +12,7 @@ object boundedbuffer {
val buf = new Array[T](N) val buf = new Array[T](N)
var in = 0; var out = 0; var n = 0 var in = 0; var out = 0; var n = 0
loop { loop {
receive { react {
case Put(x) if n < N => case Put(x) if n < N =>
buf(in) = x; in = (in + 1) % N; n = n + 1; reply() buf(in) = x; in = (in + 1) % N; n = n + 1; reply()
case Get if n > 0 => case Get if n > 0 =>