[llvm-commits] CVS: llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c
Chris Lattner
lattner at cs.uiuc.edu
Tue Aug 30 10:49:30 PDT 2005
Changes in directory llvm-test/SingleSource/Benchmarks/Misc:
richards_benchmark.c updated: 1.2 -> 1.3
---
Log message:
Rename the wait function to Wait to prevent it from conflicting with the
unix wait function, allowing it to build on darwin
---
Diffs of the changes: (+4 -4)
richards_benchmark.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c
diff -u llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c:1.2 llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c:1.3
--- llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c:1.2 Sun Feb 29 21:39:02 2004
+++ llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c Tue Aug 30 12:49:18 2005
@@ -182,7 +182,7 @@
}
}
-struct task *wait(void)
+struct task *Wait(void)
{
tcb->t_state |= WAITBIT;
return (tcb);
@@ -264,7 +264,7 @@
struct task *workfn(struct packet *pkt)
{
- if ( pkt==0 ) return ( wait() );
+ if ( pkt==0 ) return ( Wait() );
else
{
int i;
@@ -311,14 +311,14 @@
return( qpkt(devpkt) );
}
}
- return ( wait() );
+ return ( Wait() );
}
struct task *devfn(struct packet *pkt)
{
if ( pkt==0 )
{
- if ( v1==0 ) return ( wait() );
+ if ( v1==0 ) return ( Wait() );
pkt = (struct packet *)v1;
v1 = 0;
return ( qpkt(pkt) );
More information about the llvm-commits
mailing list