Changeset 73abe95
- Timestamp:
- Aug 6, 2018, 2:50:03 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 58b6d1b
- Parents:
- ff593a3
- Files:
-
- 126 edited
- 31 moved
-
benchmark/Monitor.c (modified) (1 diff)
-
benchmark/bench.h (modified) (1 diff)
-
benchmark/creation/cfa_cor.c (modified) (1 diff)
-
benchmark/creation/cfa_thrd.c (modified) (1 diff)
-
benchmark/ctxswitch/cfa_cor.c (modified) (1 diff)
-
benchmark/ctxswitch/cfa_thrd.c (modified) (1 diff)
-
benchmark/ctxswitch/cfa_thrd2.c (modified) (1 diff)
-
benchmark/mutex/cfa1.c (modified) (1 diff)
-
benchmark/mutex/cfa2.c (modified) (1 diff)
-
benchmark/mutex/cfa4.c (modified) (1 diff)
-
benchmark/schedext/cfa1.c (modified) (1 diff)
-
benchmark/schedext/cfa2.c (modified) (1 diff)
-
benchmark/schedext/cfa4.c (modified) (1 diff)
-
benchmark/schedint/cfa1.c (modified) (1 diff)
-
benchmark/schedint/cfa2.c (modified) (1 diff)
-
benchmark/schedint/cfa4.c (modified) (1 diff)
-
examples/ArrayN.c (modified) (1 diff)
-
examples/gc_no_raii/bug-repro/blockers/file_scope.c (modified) (1 diff)
-
examples/gc_no_raii/bug-repro/blockers/recursive_realloc.c (modified) (1 diff)
-
examples/gc_no_raii/bug-repro/field.c (modified) (1 diff)
-
examples/gc_no_raii/bug-repro/slow_malloc.c (modified) (1 diff)
-
examples/gc_no_raii/src/internal/collector.c (modified) (1 diff)
-
examples/gc_no_raii/src/internal/state.c (modified) (1 diff)
-
examples/gc_no_raii/src/internal/state.h (modified) (1 diff)
-
examples/gc_no_raii/src/tools/print.h (modified) (1 diff)
-
examples/gc_no_raii/src/tools/worklist.h (modified) (1 diff)
-
examples/gc_no_raii/test/gctest.c (modified) (1 diff)
-
examples/multicore.c (modified) (1 diff)
-
examples/prolog.c (modified) (2 diffs)
-
examples/quad.c (modified) (2 diffs)
-
examples/square.c (modified) (2 diffs)
-
examples/twice.c (modified) (2 diffs)
-
examples/wrapper/src/pointer.h (modified) (1 diff)
-
examples/zero_one.c (modified) (2 diffs)
-
libcfa/src/Makefile.am (modified) (2 diffs)
-
libcfa/src/assert.cfa (modified) (1 diff)
-
libcfa/src/bits/algorithm.hfa (moved) (moved from libcfa/src/bits/algorithms.h ) (1 diff)
-
libcfa/src/bits/align.hfa (moved) (moved from libcfa/src/bits/align.h ) (1 diff)
-
libcfa/src/bits/containers.hfa (moved) (moved from libcfa/src/bits/containers.h ) (2 diffs)
-
libcfa/src/bits/debug.hfa (moved) (moved from libcfa/src/bits/debug.h ) (1 diff)
-
libcfa/src/bits/defs.hfa (moved) (moved from libcfa/src/bits/defs.h ) (1 diff)
-
libcfa/src/bits/locks.hfa (moved) (moved from libcfa/src/bits/locks.h ) (2 diffs)
-
libcfa/src/bits/signal.hfa (moved) (moved from libcfa/src/bits/signal.h ) (2 diffs)
-
libcfa/src/clock.hfa (moved) (moved from libcfa/src/clock ) (2 diffs)
-
libcfa/src/common.hfa (moved) (moved from libcfa/src/common )
-
libcfa/src/concurrency/alarm.cfa (modified) (1 diff)
-
libcfa/src/concurrency/alarm.hfa (moved) (moved from libcfa/src/concurrency/alarm.h ) (1 diff)
-
libcfa/src/concurrency/coroutine.cfa (modified) (1 diff)
-
libcfa/src/concurrency/coroutine.hfa (moved) (moved from libcfa/src/concurrency/coroutine )
-
libcfa/src/concurrency/invoke.h (modified) (1 diff)
-
libcfa/src/concurrency/kernel.cfa (modified) (2 diffs)
-
libcfa/src/concurrency/kernel.hfa (moved) (moved from libcfa/src/concurrency/kernel ) (1 diff)
-
libcfa/src/concurrency/kernel_private.hfa (moved) (moved from libcfa/src/concurrency/kernel_private.h ) (2 diffs)
-
libcfa/src/concurrency/monitor.cfa (modified) (1 diff)
-
libcfa/src/concurrency/monitor.hfa (moved) (moved from libcfa/src/concurrency/monitor )
-
libcfa/src/concurrency/mutex.cfa (modified) (1 diff)
-
libcfa/src/concurrency/mutex.hfa (moved) (moved from libcfa/src/concurrency/mutex ) (1 diff)
-
libcfa/src/concurrency/preemption.cfa (modified) (2 diffs)
-
libcfa/src/concurrency/preemption.hfa (moved) (moved from libcfa/src/concurrency/preemption.h ) (2 diffs)
-
libcfa/src/concurrency/thread.cfa (modified) (1 diff)
-
libcfa/src/concurrency/thread.hfa (moved) (moved from libcfa/src/concurrency/thread )
-
libcfa/src/containers/maybe.hfa (moved) (moved from libcfa/src/containers/maybe )
-
libcfa/src/containers/pair.hfa (moved) (moved from libcfa/src/containers/pair )
-
libcfa/src/containers/result.hfa (moved) (moved from libcfa/src/containers/result )
-
libcfa/src/containers/vector.cfa (modified) (1 diff)
-
libcfa/src/containers/vector.hfa (moved) (moved from libcfa/src/containers/vector )
-
libcfa/src/exception.c (modified) (1 diff)
-
libcfa/src/fstream.hfa (moved) (moved from libcfa/src/fstream )
-
libcfa/src/gmp.hfa (moved) (moved from libcfa/src/gmp ) (1 diff)
-
libcfa/src/heap.cfa (modified) (7 diffs)
-
libcfa/src/interpose.cfa (modified) (2 diffs)
-
libcfa/src/iostream (modified) (1 diff)
-
libcfa/src/iterator.hfa (moved) (moved from libcfa/src/iterator )
-
libcfa/src/limits.hfa (moved) (moved from libcfa/src/limits )
-
libcfa/src/math.hfa (moved) (moved from libcfa/src/math )
-
libcfa/src/rational.hfa (moved) (moved from libcfa/src/rational )
-
libcfa/src/startup.cfa (modified) (1 diff)
-
libcfa/src/startup.hfa (moved) (moved from libcfa/src/startup.h ) (1 diff)
-
libcfa/src/stdlib.hfa (moved) (moved from libcfa/src/stdlib )
-
libcfa/src/time.hfa (moved) (moved from libcfa/src/time ) (1 diff)
-
libcfa/src/time_t.hfa (moved) (moved from libcfa/src/time_t.h ) (2 diffs)
-
src/Concurrency/Keywords.cc (modified) (5 diffs)
-
src/Concurrency/Waitfor.cc (modified) (1 diff)
-
tests/Makefile.am (modified) (2 diffs)
-
tests/abs.c (modified) (2 diffs)
-
tests/alloc.c (modified) (1 diff)
-
tests/ato.c (modified) (2 diffs)
-
tests/avltree/avl1.c (modified) (1 diff)
-
tests/avltree/avl3.c (modified) (1 diff)
-
tests/avltree/avl_test.c (modified) (1 diff)
-
tests/complex.c (modified) (2 diffs)
-
tests/concurrent/coroutineYield.c (modified) (1 diff)
-
tests/concurrent/examples/boundedBufferEXT.c (modified) (1 diff)
-
tests/concurrent/examples/boundedBufferINT.c (modified) (1 diff)
-
tests/concurrent/examples/datingService.c (modified) (1 diff)
-
tests/concurrent/examples/matrixSum.c (modified) (2 diffs)
-
tests/concurrent/examples/quickSort.c (modified) (1 diff)
-
tests/concurrent/monitor.c (modified) (1 diff)
-
tests/concurrent/multi-monitor.c (modified) (1 diff)
-
tests/concurrent/preempt.c (modified) (1 diff)
-
tests/concurrent/signal/block.c (modified) (1 diff)
-
tests/concurrent/signal/disjoint.c (modified) (1 diff)
-
tests/concurrent/signal/wait.c (modified) (1 diff)
-
tests/concurrent/thread.c (modified) (1 diff)
-
tests/concurrent/waitfor/barge.c (modified) (1 diff)
-
tests/concurrent/waitfor/dtor.c (modified) (1 diff)
-
tests/concurrent/waitfor/else.c (modified) (1 diff)
-
tests/concurrent/waitfor/parse.c (modified) (1 diff)
-
tests/concurrent/waitfor/recurse.c (modified) (1 diff)
-
tests/concurrent/waitfor/simple.c (modified) (1 diff)
-
tests/concurrent/waitfor/statment.c (modified) (1 diff)
-
tests/concurrent/waitfor/when.c (modified) (1 diff)
-
tests/coroutine/.in/fmtLines.txt (modified) (2 diffs)
-
tests/coroutine/fibonacci.c (modified) (1 diff)
-
tests/coroutine/fmtLines.c (modified) (2 diffs)
-
tests/coroutine/pingpong.c (modified) (2 diffs)
-
tests/coroutine/prodcons.c (modified) (2 diffs)
-
tests/coroutine/runningTotal.c (modified) (2 diffs)
-
tests/div.c (modified) (2 diffs)
-
tests/except-2.c (modified) (1 diff)
-
tests/fstream_test.c (modified) (2 diffs)
-
tests/function-operator.c (modified) (1 diff)
-
tests/genericUnion.c (modified) (1 diff)
-
tests/gmp.c (modified) (2 diffs)
-
tests/heap.c (modified) (1 diff)
-
tests/hello.c (modified) (2 diffs)
-
tests/identity.c (modified) (2 diffs)
-
tests/ifwhileCtl.c (modified) (1 diff)
-
tests/io1.c (modified) (4 diffs)
-
tests/io2.c (modified) (1 diff)
-
tests/limits.c (modified) (1 diff)
-
tests/literals.c (modified) (3 diffs)
-
tests/math1.c (modified) (2 diffs)
-
tests/math2.c (modified) (2 diffs)
-
tests/math3.c (modified) (2 diffs)
-
tests/math4.c (modified) (2 diffs)
-
tests/minmax.c (modified) (2 diffs)
-
tests/preempt_longrun/create.c (modified) (1 diff)
-
tests/preempt_longrun/enter.c (modified) (1 diff)
-
tests/preempt_longrun/enter3.c (modified) (1 diff)
-
tests/preempt_longrun/processor.c (modified) (1 diff)
-
tests/preempt_longrun/stack.c (modified) (1 diff)
-
tests/preempt_longrun/yield.c (modified) (1 diff)
-
tests/quoted_keyword.c (modified) (1 diff)
-
tests/raii/dtor-early-exit.c (modified) (1 diff)
-
tests/raii/globals.c (modified) (1 diff)
-
tests/random.c (modified) (2 diffs)
-
tests/rational.c (modified) (1 diff)
-
tests/searchsort.c (modified) (2 diffs)
-
tests/shortCircuit.c (modified) (1 diff)
-
tests/sum.c (modified) (1 diff)
-
tests/swap.c (modified) (2 diffs)
-
tests/time.c (modified) (2 diffs)
-
tests/tuple/tupleAssign.c (modified) (1 diff)
-
tests/user_literals.c (modified) (2 diffs)
-
tests/vector.c (modified) (1 diff)
-
tests/virtualCast.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/Monitor.c
rff593a3 r73abe95 1 #include <fstream >2 #include <stdlib >3 #include <thread >1 #include <fstream.hfa> 2 #include <stdlib.hfa> 3 #include <thread.hfa> 4 4 5 5 #include "bench.h" -
benchmark/bench.h
rff593a3 r73abe95 11 11 #else 12 12 } 13 #include <time >13 #include <time.hfa> 14 14 #endif 15 15 -
benchmark/creation/cfa_cor.c
rff593a3 r73abe95 1 1 #include <stdio.h> 2 #include <coroutine >2 #include <coroutine.hfa> 3 3 4 4 #include "bench.h" -
benchmark/creation/cfa_thrd.c
rff593a3 r73abe95 1 1 #include <stdio.h> 2 #include <thread >2 #include <thread.hfa> 3 3 4 4 #include "bench.h" -
benchmark/ctxswitch/cfa_cor.c
rff593a3 r73abe95 1 1 #include <stdio.h> 2 #include <kernel >3 #include <thread >2 #include <kernel.hfa> 3 #include <thread.hfa> 4 4 5 5 #include "bench.h" -
benchmark/ctxswitch/cfa_thrd.c
rff593a3 r73abe95 1 1 #include <stdio.h> 2 #include <thread >2 #include <thread.hfa> 3 3 4 4 #include "bench.h" -
benchmark/ctxswitch/cfa_thrd2.c
rff593a3 r73abe95 1 1 #include <stdio.h> 2 #include <thread >2 #include <thread.hfa> 3 3 4 4 #include "bench.h" -
benchmark/mutex/cfa1.c
rff593a3 r73abe95 1 #include <monitor >1 #include <monitor.hfa> 2 2 #include <stdio.h> 3 3 -
benchmark/mutex/cfa2.c
rff593a3 r73abe95 1 #include <monitor >1 #include <monitor.hfa> 2 2 #include <stdio.h> 3 3 -
benchmark/mutex/cfa4.c
rff593a3 r73abe95 1 #include <monitor >1 #include <monitor.hfa> 2 2 #include <stdio.h> 3 3 -
benchmark/schedext/cfa1.c
rff593a3 r73abe95 1 #include <kernel >2 #include <monitor >3 #include <thread >1 #include <kernel.hfa> 2 #include <monitor.hfa> 3 #include <thread.hfa> 4 4 #include <stdio.h> 5 5 -
benchmark/schedext/cfa2.c
rff593a3 r73abe95 1 #include <kernel >2 #include <monitor >3 #include <thread >1 #include <kernel.hfa> 2 #include <monitor.hfa> 3 #include <thread.hfa> 4 4 #include <stdio.h> 5 5 -
benchmark/schedext/cfa4.c
rff593a3 r73abe95 1 #include <kernel >2 #include <monitor >3 #include <thread >1 #include <kernel.hfa> 2 #include <monitor.hfa> 3 #include <thread.hfa> 4 4 #include <stdio.h> 5 5 -
benchmark/schedint/cfa1.c
rff593a3 r73abe95 1 #include <kernel >2 #include <monitor >3 #include <thread >1 #include <kernel.hfa> 2 #include <monitor.hfa> 3 #include <thread.hfa> 4 4 #include <stdio.h> 5 5 -
benchmark/schedint/cfa2.c
rff593a3 r73abe95 1 #include <kernel >2 #include <monitor >3 #include <thread >1 #include <kernel.hfa> 2 #include <monitor.hfa> 3 #include <thread.hfa> 4 4 #include <stdio.h> 5 5 -
benchmark/schedint/cfa4.c
rff593a3 r73abe95 1 #include <kernel >2 #include <monitor >3 #include <thread >1 #include <kernel.hfa> 2 #include <monitor.hfa> 3 #include <thread.hfa> 4 4 #include <stdio.h> 5 5 -
examples/ArrayN.c
rff593a3 r73abe95 1 #include <fstream >1 #include <fstream.hfa> 2 2 3 3 // [unsigned, unsigned] offset_to_index(unsigned offset, unsigned sx, unsigned sy) -
examples/gc_no_raii/bug-repro/blockers/file_scope.c
rff593a3 r73abe95 1 1 2 2 #include <stdbool.h> 3 #include <stdlib >3 #include <stdlib.hfa> 4 4 5 5 #define POOL_SIZE_EXP 24 -
examples/gc_no_raii/bug-repro/blockers/recursive_realloc.c
rff593a3 r73abe95 1 1 2 2 #include <stdbool.h> 3 #include <stdlib >3 #include <stdlib.hfa> 4 4 5 5 trait allocator_c(otype T, otype allocator_t) -
examples/gc_no_raii/bug-repro/field.c
rff593a3 r73abe95 4 4 } 5 5 6 #include <stdlib >6 #include <stdlib.hfa> 7 7 8 8 //------------------------------------------------------------------------------ -
examples/gc_no_raii/bug-repro/slow_malloc.c
rff593a3 r73abe95 1 #include <stdlib >1 #include <stdlib.hfa> 2 2 3 3 forall(otype T) -
examples/gc_no_raii/src/internal/collector.c
rff593a3 r73abe95 9 9 #endif 10 10 11 #include <fstream >11 #include <fstream.hfa> 12 12 13 13 #include "state.h" -
examples/gc_no_raii/src/internal/state.c
rff593a3 r73abe95 1 1 #include "state.h" 2 2 3 #include <stdlib >3 #include <stdlib.hfa> 4 4 5 5 //general purpouse includes -
examples/gc_no_raii/src/internal/state.h
rff593a3 r73abe95 9 9 } 10 10 #endif 11 #include <fstream >11 #include <fstream.hfa> 12 12 #include <vector> 13 13 -
examples/gc_no_raii/src/tools/print.h
rff593a3 r73abe95 3 3 // #ifndef NDEBUG 4 4 // 5 // #include <fstream >5 // #include <fstream.hfa> 6 6 // 7 7 // #define DEBUG_OUT(x) sout | x | endl; -
examples/gc_no_raii/src/tools/worklist.h
rff593a3 r73abe95 10 10 #endif 11 11 12 #include <vector >12 #include <vector.hfa> 13 13 14 14 typedef vector(intptr_t*, heap_allocator(intptr_t*)) worklist_t; -
examples/gc_no_raii/test/gctest.c
rff593a3 r73abe95 1 #include <fstream >1 #include <fstream.hfa> 2 2 3 3 #include "gc.h" -
examples/multicore.c
rff593a3 r73abe95 1 #include <kernel >2 #include <thread >1 #include <kernel.hfa> 2 #include <thread.hfa> 3 3 4 4 struct MyThread { thread_desc __thrd; }; -
examples/prolog.c
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // prolog.c -- 7 // prolog.c -- 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include <fstream >16 #include <fstream.hfa> 17 17 18 18 void printResult( int x ) { sout | "int" | endl; } -
examples/quad.c
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // quad.c -- 7 // quad.c -- 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include <fstream >16 #include <fstream.hfa> 17 17 18 18 forall( otype T | { T ?*?( T, T ); } ) -
examples/square.c
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // square.c -- 7 // square.c -- 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include <fstream >16 #include <fstream.hfa> 17 17 18 18 forall( otype T | { T ?*?( T, T ); } ) -
examples/twice.c
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // twice.c -- 7 // twice.c -- 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include <fstream >16 #include <fstream.hfa> 17 17 18 18 forall( otype T | { T ?+?( T, T ); T ?++( T * ); [T] ?+=?( T *, T ); } ) -
examples/wrapper/src/pointer.h
rff593a3 r73abe95 1 1 #pragma once 2 2 3 #include <fstream >3 #include <fstream.hfa> 4 4 #include <stddef.h> 5 #include <stdlib >5 #include <stdlib.hfa> 6 6 7 7 //============================================================================== -
examples/zero_one.c
rff593a3 r73abe95 1 #include <fstream >1 #include <fstream.hfa> 2 2 3 3 void foo(zero_t o) … … 16 16 } 17 17 18 int main() 18 int main() 19 19 { 20 20 foo(0); -
libcfa/src/Makefile.am
rff593a3 r73abe95 33 33 CFACC = @CFACC@ 34 34 35 headers = fstream iostream iterator limits rational time stdlib common \ 36 containers/maybe containers/pair containers/result containers/vector 35 #---------------------------------------------------------------------------------------------------------------- 36 headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa time.hfa stdlib.hfa common.hfa \ 37 containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/vector.hfa 37 38 38 39 # not all platforms support concurrency, add option do disable it 39 headers += concurrency/coroutine concurrency/thread concurrency/kernel concurrency/monitor concurrency/mutex40 headers += concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa 40 41 41 libobjs = ${headers: =.o}42 libobjs = ${headers:.hfa=.o} 42 43 libsrc = prelude.c startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa \ 43 ${headers: =.cfa}44 ${headers:.hfa=.cfa} 44 45 45 46 # not all platforms support concurrency, add option do disable it 46 47 libsrc += concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa concurrency/invoke.c concurrency/preemption.cfa 47 48 48 # extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing 49 # SKULLDUGGERY in order to make sure this isn't called make the rule always fail but also create a rule for headers 50 % : %.c 51 echo "Dummy rule, should never be called" 52 false 53 54 # This rule should always match headers and since it has no prerequisite it will never be called 55 $(addprefix $(srcdir)/,$(headers)): 56 echo "Dummy rule, should never be called" 57 false 58 59 60 ${libobjs} : ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator 49 #---------------------------------------------------------------------------------------------------------------- 50 # add dependency to cfa-cpp so all libraries are rebuilt with new translator 51 ${libobjs} : ${cfalib_DATA} 61 52 62 53 libcfa_a_SOURCES = ${libsrc} … … 65 56 66 57 cfa_includedir = $(CFA_INCDIR) 67 nobase_cfa_include_HEADERS = \68 ${headers} \69 ${stdhdr} \70 math \71 gmp \72 time_t.h \73 bits/align.h \74 bits/containers.h \75 bits/defs.h \76 bits/debug.h \77 bits/locks.h \78 concurrency/invoke.h 58 nobase_cfa_include_HEADERS = \ 59 ${headers} \ 60 ${stdhdr} \ 61 math.hfa \ 62 gmp.hfa \ 63 time_t.hfa \ 64 bits/align.hfa \ 65 bits/containers.hfa \ 66 bits/defs.hfa \ 67 bits/debug.hfa \ 68 bits/locks.hfa \ 69 concurrency/invoke.hfa 79 70 80 CLEANFILES = prelude.c71 MOSTLYCLEANFILES = prelude.c 81 72 73 #---------------------------------------------------------------------------------------------------------------- 82 74 maintainer-clean-local: 83 75 -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR} -
libcfa/src/assert.cfa
rff593a3 r73abe95 17 17 #include <stdarg.h> // varargs 18 18 #include <stdio.h> // fprintf 19 #include "bits/debug.h "19 #include "bits/debug.hfa" 20 20 21 21 extern "C" { -
libcfa/src/bits/algorithm.hfa
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // bits/algorithms.h -- Builtins for exception handling.7 // bits/algorithms.hfa -- Builtins for exception handling. 8 8 // 9 9 // Author : Thierry Delisle -
libcfa/src/bits/align.hfa
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // align.h --7 // align.hfa -- 8 8 // 9 9 // Author : Thierry Delisle -
libcfa/src/bits/containers.hfa
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // bits/containers.h -- Intrusive generic containers.h7 // bits/containers.hfa -- Intrusive generic containers.hfa 8 8 // 9 9 // Author : Thierry Delisle … … 15 15 #pragma once 16 16 17 #include "bits/align.h "18 #include "bits/defs.h "17 #include "bits/align.hfa" 18 #include "bits/defs.hfa" 19 19 20 20 //----------------------------------------------------------------------------- -
libcfa/src/bits/debug.hfa
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // debug.h --7 // debug.hfa -- 8 8 // 9 9 // Author : Thierry Delisle -
libcfa/src/bits/defs.hfa
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // defs.h --7 // defs.hfa -- 8 8 // 9 9 // Author : Thierry Delisle -
libcfa/src/bits/locks.hfa
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // bits/locks.h -- Fast internal locks.7 // bits/locks.hfa -- Fast internal locks. 8 8 // 9 9 // Author : Thierry Delisle … … 16 16 #pragma once 17 17 18 #include "bits/debug.h "19 #include "bits/defs.h "18 #include "bits/debug.hfa" 19 #include "bits/defs.hfa" 20 20 #include <assert.h> 21 21 -
libcfa/src/bits/signal.hfa
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // bits/signal.h -- Helper functions and defines to use signals7 // bits/signal.hfa -- Helper functions and defines to use signals 8 8 // 9 9 // Author : Thierry Delisle … … 16 16 #pragma once 17 17 18 #include "bits/debug.h "19 #include "bits/defs.h "18 #include "bits/debug.hfa" 19 #include "bits/defs.hfa" 20 20 21 21 extern "C" { 22 22 #include <errno.h> 23 23 #define __USE_GNU 24 #include <signal.h >24 #include <signal.hfa> 25 25 #undef __USE_GNU 26 26 #include <stdlib.h> -
libcfa/src/clock.hfa
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2018 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // clock -- 8 // 6 // 7 // clock -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Thu Apr 12 14:36:06 2018 … … 12 12 // Last Modified On : Mon Jul 2 21:40:01 2018 13 13 // Update Count : 7 14 // 14 // 15 15 16 #include <time >16 #include <time.hfa> 17 17 18 18 -
libcfa/src/concurrency/alarm.cfa
rff593a3 r73abe95 22 22 } 23 23 24 #include "alarm.h "25 #include "kernel_private.h "26 #include "preemption.h "24 #include "alarm.hfa" 25 #include "kernel_private.hfa" 26 #include "preemption.hfa" 27 27 28 28 //============================================================================================= -
libcfa/src/concurrency/alarm.hfa
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // alarm.h --7 // alarm.hfa -- 8 8 // 9 9 // Author : Thierry Delisle -
libcfa/src/concurrency/coroutine.cfa
rff593a3 r73abe95 25 25 } 26 26 27 #include "kernel_private.h "27 #include "kernel_private.hfa" 28 28 29 29 #define __CFA_INVOKE_PRIVATE__ -
libcfa/src/concurrency/invoke.h
rff593a3 r73abe95 14 14 // 15 15 16 #include "bits/containers.h "17 #include "bits/defs.h "18 #include "bits/locks.h "16 #include "bits/containers.hfa" 17 #include "bits/defs.hfa" 18 #include "bits/locks.hfa" 19 19 20 20 #ifdef __cforall -
libcfa/src/concurrency/kernel.cfa
rff593a3 r73abe95 22 22 #include <fenv.h> 23 23 #include <sys/resource.h> 24 #include <signal.h >24 #include <signal.hfa> 25 25 #include <unistd.h> 26 26 } … … 28 28 //CFA Includes 29 29 #include "time" 30 #include "kernel_private.h "31 #include "preemption.h "32 #include "startup.h "30 #include "kernel_private.hfa" 31 #include "preemption.hfa" 32 #include "startup.hfa" 33 33 34 34 //Private includes -
libcfa/src/concurrency/kernel.hfa
rff593a3 r73abe95 19 19 20 20 #include "invoke.h" 21 #include "time_t.h "21 #include "time_t.hfa" 22 22 23 23 extern "C" { -
libcfa/src/concurrency/kernel_private.hfa
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // kernel_private.h --7 // kernel_private.hfa -- 8 8 // 9 9 // Author : Thierry Delisle … … 19 19 #include "thread" 20 20 21 #include "alarm.h "21 #include "alarm.hfa" 22 22 23 23 -
libcfa/src/concurrency/monitor.cfa
rff593a3 r73abe95 16 16 #include "monitor" 17 17 18 #include <stdlib >18 #include <stdlib.hfa> 19 19 #include <inttypes.h> 20 20 21 #include "kernel_private.h "22 23 #include "bits/algorithms.h "21 #include "kernel_private.hfa" 22 23 #include "bits/algorithms.hfa" 24 24 25 25 //----------------------------------------------------------------------------- -
libcfa/src/concurrency/mutex.cfa
rff593a3 r73abe95 18 18 #include "mutex" 19 19 20 #include "kernel_private.h "20 #include "kernel_private.hfa" 21 21 22 22 //----------------------------------------------------------------------------- -
libcfa/src/concurrency/mutex.hfa
rff593a3 r73abe95 20 20 #include <stdbool.h> 21 21 22 #include "bits/algorithms.h "23 #include "bits/locks.h "22 #include "bits/algorithms.hfa" 23 #include "bits/locks.hfa" 24 24 25 25 #include "invoke.h" 26 #include "time_t.h "26 #include "time_t.hfa" 27 27 28 28 //----------------------------------------------------------------------------- -
libcfa/src/concurrency/preemption.cfa
rff593a3 r73abe95 14 14 // 15 15 16 #include "preemption.h "16 #include "preemption.hfa" 17 17 #include <assert.h> 18 18 … … 24 24 } 25 25 26 #include "bits/signal.h "26 #include "bits/signal.hfa" 27 27 28 28 #if !defined(__CFA_DEFAULT_PREEMPTION__) -
libcfa/src/concurrency/preemption.hfa
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // preemption.h --7 // preemption.hfa -- 8 8 // 9 9 // Author : Thierry Delisle … … 16 16 #pragma once 17 17 18 #include "alarm.h "19 #include "kernel_private.h "18 #include "alarm.hfa" 19 #include "kernel_private.hfa" 20 20 21 21 void kernel_start_preemption(); -
libcfa/src/concurrency/thread.cfa
rff593a3 r73abe95 16 16 #include "thread" 17 17 18 #include "kernel_private.h "18 #include "kernel_private.hfa" 19 19 20 20 #define __CFA_INVOKE_PRIVATE__ -
libcfa/src/containers/vector.cfa
rff593a3 r73abe95 16 16 #include <containers/vector> 17 17 18 #include <stdlib >18 #include <stdlib.hfa> 19 19 20 20 forall(otype T, otype allocator_t | allocator_c(T, allocator_t)) -
libcfa/src/exception.c
rff593a3 r73abe95 23 23 #include <stdio.h> 24 24 #include <unwind.h> 25 #include <bits/debug.h >25 #include <bits/debug.hfa> 26 26 27 27 // FIX ME: temporary hack to keep ARM build working -
libcfa/src/gmp.hfa
rff593a3 r73abe95 19 19 20 20 #include <gmp.h> // GNU multi-precise integers 21 #include <fstream > // sout21 #include <fstream.hfa> // sout 22 22 23 23 struct Int { mpz_t mpz; }; // wrap GMP implementation -
libcfa/src/heap.cfa
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // heap.c -- 8 // 6 // 7 // heap.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Tue Dec 19 21:58:35 2017 … … 12 12 // Last Modified On : Tue Jul 31 18:08:50 2018 13 13 // Update Count : 470 14 // 14 // 15 15 16 16 #include <unistd.h> // sbrk, sysconf … … 22 22 } // extern "C" 23 23 24 #include "bits/align.h " // libPow225 #include "bits/defs.h " // likely, unlikely26 #include "bits/locks.h " // __spinlock_t27 #include "startup.h " // STARTUP_PRIORITY_MEMORY24 #include "bits/align.hfa" // libPow2 25 #include "bits/defs.hfa" // likely, unlikely 26 #include "bits/locks.hfa" // __spinlock_t 27 #include "startup.hfa" // STARTUP_PRIORITY_MEMORY 28 28 #include "stdlib" // bsearchl 29 29 #include "malloc.h" … … 283 283 static void ?{}( HeapManager & manager ) with ( manager ) { 284 284 pageSize = sysconf( _SC_PAGESIZE ); 285 285 286 286 for ( unsigned int i = 0; i < NoBucketSizes; i += 1 ) { // initialize the free lists 287 287 freeLists[i].blockSize = bucketSizes[i]; … … 760 760 _Bool mapped __attribute__(( unused )) = headers( "calloc", area, header, freeElem, asize, alignment ); 761 761 #ifndef __CFA_DEBUG__ 762 // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero. 762 // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero. 763 763 if ( ! mapped ) 764 764 #endif // __CFA_DEBUG__ … … 783 783 _Bool mapped __attribute__(( unused )) = headers( "cmemalign", area, header, freeElem, asize, alignment ); 784 784 #ifndef __CFA_DEBUG__ 785 // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero. 785 // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero. 786 786 if ( ! mapped ) 787 787 #endif // __CFA_DEBUG__ … … 828 828 _Bool mapped __attribute__(( unused )) = headers( "realloc", area, header, freeElem, asize, alignment ); 829 829 #ifndef __CFA_DEBUG__ 830 // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero. 830 // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero. 831 831 if ( ! mapped ) 832 832 #endif // __CFA_DEBUG__ -
libcfa/src/interpose.cfa
rff593a3 r73abe95 18 18 #include <unistd.h> // _exit, getpid 19 19 #define __USE_GNU 20 #include <signal.h >20 #include <signal.hfa> 21 21 #undef __USE_GNU 22 22 extern "C" { … … 25 25 } 26 26 27 #include "bits/debug.h "28 #include "bits/defs.h "29 #include "bits/signal.h " // sigHandler_?30 #include "startup.h " // STARTUP_PRIORITY_CORE27 #include "bits/debug.hfa" 28 #include "bits/defs.hfa" 29 #include "bits/signal.hfa" // sigHandler_? 30 #include "startup.hfa" // STARTUP_PRIORITY_CORE 31 31 32 32 //============================================================================================= -
libcfa/src/iostream
rff593a3 r73abe95 164 164 165 165 166 #include <time_t.h > // Duration (constructors) / Time (constructors)166 #include <time_t.hfa> // Duration (constructors) / Time (constructors) 167 167 168 168 forall( dtype ostype | ostream( ostype ) ) ostype & ?|?( ostype & os, Duration dur ); -
libcfa/src/startup.cfa
rff593a3 r73abe95 14 14 // 15 15 16 #include "startup.h "16 #include "startup.hfa" 17 17 #include <unistd.h> 18 18 -
libcfa/src/startup.hfa
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // startup.h --7 // startup.hfa -- 8 8 // 9 9 // Author : Thierry Delisle -
libcfa/src/time.hfa
rff593a3 r73abe95 23 23 #include <sys/time.h> // timeval 24 24 } 25 #include <time_t.h > // Duration/Time types25 #include <time_t.hfa> // Duration/Time types 26 26 27 27 enum { TIMEGRAN = 1_000_000_000LL }; // nanosecond granularity, except for timeval -
libcfa/src/time_t.hfa
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2018 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // time_t.h --8 // 6 // 7 // time_t.hfa -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Tue Apr 10 14:42:03 2018 … … 12 12 // Last Modified On : Fri Apr 13 07:51:47 2018 13 13 // Update Count : 6 14 // 14 // 15 15 16 16 #pragma once -
src/Concurrency/Keywords.cc
rff593a3 r73abe95 97 97 "__thrd", 98 98 "get_thread", 99 "thread keyword requires threads to be in scope, add #include <thread >",99 "thread keyword requires threads to be in scope, add #include <thread.hfa>", 100 100 true, 101 101 KeywordCastExpr::Thread … … 129 129 "__cor", 130 130 "get_coroutine", 131 "coroutine keyword requires coroutines to be in scope, add #include <coroutine >",131 "coroutine keyword requires coroutines to be in scope, add #include <coroutine.hfa>", 132 132 true, 133 133 KeywordCastExpr::Coroutine … … 161 161 "__mon", 162 162 "get_monitor", 163 "monitor keyword requires monitors to be in scope, add #include <monitor >",163 "monitor keyword requires monitors to be in scope, add #include <monitor.hfa>", 164 164 false, 165 165 KeywordCastExpr::Monitor … … 488 488 // Do we have the required headers 489 489 if( !monitor_decl || !guard_decl || !dtor_guard_decl ) 490 SemanticError( decl, "mutex keyword requires monitors to be in scope, add #include <monitor >\n" );490 SemanticError( decl, "mutex keyword requires monitors to be in scope, add #include <monitor.hfa>\n" ); 491 491 492 492 // Instrument the body … … 685 685 if( type && type->get_baseStruct()->is_thread() ) { 686 686 if( !thread_decl || !thread_ctor_seen ) { 687 SemanticError( type->get_baseStruct()->location, "thread keyword requires threads to be in scope, add #include <thread >");687 SemanticError( type->get_baseStruct()->location, "thread keyword requires threads to be in scope, add #include <thread.hfa>"); 688 688 } 689 689 -
src/Concurrency/Waitfor.cc
rff593a3 r73abe95 250 250 Statement * GenerateWaitForPass::postmutate( WaitForStmt * waitfor ) { 251 251 if( !decl_monitor || !decl_acceptable || !decl_mask ) 252 SemanticError( waitfor, "waitfor keyword requires monitors to be in scope, add #include <monitor >" );252 SemanticError( waitfor, "waitfor keyword requires monitors to be in scope, add #include <monitor.hfa>" ); 253 253 254 254 CompoundStmt * stmt = new CompoundStmt(); -
tests/Makefile.am
rff593a3 r73abe95 46 46 avl_test_SOURCES = avltree/avl_test.c avltree/avl0.c avltree/avl1.c avltree/avl2.c avltree/avl3.c avltree/avl4.c avltree/avl-private.c 47 47 48 #---------------------------------------------------------------------------------------------------------------- 48 49 all-local : 49 50 @+${TEST_PY} --debug=${debug} ${concurrent} ${quick_test} … … 67 68 @+${TEST_PY} --debug=${debug} -Iconcurrent 68 69 69 # SKULLDUGGERY like libcfa/Makefile.am prevent extensionless headers from being generated 70 # however, here it is more complicated because it must match the dependencies based on how 71 # they are generated by gcc 72 headers = $(shell find $(top_srcdir)/libcfa/src -type f ! -name "*.*") 73 headers_real = $(shell realpath --relative-to=$(top_srcdir)/libcfa/src $(headers)) 74 headers_deps = $(addprefix %/, $(headers_real)) 75 $(headers_deps) : 76 echo "Dummy rule, should never be called" 77 78 # %/stdlib: 79 # echo "Dummy rule, should never be called" 80 70 #---------------------------------------------------------------------------------------------------------------- 81 71 # implicit rule so not all test require a rule 82 72 % : %.c $(CC) -
tests/abs.c
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // abs.c -- 7 // abs.c -- 8 8 // 9 9 // Author : Peter A. Buhr … … 14 14 // 15 15 16 #include <fstream >17 #include <stdlib > // abs16 #include <fstream.hfa> 17 #include <stdlib.hfa> // abs 18 18 19 19 int main( void ) { -
tests/alloc.c
rff593a3 r73abe95 18 18 #include <stdint.h> // uintptr_t 19 19 #include <stdlib.h> // posix_memalign 20 #include <fstream >21 #include <stdlib > // access C malloc, realloc20 #include <fstream.hfa> 21 #include <stdlib.hfa> // access C malloc, realloc 22 22 23 23 int * foo( int * p, int c ) { return p; } -
tests/ato.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // ato.c -- 8 // 6 // 7 // ato.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Thu Feb 4 08:10:57 2016 … … 12 12 // Last Modified On : Thu Nov 16 18:31:56 2017 13 13 // Update Count : 89 14 // 14 // 15 15 16 #include <fstream >17 #include <stdlib > // ato, strto16 #include <fstream.hfa> 17 #include <stdlib.hfa> // ato, strto 18 18 19 19 int main( void ) { -
tests/avltree/avl1.c
rff593a3 r73abe95 1 1 #include "avl.h" 2 2 // #include "cwrap.h" 3 #include <stdlib >3 #include <stdlib.hfa> 4 4 5 5 forall(otype K | Comparable(K), otype V) -
tests/avltree/avl3.c
rff593a3 r73abe95 1 1 #include "avl.h" 2 2 #include "avl-private.h" 3 #include <stdlib >3 #include <stdlib.hfa> 4 4 5 5 // swaps the data within two tree nodes -
tests/avltree/avl_test.c
rff593a3 r73abe95 1 1 #include "avl.h" 2 2 #include "avl-private.h" 3 #include <stdlib >3 #include <stdlib.hfa> 4 4 5 5 extern "C" { -
tests/complex.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // complex.c -- 8 // 6 // 7 // complex.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Wed May 24 22:07:31 2017 … … 12 12 // Last Modified On : Wed May 24 22:08:01 2017 13 13 // Update Count : 1 14 // 14 // 15 15 16 16 #include <stdio.h> 17 17 #include <complex.h> 18 18 #ifdef __CFA__ 19 #include <fstream >19 #include <fstream.hfa> 20 20 #endif // __CFA 21 21 -
tests/concurrent/coroutineYield.c
rff593a3 r73abe95 1 #include <fstream >2 #include <kernel >3 #include <stdlib >4 #include <thread >5 #include <time >1 #include <fstream.hfa> 2 #include <kernel.hfa>hfa> 3 #include <stdlib.hfa> 4 #include <thread.hfa> 5 #include <time.hfa> 6 6 7 7 #define __kick_rate 150000ul -
tests/concurrent/examples/boundedBufferEXT.c
rff593a3 r73abe95 12 12 // 13 13 14 #include <stdlib > // random15 #include <fstream >16 #include <kernel >17 #include <thread >14 #include <stdlib.hfa> // random 15 #include <fstream.hfa> 16 #include <kernel.hfa> 17 #include <thread.hfa> 18 18 #include <unistd.h> // getpid 19 19 -
tests/concurrent/examples/boundedBufferINT.c
rff593a3 r73abe95 12 12 // 13 13 14 #include <stdlib > // random15 #include <fstream >16 #include <kernel >17 #include <thread >14 #include <stdlib.hfa> // random 15 #include <fstream.hfa> 16 #include <kernel.hfa> 17 #include <thread.hfa> 18 18 #include <unistd.h> // getpid 19 19 -
tests/concurrent/examples/datingService.c
rff593a3 r73abe95 12 12 // 13 13 14 #include <stdlib > // random15 #include <fstream >16 #include <kernel >17 #include <thread >14 #include <stdlib.hfa> // random 15 #include <fstream.hfa> 16 #include <kernel.hfa> 17 #include <thread.hfa> 18 18 #include <unistd.h> // getpid 19 19 -
tests/concurrent/examples/matrixSum.c
rff593a3 r73abe95 1 // -*- Mode: C -*- 2 // 1 // -*- Mode: C -*- 2 // 3 3 // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo 4 4 // 5 5 // The contents of this file are covered under the licence agreement in the 6 6 // file "LICENCE" distributed with Cforall. 7 // 8 // matrixSum.c -- 9 // 7 // 8 // matrixSum.c -- 9 // 10 10 // Author : Peter A. Buhr 11 11 // Created On : Mon Oct 9 08:29:28 2017 … … 13 13 // Last Modified On : Fri May 25 09:34:27 2018 14 14 // Update Count : 10 15 // 15 // 16 16 17 #include <fstream >18 #include <kernel >19 #include <thread >17 #include <fstream.hfa> 18 #include <kernel.hfa> 19 #include <thread.hfa> 20 20 21 21 thread Adder { -
tests/concurrent/examples/quickSort.c
rff593a3 r73abe95 13 13 // 14 14 15 #include <fstream >16 #include <stdlib >17 #include <kernel >18 #include <thread >15 #include <fstream.hfa> 16 #include <stdlib.hfa> 17 #include <kernel.hfa> 18 #include <thread.hfa> 19 19 #include <string.h> // strcmp 20 20 -
tests/concurrent/monitor.c
rff593a3 r73abe95 1 #include <fstream >2 #include <kernel >3 #include <monitor >4 #include <thread >1 #include <fstream.hfa> 2 #include <kernel.hfa> 3 #include <monitor.hfa> 4 #include <thread.hfa> 5 5 6 6 monitor global_t { -
tests/concurrent/multi-monitor.c
rff593a3 r73abe95 1 #include <fstream >2 #include <kernel >3 #include <monitor >4 #include <thread >1 #include <fstream.hfa> 2 #include <kernel.hfa> 3 #include <monitor.hfa> 4 #include <thread.hfa> 5 5 6 6 static int global12, global23, global13; -
tests/concurrent/preempt.c
rff593a3 r73abe95 1 #include <kernel >2 #include <thread >3 #include <time >1 #include <kernel.hfa>hfa> 2 #include <thread.hfa> 3 #include <time.hfa> 4 4 5 5 #include "long_tests.h" -
tests/concurrent/signal/block.c
rff593a3 r73abe95 7 7 8 8 9 #include <fstream >10 #include <kernel >11 #include <monitor >12 #include <stdlib >13 #include <thread >14 #include <time >9 #include <fstream.hfa> 10 #include <kernel.hfa>hfa> 11 #include <monitor.hfa> 12 #include <stdlib.hfa> 13 #include <thread.hfa> 14 #include <time.hfa> 15 15 16 16 #include "long_tests.h" -
tests/concurrent/signal/disjoint.c
rff593a3 r73abe95 1 #include <fstream >2 #include <kernel >3 #include <monitor >4 #include <thread >5 #include <time >1 #include <fstream.hfa> 2 #include <kernel.hfa>hfa> 3 #include <monitor.hfa> 4 #include <thread.hfa> 5 #include <time.hfa> 6 6 7 7 #include "long_tests.h" -
tests/concurrent/signal/wait.c
rff593a3 r73abe95 5 5 6 6 7 #include <fstream >8 #include <kernel >9 #include <monitor >10 #include <stdlib >11 #include <thread >12 #include <time >7 #include <fstream.hfa> 8 #include <kernel.hfa>hfa> 9 #include <monitor.hfa> 10 #include <stdlib.hfa> 11 #include <thread.hfa> 12 #include <time.hfa> 13 13 14 14 #define __kick_rate 12000ul -
tests/concurrent/thread.c
rff593a3 r73abe95 1 #include <fstream >2 #include <kernel >3 #include <stdlib >4 #include <thread >1 #include <fstream.hfa> 2 #include <kernel.hfa> 3 #include <stdlib.hfa> 4 #include <thread.hfa> 5 5 6 6 thread First { semaphore* lock; }; -
tests/concurrent/waitfor/barge.c
rff593a3 r73abe95 6 6 //--------------------------------------------------------- 7 7 8 #include <fstream >9 #include <kernel >10 #include <monitor >11 #include <stdlib >12 #include <thread >8 #include <fstream.hfa> 9 #include <kernel.hfa> 10 #include <monitor.hfa> 11 #include <stdlib.hfa> 12 #include <thread.hfa> 13 13 14 14 #include <stdbool.h> -
tests/concurrent/waitfor/dtor.c
rff593a3 r73abe95 4 4 //--------------------------------------------------------- 5 5 6 #include <fstream >7 #include <kernel >8 #include <monitor >9 #include <stdlib >10 #include <thread >6 #include <fstream.hfa> 7 #include <kernel.hfa> 8 #include <monitor.hfa> 9 #include <stdlib.hfa> 10 #include <thread.hfa> 11 11 12 12 #include <stdbool.h> -
tests/concurrent/waitfor/else.c
rff593a3 r73abe95 1 #include <fstream >2 #include <monitor >1 #include <fstream.hfa> 2 #include <monitor.hfa> 3 3 4 4 #include <stdbool.h> -
tests/concurrent/waitfor/parse.c
rff593a3 r73abe95 8 8 //---------------------------------------------------------------------------------------- 9 9 10 #include <monitor >10 #include <monitor.hfa> 11 11 12 12 monitor M {}; -
tests/concurrent/waitfor/recurse.c
rff593a3 r73abe95 4 4 //----------------------------------------------------------------- 5 5 6 #include <fstream >7 #include <kernel >8 #include <monitor >9 #include <stdlib >10 #include <thread >6 #include <fstream.hfa> 7 #include <kernel.hfa> 8 #include <monitor.hfa> 9 #include <stdlib.hfa> 10 #include <thread.hfa> 11 11 12 12 #include <stdbool.h> -
tests/concurrent/waitfor/simple.c
rff593a3 r73abe95 1 #include <fstream >2 #include <kernel >3 #include <monitor >4 #include <stdlib >5 #include <thread >1 #include <fstream.hfa> 2 #include <kernel.hfa> 3 #include <monitor.hfa> 4 #include <stdlib.hfa> 5 #include <thread.hfa> 6 6 7 7 #include <time.h> -
tests/concurrent/waitfor/statment.c
rff593a3 r73abe95 1 #include <fstream >2 #include <kernel >3 #include <monitor >4 #include <thread >1 #include <fstream.hfa> 2 #include <kernel.hfa> 3 #include <monitor.hfa> 4 #include <thread.hfa> 5 5 6 6 #include <stdbool.h> -
tests/concurrent/waitfor/when.c
rff593a3 r73abe95 4 4 //----------------------------------------------------------------- 5 5 6 #include <fstream >7 #include <kernel >8 #include <monitor >9 #include <stdlib >10 #include <thread >6 #include <fstream.hfa> 7 #include <kernel.hfa> 8 #include <monitor.hfa> 9 #include <stdlib.hfa> 10 #include <thread.hfa> 11 11 12 12 #include <stdbool.h> -
tests/coroutine/.in/fmtLines.txt
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // fmtLines.cc -- 8 // 6 // 7 // fmtLines.cc -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Sun Sep 17 21:56:15 2017 … … 12 12 // Last Modified On : Mon Sep 18 11:35:57 2017 13 13 // Update Count : 31 14 // 14 // 15 15 16 #include <fstream >17 #include <coroutine >16 #include <fstream.hfa> 17 #include <coroutine.hfa> 18 18 19 19 coroutine Format { -
tests/coroutine/fibonacci.c
rff593a3 r73abe95 15 15 // 16 16 17 #include <fstream >18 #include <coroutine >17 #include <fstream.hfa> 18 #include <coroutine.hfa> 19 19 20 20 coroutine Fibonacci { int fn; }; // used for communication -
tests/coroutine/fmtLines.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 6 // 7 7 // fmtLines.cc -- format characters into blocks of 4 and groups of 5 blocks per line 8 // 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Sun Sep 17 21:56:15 2017 … … 12 12 // Last Modified On : Tue May 15 12:25:33 2018 13 13 // Update Count : 42 14 // 14 // 15 15 16 #include <fstream >17 #include <coroutine >16 #include <fstream.hfa> 17 #include <coroutine.hfa> 18 18 19 19 coroutine Format { -
tests/coroutine/pingpong.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // pingpong.c -- 8 // 6 // 7 // pingpong.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Wed Sep 20 11:55:23 2017 … … 12 12 // Last Modified On : Wed Sep 20 13:41:39 2017 13 13 // Update Count : 26 14 // 14 // 15 15 16 #include <coroutine >17 #include <fstream >16 #include <coroutine.hfa> 17 #include <fstream.hfa> 18 18 19 19 coroutine PingPong { -
tests/coroutine/prodcons.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // prodcons.c -- 8 // 6 // 7 // prodcons.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Mon Sep 18 12:23:39 2017 … … 12 12 // Last Modified On : Tue Jan 2 12:17:01 2018 13 13 // Update Count : 47 14 // 14 // 15 15 16 #include <fstream >17 #include <coroutine >18 #include <stdlib > // random16 #include <fstream.hfa> 17 #include <coroutine.hfa> 18 #include <stdlib.hfa> // random 19 19 #include <unistd.h> // getpid 20 20 -
tests/coroutine/runningTotal.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // runningTotal.c -- 8 // 6 // 7 // runningTotal.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Wed Dec 6 08:05:27 2017 … … 12 12 // Last Modified On : Wed Dec 6 08:09:24 2017 13 13 // Update Count : 2 14 // 14 // 15 15 16 #include <fstream >17 #include <coroutine >16 #include <fstream.hfa> 17 #include <coroutine.hfa> 18 18 19 19 coroutine RunTotal { // input numbers and return running total -
tests/div.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // div.c -- 8 // 6 // 7 // div.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Tue Aug 8 16:28:43 2017 … … 12 12 // Last Modified On : Thu Dec 7 09:06:52 2017 13 13 // Update Count : 18 14 // 14 // 15 15 16 #include <fstream >17 #include <stdlib > // div16 #include <fstream.hfa> 17 #include <stdlib.hfa> // div 18 18 19 19 struct T { int i; }; -
tests/except-2.c
rff593a3 r73abe95 2 2 3 3 4 #include <stdlib >4 #include <stdlib.hfa> 5 5 #include "except-mac.h" 6 6 -
tests/fstream_test.c
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // fstream_test.c -- 7 // fstream_test.c -- 8 8 // 9 9 // Author : Peter A. Buhr … … 14 14 // 15 15 16 #include <fstream >16 #include <fstream.hfa> 17 17 18 18 int main( void ) { 19 19 int nombre; 20 sout | "Entrez un nombre, s'il vous pla ît:" | endl;20 sout | "Entrez un nombre, s'il vous pla�t:" | endl; 21 21 sin | nombre; 22 sout | "Vous avez entr é" | nombre | endl;22 sout | "Vous avez entr�" | nombre | endl; 23 23 sout | "le nombre" | nombre | "est" 24 | (nombre > 0 ? "positif" : nombre == 0 ? "z éro" : "négatif") | endl;24 | (nombre > 0 ? "positif" : nombre == 0 ? "z�ro" : "n�gatif") | endl; 25 25 26 sout | "Entrez trois nombres, s'il vous pla ît: " | endl;26 sout | "Entrez trois nombres, s'il vous pla�t: " | endl; 27 27 int i, j, k; 28 28 sin | i | j | k; 29 sout | "Vous avez entr é" | "i:" | "" | i | "j:" | "" | j | "k:" | "" | k | endl;29 sout | "Vous avez entr�" | "i:" | "" | i | "j:" | "" | j | "k:" | "" | k | endl; 30 30 } 31 31 -
tests/function-operator.c
rff593a3 r73abe95 14 14 // 15 15 16 #include <fstream >17 #include <stdlib >16 #include <fstream.hfa> 17 #include <stdlib.hfa> 18 18 19 19 #define length(array) (sizeof((array))/sizeof((array)[0])) -
tests/genericUnion.c
rff593a3 r73abe95 1 #include <limits >1 #include <limits.hfa> 2 2 3 3 forall(otype T) -
tests/gmp.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // gmp.c -- 8 // 6 // 7 // gmp.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Tue Apr 19 08:55:51 2016 … … 12 12 // Last Modified On : Thu Sep 28 18:33:51 2017 13 13 // Update Count : 555 14 // 14 // 15 15 16 16 // NOTE: UBUNTU DOES NOT SUPPORT GMP MULTILIB, SO ONLY 64-BIT GMP IS TESTED. 17 17 18 #include <gmp >18 #include <gmp.hfa> 19 19 20 20 int main( void ) { -
tests/heap.c
rff593a3 r73abe95 1 #include <thread >2 #include <kernel > // processor3 #include <stdlib > // *allocs1 #include <thread.hfa> 2 #include <kernel.hfa> // processor 3 #include <stdlib.hfa> // *allocs 4 4 #include <malloc.h> // malloc_* 5 5 6 // #include <time >6 // #include <time.hfa> 7 7 // #define __CFA_DEFAULT_PREEMPTION__ 1000`us 8 8 // //#define __CFA_DEFAULT_PREEMPTION__ 0 -
tests/hello.c
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // hello.c -- 7 // hello.c -- 8 8 // 9 9 // Author : Peter A. Buhr … … 14 14 // 15 15 16 #include <fstream >16 #include <fstream.hfa> 17 17 18 18 int main() { -
tests/identity.c
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // identity.c -- 7 // identity.c -- 8 8 // 9 9 // Author : Peter A. Buhr … … 14 14 // 15 15 16 #include <fstream >16 #include <fstream.hfa> 17 17 18 18 forall( otype T ) -
tests/ifwhileCtl.c
rff593a3 r73abe95 14 14 // 15 15 16 #include <fstream >16 #include <fstream.hfa> 17 17 18 18 int f( int r ) { return r; } -
tests/io1.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // io1.c -- 8 // 6 // 7 // io1.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Wed Mar 2 16:56:02 2016 … … 12 12 // Last Modified On : Thu May 24 21:17:56 2018 13 13 // Update Count : 104 14 // 14 // 15 15 16 #include <fstream >16 #include <fstream.hfa> 17 17 18 18 int main() { … … 31 31 | "x =" | 4 32 32 | "x $" | 5 33 | "x £" | 634 | "x ¥" | 735 | "x ¡" | 836 | "x ¿" | 937 | "x «" | 1033 | "x �" | 6 34 | "x �" | 7 35 | "x �" | 8 36 | "x �" | 9 37 | "x �" | 10 38 38 | endl | endl; 39 39 … … 46 46 | 5 | "? x" 47 47 | 6 | "% x" 48 | 7 | " ¢x"49 | 8 | " »x"48 | 7 | "� x" 49 | 8 | "� x" 50 50 | 9 | ") x" 51 51 | 10 | "] x" -
tests/io2.c
rff593a3 r73abe95 14 14 // 15 15 16 #include <fstream >16 #include <fstream.hfa> 17 17 18 18 #define xstr(s) str(s) -
tests/limits.c
rff593a3 r73abe95 14 14 // 15 15 16 #include <limits >16 #include <limits.hfa> 17 17 18 18 // Integral Constants -
tests/literals.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // literals.c -- 8 // 6 // 7 // literals.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Sat Sep 9 16:34:38 2017 … … 12 12 // Last Modified On : Sun Jul 1 15:12:15 2018 13 13 // Update Count : 137 14 // 14 // 15 15 16 16 #ifdef __CFA__ 17 17 #include <stdint.h> 18 #include <fstream >18 #include <fstream.hfa> 19 19 20 20 void f( char v ) { sout | "char " | v | endl; } … … 221 221 -0123456789.0123456789E+09L32; -0123456789.0123456789E+09L64; -0123456789.0123456789E+09L80; -0123456789.0123456789E+09L128; 222 222 0123456789.0123456789E-09L32; 0123456789.0123456789E-09L64; 0123456789.0123456789E-09L80; 0123456789.0123456789E-09L128; 223 223 224 224 0x0123456789.p09l32; 0x0123456789.p09l64; 0x0123456789.p09l80; 0x0123456789.p09l128; 225 225 +0x0123456789.p09l32; +0x0123456789.p09l64; +0x0123456789.p09l80; +0x0123456789.p09l128; -
tests/math1.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // math1.c -- 8 // 6 // 7 // math1.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Fri Apr 22 14:59:21 2016 … … 12 12 // Last Modified On : Thu May 24 21:01:15 2018 13 13 // Update Count : 85 14 // 14 // 15 15 16 #include <fstream >17 #include <math >16 #include <fstream.hfa> 17 #include <math.hfa> 18 18 19 19 int main( void ) { -
tests/math2.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // math2.c -- 8 // 6 // 7 // math2.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Fri Apr 22 14:59:21 2016 … … 12 12 // Last Modified On : Thu May 24 21:06:10 2018 13 13 // Update Count : 82 14 // 14 // 15 15 16 #include <fstream >17 #include <math >16 #include <fstream.hfa> 17 #include <math.hfa> 18 18 19 19 int main( void ) { -
tests/math3.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // math3.c -- 8 // 6 // 7 // math3.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Fri Apr 22 14:59:21 2016 … … 12 12 // Last Modified On : Thu May 24 21:06:12 2018 13 13 // Update Count : 82 14 // 14 // 15 15 16 #include <fstream >17 #include <math >16 #include <fstream.hfa> 17 #include <math.hfa> 18 18 19 19 int main( void ) { -
tests/math4.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // math4.c -- 8 // 6 // 7 // math4.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Thu May 24 20:56:54 2018 … … 12 12 // Last Modified On : Thu May 24 20:58:06 2018 13 13 // Update Count : 2 14 // 14 // 15 15 16 #include <fstream >17 #include <math >16 #include <fstream.hfa> 17 #include <math.hfa> 18 18 19 19 int main( void ) { -
tests/minmax.c
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // minmax.c -- 7 // minmax.c -- 8 8 // 9 9 // Author : Peter A. Buhr … … 14 14 // 15 15 16 #include <fstream >17 #include <stdlib > // min, max16 #include <fstream.hfa> 17 #include <stdlib.hfa> // min, max 18 18 19 19 int main( void ) { -
tests/preempt_longrun/create.c
rff593a3 r73abe95 1 #include <kernel >2 #include <thread >3 #include <time >1 #include <kernel.hfa> 2 #include <thread.hfa> 3 #include <time.hfa> 4 4 5 5 #include "long_tests.h" -
tests/preempt_longrun/enter.c
rff593a3 r73abe95 1 #include <kernel >2 #include <monitor >3 #include <thread >4 #include <time >1 #include <kernel.hfa> 2 #include <monitor.hfa> 3 #include <thread.hfa> 4 #include <time.hfa> 5 5 6 6 #define __kick_rate 75000ul -
tests/preempt_longrun/enter3.c
rff593a3 r73abe95 1 #include <kernel >2 #include <monitor >3 #include <thread >4 #include <time >1 #include <kernel.hfa> 2 #include <monitor.hfa> 3 #include <thread.hfa> 4 #include <time.hfa> 5 5 6 6 #define __kick_rate 75000ul -
tests/preempt_longrun/processor.c
rff593a3 r73abe95 1 #include <kernel >2 #include <thread >3 #include <time >1 #include <kernel.hfa> 2 #include <thread.hfa> 3 #include <time.hfa> 4 4 5 5 #include <unistd.h> -
tests/preempt_longrun/stack.c
rff593a3 r73abe95 1 #include <kernel >2 #include <math >3 #include <thread >4 #include <time >1 #include <kernel.hfa> 2 #include <math.hfa> 3 #include <thread.hfa> 4 #include <time.hfa> 5 5 6 6 #define __kick_rate 5000000ul -
tests/preempt_longrun/yield.c
rff593a3 r73abe95 1 #include <kernel >2 #include <thread >3 #include <time >1 #include <kernel.hfa> 2 #include <thread.hfa> 3 #include <time.hfa> 4 4 5 5 #define __kick_rate 550000ul -
tests/quoted_keyword.c
rff593a3 r73abe95 14 14 // 15 15 16 #include <fstream >16 #include <fstream.hfa> 17 17 18 18 struct { -
tests/raii/dtor-early-exit.c
rff593a3 r73abe95 14 14 // 15 15 16 #include <fstream >17 #include <stdlib >16 #include <fstream.hfa> 17 #include <stdlib.hfa> 18 18 extern "C" { 19 19 #define false ((int)0) // until stdbool.h works -
tests/raii/globals.c
rff593a3 r73abe95 1 #include <fstream >1 #include <fstream.hfa> 2 2 3 3 struct value_t { -
tests/random.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // random.c -- 8 // 6 // 7 // random.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Tue Jul 5 21:29:30 2016 … … 12 12 // Last Modified On : Tue Jan 2 12:19:34 2018 13 13 // Update Count : 19 14 // 14 // 15 15 16 #include <fstream >17 #include <stdlib > // random16 #include <fstream.hfa> 17 #include <stdlib.hfa> // random 18 18 #include <unistd.h> // getpid 19 19 -
tests/rational.c
rff593a3 r73abe95 14 14 // 15 15 16 #include <rational >17 #include <limits >18 #include <stdlib >19 #include <fstream >16 #include <rational.hfa> 17 #include <limits.hfa> 18 #include <stdlib.hfa> 19 #include <fstream.hfa> 20 20 21 21 // UNNECESSARY, FIX ME -
tests/searchsort.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // searchsort.c -- 8 // 6 // 7 // searchsort.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Thu Feb 4 18:17:50 2016 … … 12 12 // Last Modified On : Tue Jan 2 08:01:17 2018 13 13 // Update Count : 100 14 // 14 // 15 15 16 #include <fstream >17 #include <stdlib > // bsearch, qsort16 #include <fstream.hfa> 17 #include <stdlib.hfa> // bsearch, qsort 18 18 #include <stdlib.h> // C version of bsearch 19 19 -
tests/shortCircuit.c
rff593a3 r73abe95 22 22 } 23 23 24 #include <fstream >24 #include <fstream.hfa> 25 25 26 26 struct test_t { -
tests/sum.c
rff593a3 r73abe95 15 15 // 16 16 17 #include <fstream >18 #include <stdlib >17 #include <fstream.hfa> 18 #include <stdlib.hfa> 19 19 20 20 void ?{}( int & c, zero_t ) { c = 0; } // not in prelude -
tests/swap.c
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // swap.c -- 7 // swap.c -- 8 8 // 9 9 // Author : Peter A. Buhr … … 14 14 // 15 15 16 #include <fstream >17 #include <stdlib > // swap16 #include <fstream.hfa> 17 #include <stdlib.hfa> // swap 18 18 19 19 int main( void ) { -
tests/time.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // time.c -- 8 // 6 // 7 // time.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Tue Mar 27 17:24:56 2018 … … 12 12 // Last Modified On : Fri Apr 6 11:27:23 2018 13 13 // Update Count : 16 14 // 14 // 15 15 16 16 #include "time" 17 #include <fstream >17 #include <fstream.hfa> 18 18 19 19 int main() { -
tests/tuple/tupleAssign.c
rff593a3 r73abe95 14 14 // 15 15 16 #include <fstream >16 #include <fstream.hfa> 17 17 18 18 int main() { -
tests/user_literals.c
rff593a3 r73abe95 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // user_literals.c -- 8 // 6 // 7 // user_literals.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Wed Sep 6 21:40:50 2017 … … 12 12 // Last Modified On : Sun Apr 29 16:51:42 2018 13 13 // Update Count : 54 14 // 14 // 15 15 16 #include <fstream >16 #include <fstream.hfa> 17 17 #include <wchar.h> 18 18 #include <uchar.h> -
tests/vector.c
rff593a3 r73abe95 14 14 // 15 15 16 #include <fstream >17 #include <vector >16 #include <fstream.hfa> 17 #include <vector.hfa> 18 18 19 19 #undef assert -
tests/virtualCast.c
rff593a3 r73abe95 9 9 */ 10 10 11 #include <stdlib >11 #include <stdlib.hfa> 12 12 #include <assert.h> 13 13
Note:
See TracChangeset
for help on using the changeset viewer.