Esempio n. 1
0
local void CUndef( void )
{

    PPNextToken();
    if( ExpectingToken( T_ID ) ) {
        MacroDel( Buffer );
        PPNextToken();
        ChkEOL();
    }
}
Esempio n. 2
0
char *AddUndefName( const char *str )
{
    size_t          len;
    undef_names     *uname;

    len = strlen( str );
    if( len == 0 ) {
        CompFlags.undefine_all_macros = 1;
    } else {
        CalcHash( str, len );
        if( !MacroDel( str ) ) {
            uname = (undef_names *)CMemAlloc( sizeof( undef_names ) );
            uname->next = UndefNames;
            uname->name = CMemAlloc( len + 1 );
            memcpy( uname->name, str, len + 1 );
            UndefNames = uname;
            str += len;
        }
    }
    return( (char *)str );
}