Changeset dd51906 for src/examples
- Timestamp:
- Jun 7, 2016, 1:47:52 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- ac78e25
- Parents:
- d5f1cfc
- Location:
- src/examples
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/examples/Makefile.in ¶
rd5f1cfc rdd51906 198 198 esac; \ 199 199 done; \ 200 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/examples/Makefile'; \200 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/examples/Makefile'; \ 201 201 $(am__cd) $(top_srcdir) && \ 202 $(AUTOMAKE) -- gnusrc/examples/Makefile202 $(AUTOMAKE) --foreign src/examples/Makefile 203 203 .PRECIOUS: Makefile 204 204 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
TabularUnified src/examples/io.c ¶
rd5f1cfc rdd51906 11 11 // Created On : Wed Mar 2 16:56:02 2016 12 12 // Last Modified By : Peter A. Buhr 13 // Last Modified On : Sat Apr 30 08:34:13201614 // Update Count : 2 713 // Last Modified On : Thu May 26 10:06:00 2016 14 // Update Count : 28 15 15 // 16 16 … … 92 92 | 25 | "`" | 27 93 93 | 25 | "\"" | 27 94 | 25 | " " | 27 94 95 | 25 | "\f" | 27 95 96 | 25 | "\n" | 27 -
TabularUnified src/examples/sum.c ¶
rd5f1cfc rdd51906 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // sum.c -- 7 // sum.c -- test resolvers ability to deal with many variables with the same name and to use the minimum number of casts 8 // necessary to disambiguate overloaded variable names. 8 9 // 9 10 // Author : Peter A. Buhr 10 11 // Created On : Wed May 27 17:56:53 2015 11 12 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 2 15:07:57201613 // Update Count : 19813 // Last Modified On : Thu May 26 09:25:42 2016 14 // Update Count : 201 14 15 // 15 16 … … 75 76 76 77 struct S { int i, j; } 0 = { 0, 0 }, 1 = { 1, 1 }; 77 S ?+?( S t1, S t2 ) { S s = { t1.i + t2.i, t1.j + t2.j }; return s; }78 S ?+?( S t1, S t2 ) { return (S){ t1.i + t2.i, t1.j + t2.j }; } 78 79 S ?+=?( S *t1, S t2 ) { *t1 = *t1 + t2; return *t1; } 79 80 S ++?( S *t ) { *t += 1; return *t; }
Note: See TracChangeset
for help on using the changeset viewer.