abc/src/base/cba/cbaReadVer.c
// skips Verilog comments (returns 1 if some comments were skipped)
skips Verilog comments (returns 1 if some comments were skipped)
skips Verilog comments ( returns 1 if some comments were skipped )
static inline int Prs_ManUtilSkipComments( Prs_Man_t * p )
{
    if ( !Prs_ManIsChar(p, '/') )
        return 0;
    if ( Prs_ManIsChar1(p, '/') )
    {
        for ( p->pCur += 2; p->pCur < p->pLimit; p->pCur++ )
            if ( Prs_ManIsChar(p, '\n') )
                { p->pCur++; return 1; }
    }
    else if ( Prs_ManIsChar1(p, '*') )
    {
        for ( p->pCur += 2; p->pCur < p->pLimit; p->pCur++ )
            if ( Prs_ManIsChar(p, '*') && Prs_ManIsChar1(p, '/') )
                { p->pCur++; p->pCur++; return 1; }
    }
    return 0;
}
static inline int Prs_ManUtilSkipComments ( Prs_Man_t * p ) { if ( ! Prs_ManIsChar ( p , ' ' ) ) return 0 ; if ( Prs_ManIsChar1 ( p , ' ' ) ) { for ( p -> pCur += 2 ; p -> pCur < p -> pLimit ; p -> pCur ++ ) if ( Prs_ManIsChar ( p , ' \n ' ) ) { p -> pCur ++ ; return 1 ; } } else if ( Prs_ManIsChar1 ( p , ' ' ) ) { for ( p -> pCur += 2 ; p -> pCur < p -> pLimit ; p -> pCur ++ ) if ( Prs_ManIsChar ( p , ' ' ) && Prs_ManIsChar1 ( p , ' ' ) ) { p -> pCur ++ ; p -> pCur ++ ; return 1 ; } } return 0 ; }
skips Verilog comments (returns 1 if some comments were skipped)
skips Verilog comments ( returns 1 if some comments were skipped )