blob: 8dbf55f5d3bcd9791784e942a868a80f9f3f2848 [file] [log] [blame]
Guido van Rossum1ae940a1995-01-02 19:04:15 +00001/***********************************************************
Guido van Rossum6d023c91995-01-04 19:12:13 +00002Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
3The Netherlands.
Guido van Rossum1ae940a1995-01-02 19:04:15 +00004
5 All Rights Reserved
6
7Permission to use, copy, modify, and distribute this software and its
8documentation for any purpose and without fee is hereby granted,
9provided that the above copyright notice appear in all copies and that
10both that copyright notice and this permission notice appear in
11supporting documentation, and that the names of Stichting Mathematisch
12Centrum or CWI not be used in advertising or publicity pertaining to
13distribution of the software without specific, written prior permission.
14
15STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
16THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
17FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
18FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
20ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
21OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22
23******************************************************************/
24
25/* Definitions for dynamic loading of extension modules */
Jack Jansen9c96a921995-02-15 22:57:06 +000026#ifdef macintosh
27enum filetype {SEARCH_ERROR, PY_SOURCE, PY_COMPILED, C_EXTENSION, PY_RESOURCE};
28#else
Guido van Rossum1ae940a1995-01-02 19:04:15 +000029enum filetype {SEARCH_ERROR, PY_SOURCE, PY_COMPILED, C_EXTENSION};
Jack Jansen9c96a921995-02-15 22:57:06 +000030#endif
Guido van Rossum1ae940a1995-01-02 19:04:15 +000031
32extern struct filedescr {
33 char *suffix;
34 char *mode;
35 enum filetype type;
36} import_filetab[];
37
38extern object *import_modules;
39
Sjoerd Mullenderfbe6d331995-06-12 15:51:34 +000040extern object *load_dynamic_module PROTO((char *name, char *pathname, FILE *));
Guido van Rossum1ae940a1995-01-02 19:04:15 +000041
42extern int import_maxsuffixsize;