Changeset d22bf87 for driver/as.cc


Ignore:
Timestamp:
Oct 24, 2023, 10:10:55 PM (8 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
8941b6b
Parents:
a310ae9
Message:

formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • driver/as.cc

    ra310ae9 rd22bf87  
    1111// Created On       : Wed Aug  1 10:49:42 2018
    1212// Last Modified By : Peter A. Buhr
    13 // Last Modified On : Tue Oct 24 18:40:33 2023
    14 // Update Count     : 158
     13// Last Modified On : Tue Oct 24 20:45:06 2023
     14// Update Count     : 159
    1515//
    1616
     
    4545                char * dcursor;
    4646                if ( (dcursor = strstr( start, ".Ldebug_info0:" ) ) ) { // debug information ?
    47 //                      fprintf( stderr, "found .Ldebug_info0:\n" );
     47                        // fprintf( stderr, "found .Ldebug_info0:\n" );
    4848#if defined( __i386 ) || defined( __x86_64 )
    4949                        if ( char * cursor = strstr( dcursor, ".long\t.LASF" ) ) { // language code ?
    50 //                              fprintf( stderr, ".long\t.LASF\n" );
     50                                // fprintf( stderr, ".long\t.LASF\n" );
    5151#elif defined( __aarch64__ )
    5252                        if ( char * cursor = strstr( dcursor, ".4byte\t.LASF" ) ) { // language code ?
    53 //                              fprintf( stderr, ".4byte\t.LASF\n" );
     53                                // fprintf( stderr, ".4byte\t.LASF\n" );
    5454#else
    5555        #error unsupported architecture
     
    6363                                if ( *(cursor - 2) == '0' && *(cursor - 1) == 'x' &&
    6464                                         (*cursor == 'c' || *cursor == '1' || *cursor == '2') ) { // C99/C89/C
    65 //                                      fprintf( stderr, "language code C99/C89/C %c\n", *cursor );
     65                                        // fprintf( stderr, "language code C99/C89/C %c\n", *cursor );
    6666                                        // Expand file by one byte to hold 2 character Cforall language code.
    6767                                        if ( ftruncate( fd, size + 1 ) ) { perror( "ftruncate" ); exit( EXIT_FAILURE ); };
    6868                                        memmove( cursor + 2, cursor + 1, start + size - cursor - 1 ); // move remaining text 1 character right
    6969                                } else if ( *(cursor - 3) == '0' && *(cursor - 2) == 'x' && *(cursor - 1) == '1' && *cursor == 'd' ) { // C11
    70 //                                      fprintf( stderr, "language code C11 %c\n", *cursor );
     70                                        // fprintf( stderr, "language code C11 %c\n", *cursor );
    7171                                } else {
    7272                                        for ( int i = 0; i < 6; i += 1 ) {      // move N (magic) lines forward
Note: See TracChangeset for help on using the changeset viewer.