--- capa/capa51/pProj/capaCommon.h 1999/09/28 21:26:21 1.1 +++ capa/capa51/pProj/capaCommon.h 2000/07/07 18:33:03 1.4 @@ -1,14 +1,33 @@ +/* This header defines Application Interface to the + CAPA system. It needs capaParser.h and capaToken.h + Copyright (C) 1992-2000 Michigan State University + + The CAPA system is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The CAPA system 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the CAPA system; see the file COPYING. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. + + As a special exception, you have permission to link this program + with the TtH/TtM library and distribute executables, as long as you + follow the requirements of the GNU GPL in regard to all of the + software in the executable aside from TtH/TtM. +*/ -/**********************************************************/ -/* This header defines Application Interface to the */ -/* CAPA system. It needs capaParser.h and capaToken.h */ -/* CAPA version 4.3 */ /* Date Oct 23 1995 */ /* Isaac Tsai */ /* */ /* Get rid of old style structure definition *_t */ /* Make all structure definition begin with T_ */ -/* 1997, 1998, 1999 Isaac Tsai */ /**********************************************************/ #ifndef CAPA_COMMON_H @@ -201,9 +220,9 @@ int capa_check_option CAPA_ARG((int int check_int CAPA_ARG((char *an_int )); int check_real CAPA_ARG((char *a_real )); char *answers_string CAPA_ARG((int mode, Problem_t *p )); -int capa_check_ans CAPA_ARG((AnswerInfo_t *ai, char *answer)); -int capa_check_answer CAPA_ARG((Problem_t *p, char *answer)); -int capa_check_answers CAPA_ARG((Problem_t *p, char **answers, int cnt)); +int capa_check_ans CAPA_ARG((AnswerInfo_t *ai, char *answer, char **error)); +int capa_check_answer CAPA_ARG((Problem_t *p, char *answer, char **error)); +int capa_check_answers CAPA_ARG((Problem_t *p, char **answers,int cnt, char **error)); int check_formula_ans CAPA_ARG((char *fml_str,char *input_str,char *var_list,PointsList_t *pts_list,int tol_type,double tol)); int is_all_ws CAPA_ARG((char *answer));