New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 13027 for vendors/AGRIF/dev_r12970_AGRIF_CMEMS/LEX/convert.y – NEMO

Ignore:
Timestamp:
2020-06-03T16:36:09+02:00 (4 years ago)
Author:
rblod
Message:

New AGRIF library, see ticket #2129

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendors/AGRIF/dev_r12970_AGRIF_CMEMS/LEX/convert.y

    r9140 r13027  
    130130    int infreegiven ; 
    131131    int infixedgiven ; 
    132     int lengthmainfile; 
    133132 
    134133    char filetoparse[LONG_FNAME]; 
     
    160159    tmpuselocallist = (listusemodule *) NULL; 
    161160    List_ContainsSubroutine = (listnom *) NULL; 
     161    List_Do_labels = (listname *) NULL; 
    162162    oldfortran_out = (FILE *) NULL; 
    163163 
    164     if (argc < 2) print_usage(); 
    165      
     164    if ( argc < 2 ) 
     165        print_usage(); 
     166 
    166167    strcpy(config_file, argv[1]); 
    167168    strcpy(work_dir, "."); 
     
    257258            strcpy(filetoparse, argv[i+1]); 
    258259            i++; 
    259             lengthmainfile = strlen(filetoparse); 
    260             if (!strcasecmp(&filetoparse[lengthmainfile-4], ".f90")) 
    261             { 
    262                 infixed = 0; 
    263                 infree = 1; 
    264             } 
    265             else 
    266             { 
    267                 infixed = 1; 
    268                 infree = 0; 
    269             } 
     260            infree  = (strstr(filetoparse, ".f90") != NULL) || (strstr(filetoparse, ".F90") != NULL); 
     261            infixed = ! infree; 
    270262        } 
    271263        else if (!strcasecmp(argv[i], "-free")) 
     
    400392    /* Build new subroutines                                                   */ 
    401393    firstpass = 0; 
     394    /* 
     395    printf("**********************************\n"); 
     396    printf("SECOND PASSES \n"); 
     397    printf("**********************************\n"); 
     398    */ 
    402399    process_fortran(filetoparse); 
    403400 
Note: See TracChangeset for help on using the changeset viewer.