bridge/class-master/depend/pari/src/language/es.c
/* like LoadLibrary, but using default(sopath) */
like LoadLibrary, but using default(sopath)
like LoadLibrary but using default ( sopath )
static HMODULE
gp_LoadLibrary(const char *name)
{
  HMODULE handle;
  char *s = path_expand(name);
  if (!GP_DATA || *(GP_DATA->sopath->PATH)==0 || path_is_absolute(s))
    return try_LoadLibrary(s);
  else
  {
    forpath_t T;
    char *t;
    forpath_init(&T, GP_DATA->sopath, s);
    while ( (t = forpath_next(&T)) )
      if ( (handle = try_LoadLibrary(t)) ) { pari_free(s); return handle; }
    pari_free(s);
  }
  return NULL;
}
static HMODULE gp_LoadLibrary ( const char * name ) { HMODULE handle ; char * s = path_expand ( name ) ; if ( ! GP_DATA || * ( GP_DATA -> sopath -> PATH ) == 0 || path_is_absolute ( s ) ) return try_LoadLibrary ( s ) ; else { forpath_t T ; char * t ; forpath_init ( & T , GP_DATA -> sopath , s ) ; while ( ( t = forpath_next ( & T ) ) ) if ( ( handle = try_LoadLibrary ( t ) ) ) { pari_free ( s ) ; return handle ; } pari_free ( s ) ; } return NULL ; }
like LoadLibrary, but using default(sopath)
like LoadLibrary but using default ( sopath )
/* if sopath empty or path is absolute, use LoadLibrary */