Changeset 4bb5d36 for libcfa/src/bits
- Timestamp:
- May 16, 2022, 12:09:52 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- fa2a3b1
- Parents:
- c18bf9e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified libcfa/src/bits/debug.cfa ¶
rc18bf9e r4bb5d36 21 21 #include <unistd.h> 22 22 23 #include "bits/defs.hfa" 24 23 25 enum { buffer_size = 4096 }; 24 26 static char buffer[ buffer_size ]; 25 27 26 28 extern "C" { 27 void __cfaabi_bits_write( int fd, const char in_buffer[], int len ) { 29 // would be cool to remove libcfa_public but it's needed for libcfathread 30 void __cfaabi_bits_write( int fd, const char in_buffer[], int len ) libcfa_public { 28 31 // ensure all data is written 29 32 for ( int count = 0, retcode; count < len; count += retcode ) { … … 44 47 void __cfaabi_bits_release() __attribute__((__weak__)) {} 45 48 46 int __cfaabi_bits_print_safe ( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) )) { 49 // would be cool to remove libcfa_public but it's needed for libcfathread 50 int __cfaabi_bits_print_safe ( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) )) libcfa_public { 47 51 va_list args; 48 52
Note: See TracChangeset
for help on using the changeset viewer.