Changeset e832485
- Timestamp:
- Oct 24, 2023, 5:20:58 PM (14 months ago)
- Branches:
- master
- Children:
- a310ae9
- Parents:
- dd7c2ce0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
driver/as.cc
rdd7c2ce0 re832485 11 11 // Created On : Wed Aug 1 10:49:42 2018 12 12 // Last Modified By : Peter A. Buhr 13 // Last Modified On : Tue Oct 24 1 6:53:18202314 // Update Count : 15 513 // Last Modified On : Tue Oct 24 17:20:07 2023 14 // Update Count : 157 15 15 // 16 16 … … 63 63 if ( *(cursor - 2) == '0' && *(cursor - 1) == 'x' && 64 64 (*cursor == 'c' || *cursor == '1' || *cursor == '2') ) { // C99/C89/C 65 fprintf( stderr, "language code%c\n", *cursor );65 // fprintf( stderr, "language code C99/C89/C %c\n", *cursor ); 66 66 // Expand file by one byte to hold 2 character Cforall language code. 67 67 if ( ftruncate( fd, size + 1 ) ) { perror( "ftruncate" ); exit( EXIT_FAILURE ); }; 68 68 memmove( cursor + 2, cursor + 1, start + size - cursor - 1 ); // move remaining text 1 character right 69 69 } else if ( *(cursor - 3) == '0' && *(cursor - 2) == 'x' && *(cursor - 1) == '1' && *cursor == 'd' ) { // C11 70 // fprintf( stderr, "language code C11 %c\n", *cursor ); 70 71 } else { 71 72 for ( int i = 0; i < 6; i += 1 ) { // move N (magic) lines forward
Note: See TracChangeset
for help on using the changeset viewer.