Changes in / [167a9c8:43c89a7]
- Files:
-
- 2 deleted
- 6 edited
-
doc/LaTeXmacros/common.tex (modified) (2 diffs)
-
src/InitTweak/GenInit.cc (modified) (1 diff)
-
src/libcfa/concurrency/monitor (modified) (1 diff)
-
src/libcfa/concurrency/monitor.c (modified) (1 diff)
-
src/tests/.expect/globals.txt (deleted)
-
src/tests/globals.c (deleted)
-
src/tests/monitor.c (modified) (1 diff)
-
src/tests/simpleGenericTriple.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
doc/LaTeXmacros/common.tex
r167a9c8 r43c89a7 248 248 morekeywords={_Alignas,_Alignof,__alignof,__alignof__,asm,__asm,__asm__,_At,_Atomic,__attribute,__attribute__,auto, 249 249 _Bool,catch,catchResume,choose,_Complex,__complex,__complex__,__const,__const__,disable,dtype,enable,__extension__, 250 fallthrough,fallthru,finally,forall,ftype,_Generic,_Imaginary,inline,__label__,lvalue,_Noreturn,o ne_t,otype,restrict,_Static_assert,251 _Thread_local,throw,throwResume,trait,try,typeof,__typeof,__typeof__, zero_t},250 fallthrough,fallthru,finally,forall,ftype,_Generic,_Imaginary,inline,__label__,lvalue,_Noreturn,otype,restrict,_Static_assert, 251 _Thread_local,throw,throwResume,trait,try,typeof,__typeof,__typeof__,}, 252 252 }% 253 253 … … 263 263 escapechar=§, % LaTeX escape in CFA code §...§ (section symbol), emacs: C-q M-' 264 264 mathescape=true, % LaTeX math escape in CFA code $...$ 265 %keepspaces=true, % 265 %keepspaces=true, % 266 266 showstringspaces=false, % do not show spaces with cup 267 267 showlines=true, % show blank lines at end of code -
src/InitTweak/GenInit.cc
r167a9c8 r43c89a7 332 332 if ( ObjectDecl * field = dynamic_cast< ObjectDecl * >( member ) ) { 333 333 if ( isManaged( field ) ) { 334 StructInstType inst( Type::Qualifiers(), aggregateDecl ); 335 managedTypes.insert( SymTab::Mangler::mangle( &inst ) ); 334 managedTypes.insert( SymTab::Mangler::mangle( aggregateDecl ) ); 336 335 break; 337 336 } -
src/libcfa/concurrency/monitor
r167a9c8 r43c89a7 30 30 void leave(monitor *); 31 31 32 struct monitor_guard {33 monitor * m;34 };35 36 static inline void ?{}( monitor_guard * this, monitor * m ) {37 this->m = m;38 enter( this->m );39 }40 41 static inline void ^?{}( monitor_guard * this ) {42 leave( this->m );43 }44 45 32 #endif //MONITOR_H -
src/libcfa/concurrency/monitor.c
r167a9c8 r43c89a7 44 44 45 45 unlock( &this->lock ); 46 47 46 if( this->holder ) ScheduleThread( this->holder ); 48 47 } -
src/tests/monitor.c
r167a9c8 r43c89a7 16 16 17 17 void increment( /*mutex*/ global_t * this ) { 18 monitor_guard g = { &this->m };18 enter( &this->m ); 19 19 this->value += 1; 20 leave( &this->m ); 20 21 } 21 22 -
src/tests/simpleGenericTriple.c
r167a9c8 r43c89a7 28 28 int x1 = 123, x3 = 456; 29 29 double x2 = 999.123; 30 struct T3(int) Li = { x1, (int)x2, x3 };30 struct T3(int) Li = { x1, x2, x3 }; 31 31 struct T3(int) Ri = { 9, 2, 3 }; 32 32 struct T3(int) reti = Li+Ri;
Note:
See TracChangeset
for help on using the changeset viewer.