00001 #ifndef DM_CQPARSE_H 00002 #define DM_CQPARSE_H 00003 00004 /* 00005 * Projekt: C-quest 00006 * Autor: David Martinek (c) 2004 00007 * email: martinek@fit.vutbr.cz 00008 * Licence: GPL v.2 00009 * Popis: Modul s funkcemi pro analýzu a naèítání vstupního souboru. 00010 * 00011 * $Id: cqparse.h,v 1.8 2004/07/12 17:30:44 martinek Exp $ 00012 * 00013 * Copyright (C)2004 David Martinek 00014 * 00015 * Tento program je svobodný software; mù¾ete jej ¹íøit a modifikovat podle 00016 * ustanovení GNU General Public License, vydávané Free Software 00017 * Foundation; a to buï verze 2 této licence anebo (podle va¹eho uvá¾ení) 00018 * kterékoli pozdìj¹í verze. 00019 * 00020 * Tento program je roz¹iøován v nadìji, ¾e bude u¾iteèný, av¹ak BEZ 00021 * JAKÉKOLI ZÁRUKY; neposkytují se ani odvozené záruky PRODEJNOSTI anebo 00022 * VHODNOSTI PRO URÈITÝ ÚÈEL. Dal¹í podrobnosti hledejte ve GNU General Public 00023 * License. 00024 * 00025 * Kopii GNU General Public License jste mìl obdr¾et spolu s tímto 00026 * programem; pokud se tak nestalo, napi¹te o ni Free Software Foundation, 00027 * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00028 */ 00029 00030 #include <stdio.h> 00031 #include <stdbool.h> 00032 #include "cqlist.h" 00033 00035 extern const char C_COMM; 00036 00038 extern const char C_STAR; 00039 00041 extern const char *NOERR; 00042 00044 extern const char *WARN_LONGLINE; 00045 00047 extern const char *ERR_TITLE; 00048 00050 extern const char *ERR_QUEST; 00051 00053 extern const char *ERR_VAR; 00054 00056 extern const char *ERR_VARORDER; 00057 00059 extern const char *ERR_ANSWTIME; 00060 00062 extern const char *ERR_EXPL; 00063 00065 extern const char *ERR_SEP; 00066 00068 extern const char *ERR_EOF; 00069 00071 extern const char *ERR_ONLINE; 00072 00080 typedef struct error_code 00081 { 00082 const char *errMsg; 00084 int line; 00085 } TErrorCode; 00086 00097 TErrorCode readTest(FILE *f, TTestData *data); 00098 00099 #endif 00100
David Martinek © 2004, < martinek (zavináè) fit (teèka) vutbr (teèka) cz >