version 1.2, 2000/03/22 21:08:03
|
version 1.6, 2024/04/27 18:42:05
|
Line 1
|
Line 1
|
|
/* 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 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 |
|
General Public License for more details. |
|
|
|
You should have received a copy of the GNU 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 */ |
/* Date Oct 23 1995 */ |
/* Isaac Tsai */ |
/* Isaac Tsai */ |
/* */ |
/* */ |
/* Get rid of old style structure definition *_t */ |
/* Get rid of old style structure definition *_t */ |
/* Make all structure definition begin with T_ */ |
/* Make all structure definition begin with T_ */ |
/* 1997, 1998, 1999 Isaac Tsai */ |
|
/**********************************************************/ |
/**********************************************************/ |
|
|
#ifndef CAPA_COMMON_H |
#ifndef CAPA_COMMON_H |
Line 204 char *answers_string CAPA_ARG((int
|
Line 223 char *answers_string CAPA_ARG((int
|
int capa_check_ans CAPA_ARG((AnswerInfo_t *ai, char *answer, char **error)); |
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_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 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 check_formula_ans CAPA_ARG((char *fml_str,char *input_str,char *var_list,PointsList_t *pts_list,int tol_type,double tol)); |
|
int check_for_unit_fail CAPA_ARG((int result)); |
|
|
int is_all_ws CAPA_ARG((char *answer)); |
int is_all_ws CAPA_ARG((char *answer)); |
|
int split_num_unit CAPA_ARG((char *buf, double *num, char *num_p, char *unit_p)); |
void trim_response_ws CAPA_ARG((char *answer)); |
void trim_response_ws CAPA_ARG((char *answer)); |
void throwaway_line CAPA_ARG((FILE* fp)); |
void throwaway_line CAPA_ARG((FILE* fp)); |
void protect_log_string CAPA_ARG((char* log_string)); |
void protect_log_string CAPA_ARG((char* log_string)); |