Changeset 530 for trunk/AGRIF/LIB/WorkWithAllocatelist.c
- Timestamp:
- 2006-10-17T17:36:11+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AGRIF/LIB/WorkWithAllocatelist.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 /* 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". */ 7 12 /* */ 8 /* This program is free software; you can redistribute it and/or modify */ 9 /* it */ 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. */ 10 18 /* */ 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. */ 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. */ 15 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> … … 22 40 23 41 /******************************************************************************/ 24 /* OPTI_1_AddIdentToTheAllocateList*/42 /* AddIdentToTheAllocateList_1 */ 25 43 /******************************************************************************/ 26 44 /* Firstpass 1 */ … … 28 46 /* */ 29 47 /******************************************************************************/ 30 void OPTI_1_AddIdentToTheAllocateList(char *nom)48 void AddIdentToTheAllocateList_1(char *nom) 31 49 { 32 50 listallocate *newvar; … … 78 96 79 97 /******************************************************************************/ 80 /* OPTI_0_IsAllocateInThisSubroutine*/98 /* IsAllocateInThisSubroutine_0 */ 81 99 /******************************************************************************/ 82 100 /* Firstpass 0 */ … … 84 102 /* */ 85 103 /******************************************************************************/ 86 int OPTI_0_IsAllocateInThisSubroutine()104 int IsAllocateInThisSubroutine_0() 87 105 { 88 106 listallocate *parcours; … … 106 124 107 125 /******************************************************************************/ 108 /* OPTI_0_IsVarAllocatable*/126 /* IsVarAllocatable_0 */ 109 127 /******************************************************************************/ 110 128 /* Firstpass 0 */ … … 112 130 /* */ 113 131 /******************************************************************************/ 114 int OPTI_0_IsVarAllocatable(char *ident)132 int IsVarAllocatable_0(char *ident) 115 133 { 116 134 listallocate *parcours; … … 132 150 133 151 /******************************************************************************/ 134 /* OPTI_0_varisallocatable*/152 /* varisallocatable_0 */ 135 153 /******************************************************************************/ 136 154 /* Firstpass 0 */ … … 138 156 /* */ 139 157 /******************************************************************************/ 140 int OPTI_0_varisallocatable(char *ident)158 int varisallocatable_0(char *ident) 141 159 { 142 160 listvar *newvar; … … 150 168 while ( newvar && out == 0 ) 151 169 { 152 if ( !strc mp(ident,newvar->var->nomvar) &&170 if ( !strcasecmp(ident,newvar->var->nomvar) && 153 171 newvar->var->allocatable == 1 ) out = 1; 154 172 else newvar = newvar->suiv; … … 159 177 while ( newvar && out == 0 ) 160 178 { 161 if ( !strc mp(ident,newvar->var->nomvar) &&179 if ( !strcasecmp(ident,newvar->var->nomvar) && 162 180 newvar->var->allocatable == 1 ) out = 1; 163 181 else newvar = newvar->suiv;
Note: See TracChangeset
for help on using the changeset viewer.