[llvm-commits] CVS: llvm-www/demo/index.cgi
Chris Lattner
sabre at nondot.org
Tue Feb 19 10:23:56 PST 2008
Changes in directory llvm-www/demo:
index.cgi updated: 1.82 -> 1.83
---
Log message:
Picky people prefer factorial.
---
Diffs of the changes: (+3 -3)
index.cgi | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm-www/demo/index.cgi
diff -u llvm-www/demo/index.cgi:1.82 llvm-www/demo/index.cgi:1.83
--- llvm-www/demo/index.cgi:1.82 Tue Feb 12 01:25:41 2008
+++ llvm-www/demo/index.cgi Tue Feb 19 12:23:00 2008
@@ -30,10 +30,10 @@
'/home/vadve/shared/llvm-2.2/Release/bin');
my $defaultsrc = "#include <stdio.h>\n#include <stdlib.h>\n\n" .
- "int power(int X) {\n if (X == 0) return 1;\n" .
- " return X*power(X-1);\n}\n\n" .
+ "int factorial(int X) {\n if (X == 0) return 1;\n" .
+ " return X*factorial(X-1);\n}\n\n" .
"int main(int argc, char **argv) {\n" .
- " printf(\"%d\\n\", power(atoi(argv[0])));\n}\n";
+ " printf(\"%d\\n\", factorial(atoi(argv[0])));\n}\n";
sub getname {
my ($extension) = @_;
More information about the llvm-commits
mailing list