Changeset 13027 for vendors/AGRIF/dev_r12970_AGRIF_CMEMS/LEX/convert.y
- Timestamp:
- 2020-06-03T16:36:09+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendors/AGRIF/dev_r12970_AGRIF_CMEMS/LEX/convert.y
r9140 r13027 130 130 int infreegiven ; 131 131 int infixedgiven ; 132 int lengthmainfile;133 132 134 133 char filetoparse[LONG_FNAME]; … … 160 159 tmpuselocallist = (listusemodule *) NULL; 161 160 List_ContainsSubroutine = (listnom *) NULL; 161 List_Do_labels = (listname *) NULL; 162 162 oldfortran_out = (FILE *) NULL; 163 163 164 if (argc < 2) print_usage(); 165 164 if ( argc < 2 ) 165 print_usage(); 166 166 167 strcpy(config_file, argv[1]); 167 168 strcpy(work_dir, "."); … … 257 258 strcpy(filetoparse, argv[i+1]); 258 259 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; 270 262 } 271 263 else if (!strcasecmp(argv[i], "-free")) … … 400 392 /* Build new subroutines */ 401 393 firstpass = 0; 394 /* 395 printf("**********************************\n"); 396 printf("SECOND PASSES \n"); 397 printf("**********************************\n"); 398 */ 402 399 process_fortran(filetoparse); 403 400
Note: See TracChangeset
for help on using the changeset viewer.