Changeset 774 for trunk/AGRIF/LIB/convert.y
- Timestamp:
- 2007-12-18T17:45:53+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AGRIF/LIB/convert.y
r663 r774 31 31 /* knowledge of the CeCILL-C license and that you accept its terms. */ 32 32 /******************************************************************************/ 33 /* version 1. 6*/33 /* version 1.7 */ 34 34 /******************************************************************************/ 35 35 %{ … … 42 42 %union { 43 43 int ival; 44 char na[LONG NOM];44 char na[LONG_C]; 45 45 listnom * ln; 46 46 } … … 86 86 extern FILE * yyin ; 87 87 FILE *dependglobaloutput; 88 char *tmp;89 88 int i; 90 89 listnom *parcours; … … 133 132 strcpy(mpiinitvar,""); 134 133 134 length_last = 0 ; 135 length_first = 0 ; 136 length_v_typevar = 0 ; 137 length_v_nomvar = 0 ; 138 length_v_dimchar = 0 ; 139 length_v_modulename = 0 ; 140 length_v_commonname = 0 ; 141 length_v_vallengspec = 0 ; 142 length_v_nameinttypename = 0 ; 143 length_v_commoninfile = 0 ; 144 length_v_subroutinename = 0 ; 145 length_v_precision = 0 ; 146 length_v_IntentSpec = 0 ; 147 length_v_initialvalue = 0 ; 148 length_v_readedlistdimension = 0 ; 149 length_u_usemodule = 0 ; 150 length_u_charusemodule = 0 ; 151 length_u_cursubroutine = 0 ; 152 length_u_modulename = 0 ; 153 length_n_name = 0 ; 154 length_c_namevar = 0 ; 155 length_c_namepointedvar = 0 ; 156 length_o_nom = 0 ; 157 length_o_module = 0 ; 158 length_a_nomvar = 0 ; 159 length_a_subroutine = 0 ; 160 length_a_module = 0 ; 161 length_t_usemodule = 0 ; 162 length_t_cursubroutine = 0 ; 163 length_curfilename = 0 ; 164 length_nomfileoutput = 0 ; 165 length_motparse = 0 ; 166 length_mainfile = 0 ; 167 length_nomdir = 0 ; 168 length_commondirout = 0 ; 169 length_commondirin = 0 ; 170 length_filetoparse = 0 ; 171 length_curbuf = 0 ; 172 length_toprintglob = 0 ; 173 length_tmpvargridname = 0 ; 174 length_ligne_Subloop = 0 ; 175 length_lvargridname_toamr = 0 ; 176 length_toprint_utilagrif = 0 ; 177 length_toprinttmp_utilchar = 0 ; 178 length_ligne_writedecl = 0 ; 179 length_newname_toamr = 0 ; 180 length_newname_writedecl = 0 ; 181 length_ligne_toamr = 0 ; 182 length_tmpligne_writedecl = 0 ; 183 value_char_size = 0 ; 184 value_char_size1 = 0 ; 185 value_char_size2 = 0 ; 186 value_char_size3 = 0 ; 187 135 188 checkexistcommon=1; 136 189 todebug=0; … … 149 202 mark = 0 ; 150 203 shouldincludempif = 0 ; 204 Read_val_max(); 151 205 /******************************************************************************/ 152 206 /* 2- Program arguments */ … … 214 268 } 215 269 270 Save_Length(nomdir,34); 271 Save_Length(commondirout,35); 272 Save_Length(commondirin,36); 273 Save_Length(filetoparse,37); 274 216 275 /******************************************************************************/ 217 276 /* 3- Parsing of the conv file <name>.in */ … … 224 283 } 225 284 strcpy(mainfile,argv[1]); 285 Save_Length(mainfile,33); 226 286 227 287 if ( strstr(filetoparse,".f90") || … … 267 327 /* Update all lists */ 268 328 ListUpdate(); 329 /* */ 330 Clean_List_Global_Var(); 269 331 /* Indice tabvars identification */ 270 332 IndiceTabvarsIdentification(); … … 296 358 processfortran(filetoparse); 297 359 360 newvar = (listvar *)NULL; 361 /*newvar = List_Global_Var; */ 362 while ( newvar ) 363 { 364 printf("++++ %s %d %s %s %s\n", 365 newvar->var->v_nomvar, 366 newvar->var->v_nbdim, 367 newvar->var->v_subroutinename, 368 newvar->var->v_modulename, 369 newvar->var->v_typevar 370 ); 371 newvar = newvar->suiv; 372 } 298 373 /******************************************************************************/ 299 374 /* 6- Write informations in output files */ … … 332 407 creefichieramr(NameTamponfile); 333 408 409 Write_val_max(); 334 410 335 411 if ( todebug == 1 ) printf("Out of CONV \n");
Note: See TracChangeset
for help on using the changeset viewer.