/*********************************************************************** * * ***** *** *** * * * * * * * * *** *** * * * * * * * ***** *** *** * * A FREE Finite Elements Analysis Program in ANSI C for the UNIX OS. * * Composed and edited by * Professor Dr.-Ing. Frank Rieg, University of Bayreuth, Germany * * eMail: * frank.rieg@uni-bayreuth.de * dr.frank.rieg@t-online.de * * V10.0 December 12, 2001 * * Z88 should compile and run under any UNIX OS and Motif 2.0. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program 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 this program; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. ***********************************************************************/ /*********************************************************************** * wlog88c gibt Log-Datei-Meldungen aus (1 FR_INT4, 1 int) * 9.2.2004 Rieg ***********************************************************************/ /*********************************************************************** * Fuer UNIX ***********************************************************************/ #ifdef FR_UNIX #include #include /* FILE,fprintf,fflush */ #endif /*********************************************************************** * Fuer WindowsNT und 95 ***********************************************************************/ #ifdef FR_WIN95 #include #include /* FILE,fprintf,fflush */ #endif /*********************************************************************** * hier beginnt Function wlog88c ***********************************************************************/ int wlog88c(FR_INT4 i,int iatx) { extern FILE *fwlo; extern FR_INT4 LANG; switch(iatx) { case LOG_BZ88COM: if(LANG == 1) fprintf(fwlo,"Start Z88COM Version 11.0"); if(LANG == 2) fprintf(fwlo,"start Z88COM version 11.0"); fflush(fwlo); break; case LOG_OPENDYN: if(LANG == 1) fprintf(fwlo,"\nOeffnen der Datei Z88.DYN"); if(LANG == 2) fprintf(fwlo,"\nopening file Z88.DYN"); fflush(fwlo); break; case LOG_LADETECT: if(LANG == 1) fprintf(fwlo,"\nSprache Deutsch in Z88.DYN endeckt"); if(LANG == 2) fprintf(fwlo,"\nlanguage English in Z88.DYN detected"); fflush(fwlo); break; case LOG_NODYN: if(LANG == 1) fprintf(fwlo,"\n### kann Z88.DYN nicht oeffnen ..Stop ###"); if(LANG == 2) fprintf(fwlo,"\n### cannot open Z88.DYN ..stop ###"); fflush(fwlo); break; case LOG_WRONGDYN: if(LANG == 1) fprintf(fwlo,"\n### File Z88.DYN ist nicht korrekt ..Stop ###"); if(LANG == 2) fprintf(fwlo,"\n### file Z88.DYN is not correct ..stop ###"); fflush(fwlo); break; case LOG_NOCFG: if(LANG == 1) fprintf(fwlo,"\n### kann Z88COM.CFG nicht oeffnen ..Stop ###"); if(LANG == 2) fprintf(fwlo,"\n### cannot open Z88COM.CFG ..stop ###"); fflush(fwlo); break; case LOG_WRONGCFG: if(LANG == 1) fprintf(fwlo,"\n### File Z88COM.CFG ist nicht korrekt ..Stop ###"); if(LANG == 2) fprintf(fwlo,"\n### file Z88COM.CFG is not correct ..stop ###"); fflush(fwlo); break; case LOG_NOWRICFG: if(LANG == 1) fprintf(fwlo,"\n### Fehler beim Schreiben von Z88COM.CFG ..Stop ###"); if(LANG == 2) fprintf(fwlo,"\n### error when writing Z88COM.CFG ..stop ###"); fflush(fwlo); break; case LOG_NOZ88V: if(LANG == 1) fprintf(fwlo,"\n??? Z88V konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo,"\n??? could not launch Z88V ..continue ???"); fflush(fwlo); break; case LOG_NOZ88G: if(LANG == 1) fprintf(fwlo,"\n??? Z88G konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo,"\n??? could not launch Z88G ..continue ???"); fflush(fwlo); break; case LOG_NOZ88H: if(LANG == 1) fprintf(fwlo,"\n??? Z88H konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo,"\n??? could not launch Z88H ..continue ???"); fflush(fwlo); break; case LOG_NOZ88X: if(LANG == 1) fprintf(fwlo,"\n??? Z88X konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo,"\n??? could not launch Z88X ..continue ???"); fflush(fwlo); break; case LOG_NOZ88N: if(LANG == 1) fprintf(fwlo,"\n??? Z88N konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo,"\n??? could not launch Z88N ..continue ???"); fflush(fwlo); break; case LOG_NOZ88F: if(LANG == 1) fprintf(fwlo,"\n??? Z88F konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo,"\n??? could not launch Z88F ..continue ???"); fflush(fwlo); break; case LOG_NOZ88I1: if(LANG == 1) fprintf(fwlo,"\n??? Z88I1 konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo,"\n??? could not launch Z88I1 ..continue ???"); fflush(fwlo); break; case LOG_NOZ88I2: if(LANG == 1) fprintf(fwlo,"\n??? Z88I2 konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo,"\n??? could not launch Z88I2 ..continue ???"); fflush(fwlo); break; case LOG_NOZ88D: if(LANG == 1) fprintf(fwlo,"\n??? Z88D konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo,"\n??? could not launch Z88D ..continue ???"); fflush(fwlo); break; case LOG_NOZ88E: if(LANG == 1) fprintf(fwlo,"\n??? Z88E konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo,"\n??? could not launch Z88E ..continue ???"); fflush(fwlo); break; case LOG_NOEDDYN: if(LANG == 1) fprintf(fwlo, "\n??? Editor mit Z88.DYN konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo, "\n??? could not launch your editor loading Z88.DYN ..continue ???"); fflush(fwlo); break; case LOG_NOEDCOL: if(LANG == 1) fprintf(fwlo, "\n??? Editor mit Z88P.COL konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo, "\n??? could not launch your editor loading Z88P.COL ..continue ???"); fflush(fwlo); break; case LOG_NOEDOGL: if(LANG == 1) fprintf(fwlo, "\n??? Editor mit Z88O.OGL konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo, "\n??? could not launch your editor loading Z88O.OGL ..continue ???"); fflush(fwlo); break; case LOG_NOEDNI: if(LANG == 1) fprintf(fwlo, "\n??? Editor mit Z88NI.TXT konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo, "\n??? could not launch your editor loading Z88NI.TXT ..continue ???"); fflush(fwlo); break; case LOG_NOEDI1: if(LANG == 1) fprintf(fwlo, "\n??? Editor mit Z88I1.TXT konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo, "\n??? could not launch your editor loading Z88I1.TXT ..continue ???"); fflush(fwlo); break; case LOG_NOEDI2: if(LANG == 1) fprintf(fwlo, "\n??? Editor mit Z88I2.TXT konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo, "\n??? could not launch your editor loading Z88I2.TXT ..continue ???"); fflush(fwlo); break; case LOG_NOEDI3: if(LANG == 1) fprintf(fwlo, "\n??? Editor mit Z88I3.TXT konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo, "\n??? could not launch your editor loading Z88I3.TXT ..continue ???"); fflush(fwlo); break; case LOG_NOEDI4: if(LANG == 1) fprintf(fwlo, "\n??? Editor mit Z88I4.TXT konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo, "\n??? could not launch your editor loading Z88I4.TXT ..continue ???"); fflush(fwlo); break; case LOG_NOEDO0: if(LANG == 1) fprintf(fwlo, "\n??? Editor mit Z88O0.TXT konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo, "\n??? could not launch your editor loading Z88O0.TXT ..continue ???"); fflush(fwlo); break; case LOG_NOEDO1: if(LANG == 1) fprintf(fwlo, "\n??? Editor mit Z88O1.TXT konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo, "\n??? could not launch your editor loading Z88O1.TXT ..continue ???"); fflush(fwlo); break; case LOG_NOEDO2: if(LANG == 1) fprintf(fwlo, "\n??? Editor mit Z88O2.TXT konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo, "\n??? could not launch your editor loading Z88O2.TXT ..continue ???"); fflush(fwlo); break; case LOG_NOEDO3: if(LANG == 1) fprintf(fwlo, "\n??? Editor mit Z88O3.TXT konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo, "\n??? could not launch your editor loading Z88O3.TXT ..continue ???"); fflush(fwlo); break; case LOG_NOEDO4: if(LANG == 1) fprintf(fwlo, "\n??? Editor mit Z88O4.TXT konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo, "\n??? could not launch your editor loading Z88O4.TXT ..continue ???"); fflush(fwlo); break; case LOG_NOEDO6: if(LANG == 1) fprintf(fwlo, "\n??? Editor mit Z88O6.TXT konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo, "\n??? could not launch your editor loading Z88O6.TXT ..continue ???"); fflush(fwlo); break; case LOG_NOZ88P: if(LANG == 1) fprintf(fwlo,"\n??? Z88P konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo,"\n??? could not launch Z88P ..continue ???"); fflush(fwlo); break; case LOG_NOZ88O: if(LANG == 1) fprintf(fwlo,"\n??? Z88O konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo,"\n??? could not launch Z88O ..continue ???"); fflush(fwlo); break; case LOG_NOO6: if(LANG == 1) fprintf(fwlo,"\n??? Kann Z88O6.TXT nicht oeffnen ..weiter ???"); if(LANG == 2) fprintf(fwlo,"\n??? Cannot open Z88O6.TXT ..continue ???"); fflush(fwlo); break; case LOG_NOO7: if(LANG == 1) fprintf(fwlo,"\n??? Kann Z88O7.TXT nicht oeffnen ..weiter ???"); if(LANG == 2) fprintf(fwlo,"\n??? Cannot open Z88O7.TXT ..continue ???"); fflush(fwlo); break; case LOG_NBYTES: if(LANG == 1) fprintf(fwlo,"\n%ld Bytes Z88O6.TXT zugefuegt",i); if(LANG == 2) fprintf(fwlo,"\n%ld Bytes added to Z88O6.TXT",i); fflush(fwlo); break; case LOG_NOO6TMP: if(LANG == 1) fprintf(fwlo,"\n??? Kann Z88O6.TMP nicht oeffnen ..weiter ???"); if(LANG == 2) fprintf(fwlo,"\n??? Cannot open Z88O6.TMP ..continue ???"); fflush(fwlo); break; case LOG_XONXOFF: if(LANG == 1) fprintf(fwlo,"\nXON/XOFF-Sequenz vor Z88O6.TXT gestellt"); if(LANG == 2) fprintf(fwlo,"\nXON/XOFF command added to Z88O6.TXT"); fflush(fwlo); break; case LOG_NOBROWSER: if(LANG == 1) fprintf(fwlo, "\n??? HTML- Browser konnte nicht gestartet werden ..weiter ???"); if(LANG == 2) fprintf(fwlo, "\n??? could not launch HTML- Browser ..continue ???"); fflush(fwlo); break; } return(0); }