version 1.16, 2004/12/23 18:36:42
|
version 1.17, 2005/02/15 22:15:05
|
Line 110 int caparesponse_capa_check_answer(char
|
Line 110 int caparesponse_capa_check_answer(char
|
} |
} |
if (unit_str != NULL && unit_str[0]!='\0') { |
if (unit_str != NULL && unit_str[0]!='\0') { |
strncpy(p.unit_str,unit_str,ANSWER_STRING_LENG-1); |
strncpy(p.unit_str,unit_str,ANSWER_STRING_LENG-1); |
p.ans_unit = u_parse_unit(unit_str); |
//p.ans_unit = u_parse_unit(unit_str); |
|
p.ans_unit = parse_unit_expr(unit_str); |
|
p.ans_unit = process_utree(p.ans_unit); |
|
//print_unit_t(p.ans_unit); |
} else { |
} else { |
p.unit_str[0]='\0'; |
p.unit_str[0]='\0'; |
p.ans_unit=NULL; |
p.ans_unit=NULL; |
Line 144 int caparesponse_get_real_response (char
|
Line 147 int caparesponse_get_real_response (char
|
fclose(fp); |
fclose(fp); |
|
|
if (unit_str != NULL && unit_str[0]!='\0') { |
if (unit_str != NULL && unit_str[0]!='\0') { |
ans_unit = u_parse_unit(unit_str); |
ans_unit = parse_unit_expr(unit_str); |
|
ans_unit = process_utree(ans_unit); |
} else { |
} else { |
ans_unit=NULL; |
ans_unit=NULL; |
} |
} |