version 1.2, 1999/10/13 20:05:00
|
version 1.3, 1999/12/16 22:18:35
|
Line 21 int Parse_section;
|
Line 21 int Parse_section;
|
char Parse_student_number[MAX_STUDENT_NUMBER+1]; |
char Parse_student_number[MAX_STUDENT_NUMBER+1]; |
char Parse_name[MAX_NAME_CHAR+1]; |
char Parse_name[MAX_NAME_CHAR+1]; |
long capaid_plus_gen; |
long capaid_plus_gen; |
|
int managermode; |
|
|
extern int Parsemode_f; |
extern int Parsemode_f; |
|
|
Line 113 match_function(func, argc) char *func; i
|
Line 114 match_function(func, argc) char *func; i
|
if( !strcmp(func,"is_open") ) return (((argc <2)? IS_OPEN_F: MIS_ARG_COUNT)); |
if( !strcmp(func,"is_open") ) return (((argc <2)? IS_OPEN_F: MIS_ARG_COUNT)); |
if( !strcmp(func,"is_due") ) return (((argc <2)? IS_DUE_F: MIS_ARG_COUNT)); |
if( !strcmp(func,"is_due") ) return (((argc <2)? IS_DUE_F: MIS_ARG_COUNT)); |
if( !strcmp(func,"is_answer") ) return (((argc <2)? IS_ANSWER_F: MIS_ARG_COUNT)); |
if( !strcmp(func,"is_answer") ) return (((argc <2)? IS_ANSWER_F: MIS_ARG_COUNT)); |
|
if( !strcmp(func,"correct") ) return (((argc <3)? CORRECT_F: MIS_ARG_COUNT)); |
|
if( !strcmp(func,"grade") ) return (((argc <3)? GRADE_F: MIS_ARG_COUNT)); |
|
if( !strcmp(func,"tries") ) return (((argc <3)? TRIES_F: MIS_ARG_COUNT)); |
|
if( !strcmp(func,"managermode")) return (((argc==0)? MANAGERMODE_F:MIS_ARG_COUNT)); |
return (UNKNOWN_F); |
return (UNKNOWN_F); |
} |
} |
|
|
Line 1499 ArgNode_t *argp;
|
Line 1504 ArgNode_t *argp;
|
resultp->s_int=capa_get_duration(Parse_student_number, |
resultp->s_int=capa_get_duration(Parse_student_number, |
Parse_section,Parse_set); |
Parse_section,Parse_set); |
} break; |
} break; |
|
case MANAGERMODE_F: { resultp->s_type = I_CONSTANT; |
|
resultp->s_int=managermode; |
|
}break; |
|
case CORRECT_F: { |
|
|
|
}break; |
|
|
|
case TRIES_F: { |
|
|
|
}break; |
|
|
|
case GRADE_F: { |
|
|
|
}break; |
|
|
case MIS_ARG_COUNT: |
case MIS_ARG_COUNT: |
{ resultp->s_type = S_CONSTANT; |
{ resultp->s_type = S_CONSTANT; |
resultp->s_str = strsave("<<ARG COUNT>>"); |
resultp->s_str = strsave("<<ARG COUNT>>"); |
sprintf(tmpS,"%s()'s arg. count is not correct.\n",FuncStack[Func_idx].s_name); |
sprintf(tmpS,"%s()'s arg. count is not correct.\n", |
|
FuncStack[Func_idx].s_name); |
capa_msg(MESSAGE_ERROR,tmpS); |
capa_msg(MESSAGE_ERROR,tmpS); |
} break; |
} break; |
case UNKNOWN_F: |
case UNKNOWN_F: |