Changeset 1200 for trunk/AGRIF/LIB/convert.y
- Timestamp:
- 2008-09-24T15:05:20+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AGRIF/LIB/convert.y
r774 r1200 89 89 listnom *parcours; 90 90 listvar *newvar; 91 int stylegiven = 0; 92 int infreegiven ; 93 int infixedgiven ; 94 int lengthmainfile; 91 95 92 96 if (argc < 2) … … 95 99 printf(" [-comdirin <directory>] [-comdirout <directory>]\n"); 96 100 printf(" [-convfile <FILENAME >] -SubloopScalar -SubloopScalar1 \n"); 101 printf(" [-free|-fixed]\n"); 97 102 exit(0); 98 103 } … … 122 127 tmpuselocallist = (listusemodule *)NULL; 123 128 List_ContainsSubroutine = (listnom *)NULL; 129 oldfortranout = (FILE *)NULL; 124 130 125 131 strcpy(mainfile,argv[1]); … … 185 191 value_char_size2 = 0 ; 186 192 value_char_size3 = 0 ; 193 inallocate = 0; 194 infixed = 1; 195 infree = 0; 187 196 188 197 checkexistcommon=1; … … 235 244 strcpy(filetoparse,argv[i+1]); 236 245 i++; 237 } 246 lengthmainfile = strlen(filetoparse); 247 if (!strcasecmp(&filetoparse[lengthmainfile-4],".f90")) 248 { 249 infixed = 0; 250 infree = 1; 251 } 252 else 253 { 254 infixed = 1; 255 infree = 0; 256 } 257 } 258 else if (!strcasecmp(argv[i],"-free")) /* file to parse */ 259 { 260 stylegiven = 1; 261 infreegiven = 1 ; 262 infixedgiven = 0; 263 } 264 else if (!strcasecmp(argv[i],"-fixed")) /* file to parse */ 265 { 266 stylegiven = 1; 267 infreegiven = 0; 268 infixedgiven = 1; 269 } 238 270 else if (!strcasecmp(argv[i],"-SubloopScalar")) /* file to parse */ 239 271 { … … 268 300 } 269 301 302 if (stylegiven == 1) 303 { 304 infree = infreegiven; 305 infixed = infixedgiven; 306 } 270 307 Save_Length(nomdir,34); 271 308 Save_Length(commondirout,35);
Note: See TracChangeset
for help on using the changeset viewer.