From: Diemo S. <di...@us...> - 2008-12-18 13:16:44
|
Update of /cvsroot/sdif/SDIF/examples In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1067/examples Modified Files: list-types.c Log Message: Use new access methods to struct elements of type definitions. Index: list-types.c =================================================================== RCS file: /cvsroot/sdif/SDIF/examples/list-types.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** list-types.c 18 Dec 2008 11:20:25 -0000 1.3 --- list-types.c 18 Dec 2008 11:42:58 -0000 1.4 *************** *** 9,12 **** --- 9,15 ---- $Log$ + Revision 1.4 2008/12/18 11:42:58 diemo + Use new access methods to struct elements of type definitions. + Revision 1.3 2008/12/18 11:20:25 diemo separate frameinfo_from_signature function *************** *** 52,56 **** { SdifMatrixTypeT *mtype = SdifTestMatrixType(file, msig); ! int mnumcol = mtype->NbColumnDef; int i; --- 55,59 ---- { SdifMatrixTypeT *mtype = SdifTestMatrixType(file, msig); ! int mnumcol = SdifMatrixTypeGetNbColumns(mtype); int i; *************** *** 73,77 **** } ! int fnumcomp = ftype->NbComponent; int i; --- 76,80 ---- } ! int fnumcomp = SdifFrameTypeGetNbComponents(ftype); int i; *************** *** 84,91 **** if (!fcomp) exit(4); ! SdifSignature msig = fcomp->MtrxS; printf(" component %d: matrix %s %s\n", ! i, SdifSignatureToString(msig), fcomp->Name); matrixinfo_from_signature(file, msig); } --- 87,96 ---- if (!fcomp) exit(4); ! SdifSignature msig = SdifFrameTypeGetComponentSignature(fcomp); printf(" component %d: matrix %s %s\n", ! i, SdifSignatureToString(msig), ! SdifFrameTypeGetComponentName(fcomp)); ! matrixinfo_from_signature(file, msig); } *************** *** 108,112 **** if (!ftable || !mtable) exit(2); printf("Found %d user-defined frame types, %d matrix types SDIF file %s.\n", ! ftable->NbOfData, mtable->NbOfData, filename); /* print information about the definition of the given frame and --- 113,118 ---- if (!ftable || !mtable) exit(2); printf("Found %d user-defined frame types, %d matrix types SDIF file %s.\n", ! SdifHashTableGetNbData(ftable), SdifHashTableGetNbData(mtable), ! filename); /* print information about the definition of the given frame and |