File: dynload_redstorm.c

package info (click to toggle)
gpaw 1.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 14,328 kB
  • sloc: python: 111,596; ansic: 16,082; sh: 1,230; csh: 139; makefile: 56
file content (21 lines) | stat: -rw-r--r-- 539 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

/* This module provides the simulation of dynamic loading in Red Storm */

#include "Python.h"
#include "importdl.h"

const struct filedescr _PyImport_DynLoadFiletab[] = {
  {".a", "rb", C_EXTENSION},
  {0, 0}
};

extern struct _inittab _PyImport_Inittab[];

dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
                                    const char *pathname, FILE *fp)
{
  struct _inittab *tab = _PyImport_Inittab;
  while (tab->name && strcmp(shortname, tab->name)) tab++;

  return tab->initfunc;
}