lexer.cpp
/* read one ident for the frame list */
read one ident for the frame list
read one ident for the frame list
static int lex_parse_frame(lex_file *lex)
{
    int ch;
    lex_token_new(lex);
    ch = lex_getch(lex);
    while (ch != EOF && ch != '\n' && util_isspace(ch))
        ch = lex_getch(lex);
    if (ch == '\n')
        return 1;
    if (!isident_start(ch)) {
        lexerror(lex, "invalid framename, must start with one of a-z, or _, got %c", ch);
        return -1;
    }
    lex_tokench(lex, ch);
    if (!lex_finish_ident(lex, true))
        return -1;
    lex_endtoken(lex);
    return 0;
}
static int lex_parse_frame ( lex_file * lex ) { int ch ; lex_token_new ( lex ) ; ch = lex_getch ( lex ) ; while ( ch != EOF && ch != ' \n ' && util_isspace ( ch ) ) ch = lex_getch ( lex ) ; if ( ch == ' \n ' ) return 1 ; if ( ! isident_start ( ch ) ) { lexerror ( lex , " " , ch ) ; return -1 ; } lex_tokench ( lex , ch ) ; if ( ! lex_finish_ident ( lex , true ) ) return -1 ; lex_endtoken ( lex ) ; return 0 ; }
read one ident for the frame list
read one ident for the frame list