Changeset 530 for trunk/AGRIF/LIB/WorkWithvarofsubroutineliste.c
- Timestamp:
- 2006-10-17T17:36:11+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AGRIF/LIB/WorkWithvarofsubroutineliste.c
r396 r530 3 3 /* CONV (converter) for Agrif (Adaptive Grid Refinement In Fortran) */ 4 4 /* */ 5 /* Copyright (C) 2005 Laurent Debreu (Laurent.Debreu@imag.fr)*/5 /* Copyright or © or Copr. Laurent Debreu (Laurent.Debreu@imag.fr) */ 6 6 /* Cyril Mazauric (Cyril.Mazauric@imag.fr) */ 7 /* */ 8 /* This program is free software; you can redistribute it and/or modify */ 9 /* it */ 10 /* */ 11 /* This program is distributed in the hope that it will be useful, */ 12 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ 13 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ 14 /* GNU General Public License for more details. */ 15 /* */ 7 /* This software is governed by the CeCILL-C license under French law and */ 8 /* abiding by the rules of distribution of free software. You can use, */ 9 /* modify and/ or redistribute the software under the terms of the CeCILL-C */ 10 /* license as circulated by CEA, CNRS and INRIA at the following URL */ 11 /* "http://www.cecill.info". */ 12 /* */ 13 /* As a counterpart to the access to the source code and rights to copy, */ 14 /* modify and redistribute granted by the license, users are provided only */ 15 /* with a limited warranty and the software's author, the holder of the */ 16 /* economic rights, and the successive licensors have only limited */ 17 /* liability. */ 18 /* */ 19 /* In this respect, the user's attention is drawn to the risks associated */ 20 /* with loading, using, modifying and/or developing or reproducing the */ 21 /* software by the user in light of its specific status of free software, */ 22 /* that may mean that it is complicated to manipulate, and that also */ 23 /* therefore means that it is reserved for developers and experienced */ 24 /* professionals having in-depth computer knowledge. Users are therefore */ 25 /* encouraged to load and test the software's suitability as regards their */ 26 /* requirements in conditions enabling the security of their systems and/or */ 27 /* data to be ensured and, more generally, to use and operate it in the */ 28 /* same conditions as regards security. */ 29 /* */ 30 /* The fact that you are presently reading this means that you have had */ 31 /* knowledge of the CeCILL-C license and that you accept its terms. */ 32 /******************************************************************************/ 33 /* version 1.0 */ 16 34 /******************************************************************************/ 17 35 #include <stdio.h> … … 21 39 22 40 /******************************************************************************/ 23 /* OPTI_1_ajoutvarofsubroutine*/41 /* ajoutvarofsubroutine_1 */ 24 42 /******************************************************************************/ 25 43 /* Firstpass 1 */ … … 29 47 /* */ 30 48 /******************************************************************************/ 31 void OPTI_1_ajoutvarofsubroutine(listvar *listtoadd) 32 { 33 listvar *tmplist; 34 35 tmplist = (listvar *)NULL; 49 void ajoutvarofsubroutine_1(listvar *listtoadd) 50 { 51 36 52 if ( firstpass == 1 && VariableIsParameter == 0 && SaveDeclare == 0) 37 53 { 38 tmplist = duplicatelistvar(listtoadd); 54 listduplicated = (listvar *)NULL; 55 duplicatelistvar(listtoadd); 39 56 varofsubroutineliste = AddListvarToListvar 40 (tmplist,varofsubroutineliste,1);57 (listduplicated,varofsubroutineliste,1); 41 58 } 42 59 } … … 204 221 205 222 /******************************************************************************/ 206 /* COM_1_UpdatevarsubroutineWithvarofsubroutinelist*/223 /* UpdatevarsubroutineWithvarofsubroutinelist_1 */ 207 224 /******************************************************************************/ 208 225 /* This subroutines is used to add the variable defined in common in the */ … … 210 227 /* */ 211 228 /******************************************************************************/ 212 void COM_1_UpdatevarsubroutineWithvarofsubroutinelist()229 void UpdatevarsubroutineWithvarofsubroutinelist_1() 213 230 { 214 231 listvar *parcours; … … 217 234 int out; 218 235 236 parcoursprec = (listvar * )NULL; 219 237 parcours = varsubroutine; 220 238 while ( parcours )
Note: See TracChangeset
for help on using the changeset viewer.