Exemple #1
0
static FILE *PP_OpenInclude( const char *filename, size_t len, int incl_type )
{
    char        fullfilename[_MAX_PATH];
    int         rc;

    rc = PP_FindInclude( filename, len, fullfilename, incl_type );
    if( PPFlags & PPFLAG_DEPENDENCIES ) {
        (*PP_CallBack)( filename, len, fullfilename, incl_type );
    } else if( rc == 0 ) {
        return( PP_Open( fullfilename ) );
    }
    return( NULL );
}
Exemple #2
0
int RcFindResource( const char *name, char *fullpath )
{
    return( PP_FindInclude( name, fullpath, PPINCLUDE_SRC ) );
}