Changeset cefc59f
- Timestamp:
- Apr 24, 2020, 12:11:44 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 13099a8b
- Parents:
- 93ace83 (diff), 2a01c9b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io.cfa
r93ace83 rcefc59f 603 603 int async_statx(int dirfd, const char *pathname, int flags, unsigned int mask, struct statx *statxbuf) { 604 604 #if !defined(IORING_OP_STATX) 605 return statx( dirfd, pathname, flags, mask, statxbuf ); 605 //return statx( dirfd, pathname, flags, mask, statxbuf ); 606 return syscall( __NR_io_uring_setup, dirfd, pathname, flags, mask, statxbuf ); 606 607 #else 607 608 __submit_prelude -
libcfa/src/iostream.cfa
r93ace83 rcefc59f 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Apr 22 10:50:46202013 // Update Count : 9 3312 // Last Modified On : Thu Apr 23 17:33:32 2020 13 // Update Count : 942 14 14 // 15 15 … … 593 593 (ostype &)(os | fmt | "" | fmt2); \ 594 594 } else if ( f.base == 'o' ) { \ 595 if ( fmt.flags.pc && fmt.pc > 2 1 ) fmt.pc -= 21; \595 if ( fmt.flags.pc && fmt.pc > 22 ) fmt.pc -= 22; \ 596 596 if ( fmt.flags.left ) { \ 597 597 fmt.flags.left = false; \ 598 598 fmt.wd = 1; \ 599 599 fmt.val = (unsigned long long int)fmt.val >> 2; \ 600 printf( "L %llo %d %d '%c' %x\n", fmt.val, fmt.wd, fmt.pc, fmt.base, fmt.all ); \ 600 601 fmt2.wd = 1; \ 601 602 fmt2.val = ((msig & 0x3) << 1) + 1; \ … … 603 604 sepOff( os ); \ 604 605 fmt2.flags.left = true; \ 605 fmt2.wd = f.wd - ( ceiling( high1( fmt.val ), 3 ) + 1 ); \ 606 int msigd = ceiling( high1( fmt.val ), 3 ) + 1; \ 607 fmt2.wd = f.wd - (fmt.pc > msigd ? fmt.pc : msigd); \ 608 if ( fmt2.wd < 0 ) fmt2.wd = 21; \ 606 609 fmt2.flags.pc = true; fmt2.pc = 21; \ 607 if ( ! fmt.flags.nobsdp ) { fmt2.wd-= 1; } \610 if ( ! fmt.flags.nobsdp ) { if ( fmt.pc < fmt.wd ) fmt.wd -= 1; else fmt.pc -= 1; } \ 608 611 fmt2.val = lsig & 0x7fffffffffffffff; \ 609 612 (ostype &)(os | fmt2); \ -
tests/manipulatorsOutput3.cfa
r93ace83 rcefc59f 19 19 sout | nl; 20 20 21 printf( "%#.10o\n", 0123 ); 22 sout | wd( 1,10, oct(0123) ); 21 23 sout | oct(x); 22 24 sout | nobase(oct(x)); 23 sout | wd( 45, upcase(oct(123)) ); 24 sout | wd( 45,40, upcase(oct(123)) ); 25 sout | wd( 40,45, upcase(oct(123)) ); 26 sout | wd( 45, upcase(oct(x)) ); 27 sout | wd( 45,40, upcase(oct(x)) ); 28 sout | wd( 40,45, upcase(oct(x)) ); 29 sout | left(wd( 45, upcase(oct(x)) )) | 'X'; 25 sout | wd( 45, oct(0123) ); 26 sout | wd( 45,40, oct(0123) ); 27 sout | wd( 40,45, oct(0123) ); 28 sout | wd( 45, oct(x) ); 29 sout | wd( 45,40, oct(x) ); 30 sout | wd( 40,45, oct(x) ); 31 32 sout | left(wd( 45, oct(0123) )) | 'X'; 33 sout | left(wd( 45, oct(x) )) | 'X'; 34 sout | left(wd( 45,40, oct(0123) )) | 'X'; 35 sout | left(wd( 45,40, oct(x) )) | 'X'; 36 sout | left(wd( 40,45, oct(0123) )) | 'X'; 37 sout | left(wd( 40,45, oct(x) )) | 'X'; 38 printf( "%#-1.10oX\n", 0123 ); 39 sout | left(wd( 1,10, oct(0123) )) | 'X'; 40 printf( "%#-40.10oX\n", 0123 ); 41 sout | left(wd( 40,10, oct(0123) )) | 'X'; 42 sout | left(wd( 40,10, oct(x) )) | 'X'; 43 sout | left(wd( 10,40, oct(0123) )) | 'X'; 44 sout | left(wd( 10,40, oct(x) )) | 'X'; 45 30 46 int128 y = 123456789; 31 sout | left(wd( 45, 49, upcase(oct(y)) )) | 'X';47 sout | left(wd( 45, 49, oct(y) )) | 'X'; 32 48 sout | nl; 33 49
Note: See TracChangeset
for help on using the changeset viewer.