예제 #1
0
파일: cordbscs.c 프로젝트: Hamayama/Gauche
char CORD_pos_fetch(CORD_pos p)
{
    if (p[0].cur_end != 0) {
        return(p[0].cur_leaf[p[0].cur_pos - p[0].cur_start]);
    } else {
        return(CORD__pos_fetch(p));
    }
}
예제 #2
0
파일: cordbscs.c 프로젝트: abbrev/MKCL
char CORD_pos_fetch(register CORD_pos p)
{
    if (p[0].cur_start <= p[0].cur_pos && p[0].cur_pos < p[0].cur_end) {
        return(p[0].cur_leaf[p[0].cur_pos - p[0].cur_start]);
    } else {
        return(CORD__pos_fetch(p));
    }
}