• R/O
  • SSH
  • HTTPS

descartes: Commit


Commit MetaInfo

Revision1645 (tree)
Time2012-12-02 23:19:47
Authorhniwa

Log Message

update of example

Change Summary

Incremental Difference

--- trunk/descartes/example/translator/pl0.5/a.c (revision 1644)
+++ trunk/descartes/example/translator/pl0.5/a.c (revision 1645)
@@ -1,9 +1,19 @@
11 #include <stdio.h>
22 #include <stdlib.h>
33
4-int main()
4+int main()
55 {
6-const int c = 1;
7-int f()
8-{
9-{
6+ int f() {
7+ {
8+ static int n;
9+ printf("%d ", n);
10+ printf("\n");
11+ n = n + 1;
12+ }
13+ }
14+ {
15+ f();
16+ f();
17+ f();
18+ }
19+}
Show on old repository browser