|
|
| version 1.1, 2006/02/15 16:35:05 | version 1.3, 2006/07/17 18:26:18 |
|---|---|
| Line 1 | Line 1 |
| /********************************************************************/ | /********************************************************************/ |
| /* AnalizadorDependencias.c */ | /* AnalizadorDependencias.c */ |
| /* */ | /* */ |
| /* */ | |
| /* Copyright (c) 1997-2006 Rafael Rico (rafael.rico@uah.es) */ | /* Copyright (c) 1997-2006 Rafael Rico (rafael.rico@uah.es) */ |
| /* */ | /* */ |
| /* This file is part of ADD version 5.10. */ | /* Este fichero forma parte de ADD */ |
| /* (Analizador de Dependencias de Datos) */ | |
| /* Version 5.10. */ | |
| /* */ | |
| /* */ | |
| /* ADD es software libre. Puede redistribuirlo y/o modificarlo */ | |
| /* bajo los términos de la Licencia Pública General de GNU */ | |
| /* según es publicada por la Free Software Foundation, bien bajo */ | |
| /* la versión 2 de dicha Licencia o bien (según su elección) */ | |
| /* bajo cualquier versión posterior. */ | |
| /* */ | |
| /* ADD se distribuye con la esperanza de que sea útil, */ | |
| /* pero SIN NINGUNA GARANTÍA, incluso sin la garantía MERCANTIL */ | |
| /* implícita y sin garantizar la CONVENIENCIA PARA UN PROPÓSITO */ | |
| /* PARTICULAR. Véase la Licencia Pública General de GNU para */ | |
| /* más detalles. */ | |
| /* */ | /* */ |
| /* ADD is free software; you can redistribute it and/or modify */ | /* Debería haber recibido una copia de la Licencia Pública General */ |
| /* it under the terms of the GNU General Public License as */ | /* junto con ADD. Si no ha sido así, escriba a la Free Software */ |
| /* published by the Free Software Foundation; either version 2 of */ | /* Foundation, Inc., 51 Franklin St, Fifth Floor, */ |
| /* the License, or (at your option) any later version. */ | /* Boston, MA 02110-1301 EEUU. */ |
| /* */ | |
| /* ADD is distributed in the hope that it will be useful, */ | |
| /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ | |
| /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ | |
| /* GNU General Public License for more details. */ | |
| /* */ | |
| /* You should have received a copy of the GNU General Public */ | |
| /* License along with ADD; if not, write to the Free Software */ | |
| /* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA */ | |
| /* 02111-1307 USA */ | |
| /* */ | /* */ |
| /* --------------------------- History --------------------------- */ | /* -------------------------- Historia --------------------------- */ |
| /* */ | /* */ |
| /* Revision 1.2. 01/2006 */ | /* $Id$ */ |
| /* Added GPL License and JavaDoc style documentation */ | |
| /* */ | /* */ |
| /* Revision 1.1. 09/2005 */ | /* Revisión 1.2. 01/2006 */ |
| /* Initial Revision */ | /* Se añade la licencia GPL y documentación en estilo Javadoc */ |
| /* */ | |
| /* Revisión 1.1. 09/2005 */ | |
| /* Versión inicial */ | |
| /* */ | /* */ |
| /********************************************************************/ | /********************************************************************/ |
| Line 228 void CrearPizarraLecturas() | Line 236 void CrearPizarraLecturas() |
| } | } |
| /* iniciar ubicación en la pizarra de lecturas */ | |
| void IniciarUbicacionPizarraLecturas(unsigned int ubicacion) | |
| { | |
| unsigned int j; | |
| /* relleno con FFFF...FFF (-1) */ | |
| for(j=0; j<configuracion.ventana; j++) pizarra_lecturas[ubicacion][j] = -1; | |
| } | |
| /* iniciar la pizarra de lecturas */ | /* iniciar la pizarra de lecturas */ |
| void IniciarPizarraLecturas() | void IniciarPizarraLecturas() |
| { | { |
| unsigned int i, j; | unsigned int i; |
| for(i=0; i<num_ubicaciones; i++) IniciarUbicacionPizarraLecturas(i); | |
| } | |
| /* iniciar la pizarra de lecturas (obsoleta) */ | |
| /* void IniciarPizarraLecturas() | |
| { | |
| unsigned int i, j; */ | |
| /* relleno con FFFF...FFF (-1) */ | /* relleno con FFFF...FFF (-1) */ |
| for(i=0; i<num_ubicaciones; i++) | /* for(i=0; i<num_ubicaciones; i++) |
| { | { |
| for(j=0; j<configuracion.ventana; j++) pizarra_lecturas[i][j] = -1; | for(j=0; j<configuracion.ventana; j++) pizarra_lecturas[i][j] = -1; |
| } | }*/ |
| /*for(i=0; i<num_ubicaciones; i++) | /*for(i=0; i<num_ubicaciones; i++) |
| { | { |
| Line 247 void IniciarPizarraLecturas() | Line 277 void IniciarPizarraLecturas() |
| for(j=0; j<configuracion.ventana; j++) printf("%d ", pizarra_lecturas[i][j]); | for(j=0; j<configuracion.ventana; j++) printf("%d ", pizarra_lecturas[i][j]); |
| printf("\n"); | printf("\n"); |
| }*/ | }*/ |
| /* | |
| } | } |
| */ | |
| /* crea las pizarras en las que se anotan las dependencias de datos de cada ventana */ | /* crea las pizarras en las que se anotan las dependencias de datos de cada ventana */ |
| Line 785 void AnotarListaEscrituras(char *listado | Line 817 void AnotarListaEscrituras(char *listado |
| } | } |
| pizarra_escrituras[indice_ubi] = indice; | pizarra_escrituras[indice_ubi] = indice; |
| /* cada escritura en una ubicación inicia la correspondiente columna en la pizarra de lecturas */ | |
| IniciarUbicacionPizarraLecturas(indice_ubi); | |
| /* capturo el siguiente campo */ | /* capturo el siguiente campo */ |
| elemento = strtok(NULL, ":"); | elemento = strtok(NULL, ":"); |