Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e89bc750
Commit
e89bc750
authored
Aug 18, 1994
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes for dynamic linking under NT
parent
14aa5da8
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
72 additions
and
59 deletions
+72
-59
Include/accessobject.h
Include/accessobject.h
+2
-2
Include/allobjects.h
Include/allobjects.h
+13
-0
Include/classobject.h
Include/classobject.h
+1
-1
Include/compile.h
Include/compile.h
+1
-1
Include/errors.h
Include/errors.h
+19
-19
Include/fileobject.h
Include/fileobject.h
+1
-1
Include/floatobject.h
Include/floatobject.h
+1
-1
Include/frameobject.h
Include/frameobject.h
+1
-1
Include/funcobject.h
Include/funcobject.h
+1
-1
Include/intobject.h
Include/intobject.h
+2
-2
Include/listobject.h
Include/listobject.h
+1
-1
Include/longobject.h
Include/longobject.h
+1
-1
Include/mappingobject.h
Include/mappingobject.h
+1
-1
Include/methodobject.h
Include/methodobject.h
+1
-1
Include/moduleobject.h
Include/moduleobject.h
+1
-1
Include/object.h
Include/object.h
+2
-2
Include/pyerrors.h
Include/pyerrors.h
+19
-19
Include/rangeobject.h
Include/rangeobject.h
+1
-1
Include/stringobject.h
Include/stringobject.h
+1
-1
Include/sysmodule.h
Include/sysmodule.h
+1
-1
Include/tupleobject.h
Include/tupleobject.h
+1
-1
No files found.
Include/accessobject.h
View file @
e89bc750
...
...
@@ -46,7 +46,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define AC_R_PUBLIC 0004
#define AC_W_PUBLIC 0002
extern
typeobject
Accesstype
;
extern
DL_IMPORT
typeobject
Accesstype
;
#define is_accessobject(v) ((v)->ob_type == &Accesstype)
...
...
@@ -58,7 +58,7 @@ void setaccessowner PROTO((object *, object *));
object
*
cloneaccessobject
PROTO
((
object
*
));
int
hasaccessvalue
PROTO
((
object
*
));
extern
typeobject
Anynumbertype
,
Anysequencetype
,
Anymappingtype
;
extern
DL_IMPORT
typeobject
Anynumbertype
,
Anysequencetype
,
Anymappingtype
;
#ifdef __cplusplus
}
...
...
Include/allobjects.h
View file @
e89bc750
...
...
@@ -30,6 +30,19 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* "allobjects.c" -- Source for precompiled header "allobjects.h" */
/* Some systems (well, NT anyway!) require special declarations for
data items imported from dynamic modules. Note that this defn is
only turned on for the modules built as DL modules, not for python
itself.
*/
#define DL_IMPORT
/* Save lots of #else/#if's */
#ifdef USE_DL_IMPORT
#ifdef NT
#undef DL_IMPORT
#define DL_IMPORT __declspec(dllimport)
#endif
/* NT */
#endif
/* USE_DL_IMPORT */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
...
...
Include/classobject.h
View file @
e89bc750
...
...
@@ -57,7 +57,7 @@ typedef struct {
#endif
}
instanceobject
;
extern
typeobject
Classtype
,
Instancetype
,
Instancemethodtype
;
extern
DL_IMPORT
typeobject
Classtype
,
Instancetype
,
Instancemethodtype
;
#define is_classobject(op) ((op)->ob_type == &Classtype)
#define is_instanceobject(op) ((op)->ob_type == &Instancetype)
...
...
Include/compile.h
View file @
e89bc750
...
...
@@ -47,7 +47,7 @@ typedef struct {
object
*
co_name
;
/* string */
}
codeobject
;
extern
typeobject
Codetype
;
extern
DL_IMPORT
typeobject
Codetype
;
#define is_codeobject(op) ((op)->ob_type == &Codetype)
...
...
Include/errors.h
View file @
e89bc750
...
...
@@ -39,25 +39,25 @@ void err_clear PROTO((void));
/* Predefined exceptions */
extern
object
*
AccessError
;
extern
object
*
AttributeError
;
extern
object
*
ConflictError
;
extern
object
*
EOFError
;
extern
object
*
IOError
;
extern
object
*
ImportError
;
extern
object
*
IndexError
;
extern
object
*
KeyError
;
extern
object
*
KeyboardInterrupt
;
extern
object
*
MemoryError
;
extern
object
*
NameError
;
extern
object
*
OverflowError
;
extern
object
*
RuntimeError
;
extern
object
*
SyntaxError
;
extern
object
*
SystemError
;
extern
object
*
SystemExit
;
extern
object
*
TypeError
;
extern
object
*
ValueError
;
extern
object
*
ZeroDivisionError
;
extern
DL_IMPORT
object
*
AccessError
;
extern
DL_IMPORT
object
*
AttributeError
;
extern
DL_IMPORT
object
*
ConflictError
;
extern
DL_IMPORT
object
*
EOFError
;
extern
DL_IMPORT
object
*
IOError
;
extern
DL_IMPORT
object
*
ImportError
;
extern
DL_IMPORT
object
*
IndexError
;
extern
DL_IMPORT
object
*
KeyError
;
extern
DL_IMPORT
object
*
KeyboardInterrupt
;
extern
DL_IMPORT
object
*
MemoryError
;
extern
DL_IMPORT
object
*
NameError
;
extern
DL_IMPORT
object
*
OverflowError
;
extern
DL_IMPORT
object
*
RuntimeError
;
extern
DL_IMPORT
object
*
SyntaxError
;
extern
DL_IMPORT
object
*
SystemError
;
extern
DL_IMPORT
object
*
SystemExit
;
extern
DL_IMPORT
object
*
TypeError
;
extern
DL_IMPORT
object
*
ValueError
;
extern
DL_IMPORT
object
*
ZeroDivisionError
;
/* Convenience functions */
...
...
Include/fileobject.h
View file @
e89bc750
...
...
@@ -30,7 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* File object interface */
extern
typeobject
Filetype
;
extern
DL_IMPORT
typeobject
Filetype
;
#define is_fileobject(op) ((op)->ob_type == &Filetype)
...
...
Include/floatobject.h
View file @
e89bc750
...
...
@@ -39,7 +39,7 @@ typedef struct {
double
ob_fval
;
}
floatobject
;
extern
typeobject
Floattype
;
extern
DL_IMPORT
typeobject
Floattype
;
#define is_floatobject(op) ((op)->ob_type == &Floattype)
...
...
Include/frameobject.h
View file @
e89bc750
...
...
@@ -58,7 +58,7 @@ typedef struct _frame {
/* Standard object interface */
extern
typeobject
Frametype
;
extern
DL_IMPORT
typeobject
Frametype
;
#define is_frameobject(op) ((op)->ob_type == &Frametype)
...
...
Include/funcobject.h
View file @
e89bc750
...
...
@@ -39,7 +39,7 @@ typedef struct {
object
*
func_argdefs
;
}
funcobject
;
extern
typeobject
Functype
;
extern
DL_IMPORT
typeobject
Functype
;
#define is_funcobject(op) ((op)->ob_type == &Functype)
...
...
Include/intobject.h
View file @
e89bc750
...
...
@@ -50,7 +50,7 @@ typedef struct {
long
ob_ival
;
}
intobject
;
extern
typeobject
Inttype
;
extern
DL_IMPORT
typeobject
Inttype
;
#define is_intobject(op) ((op)->ob_type == &Inttype)
...
...
@@ -69,7 +69,7 @@ Hope these macros don't conflict with other people's.
Don't forget to apply INCREF() when returning True or False!!!
*/
extern
intobject
FalseObject
,
TrueObject
;
/* Don't use these directly */
extern
DL_IMPORT
intobject
FalseObject
,
TrueObject
;
/* Don't use these directly */
#define False ((object *) &FalseObject)
#define True ((object *) &TrueObject)
...
...
Include/listobject.h
View file @
e89bc750
...
...
@@ -49,7 +49,7 @@ typedef struct {
object
**
ob_item
;
}
listobject
;
extern
typeobject
Listtype
;
extern
DL_IMPORT
typeobject
Listtype
;
#define is_listobject(op) ((op)->ob_type == &Listtype)
...
...
Include/longobject.h
View file @
e89bc750
...
...
@@ -32,7 +32,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
typedef
struct
_longobject
longobject
;
/* Revealed in longintrepr.h */
extern
typeobject
Longtype
;
extern
DL_IMPORT
typeobject
Longtype
;
#define is_longobject(op) ((op)->ob_type == &Longtype)
...
...
Include/mappingobject.h
View file @
e89bc750
...
...
@@ -30,7 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* Mapping object type -- mapping from hashable object to object */
extern
typeobject
Mappingtype
;
extern
DL_IMPORT
typeobject
Mappingtype
;
#define is_mappingobject(op) ((op)->ob_type == &Mappingtype)
...
...
Include/methodobject.h
View file @
e89bc750
...
...
@@ -30,7 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* Method object interface */
extern
typeobject
Methodtype
;
extern
DL_IMPORT
typeobject
Methodtype
;
#define is_methodobject(op) ((op)->ob_type == &Methodtype)
...
...
Include/moduleobject.h
View file @
e89bc750
...
...
@@ -30,7 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* Module object interface */
extern
typeobject
Moduletype
;
extern
DL_IMPORT
typeobject
Moduletype
;
#define is_moduleobject(op) ((op)->ob_type == &Moduletype)
...
...
Include/object.h
View file @
e89bc750
...
...
@@ -227,7 +227,7 @@ typedef struct _typeobject {
#endif
}
typeobject
;
extern
typeobject
Typetype
;
/* The type of type objects */
extern
DL_IMPORT
typeobject
Typetype
;
/* The type of type objects */
#define is_typeobject(op) ((op)->ob_type == &Typetype)
...
...
@@ -341,7 +341,7 @@ where NULL (nil) is not suitable (since NULL often means 'error').
Don't forget to apply INCREF() when returning this value!!!
*/
extern
object
NoObject
;
/* Don't use this directly */
extern
DL_IMPORT
object
NoObject
;
/* Don't use this directly */
#define None (&NoObject)
...
...
Include/pyerrors.h
View file @
e89bc750
...
...
@@ -39,25 +39,25 @@ void err_clear PROTO((void));
/* Predefined exceptions */
extern
object
*
AccessError
;
extern
object
*
AttributeError
;
extern
object
*
ConflictError
;
extern
object
*
EOFError
;
extern
object
*
IOError
;
extern
object
*
ImportError
;
extern
object
*
IndexError
;
extern
object
*
KeyError
;
extern
object
*
KeyboardInterrupt
;
extern
object
*
MemoryError
;
extern
object
*
NameError
;
extern
object
*
OverflowError
;
extern
object
*
RuntimeError
;
extern
object
*
SyntaxError
;
extern
object
*
SystemError
;
extern
object
*
SystemExit
;
extern
object
*
TypeError
;
extern
object
*
ValueError
;
extern
object
*
ZeroDivisionError
;
extern
DL_IMPORT
object
*
AccessError
;
extern
DL_IMPORT
object
*
AttributeError
;
extern
DL_IMPORT
object
*
ConflictError
;
extern
DL_IMPORT
object
*
EOFError
;
extern
DL_IMPORT
object
*
IOError
;
extern
DL_IMPORT
object
*
ImportError
;
extern
DL_IMPORT
object
*
IndexError
;
extern
DL_IMPORT
object
*
KeyError
;
extern
DL_IMPORT
object
*
KeyboardInterrupt
;
extern
DL_IMPORT
object
*
MemoryError
;
extern
DL_IMPORT
object
*
NameError
;
extern
DL_IMPORT
object
*
OverflowError
;
extern
DL_IMPORT
object
*
RuntimeError
;
extern
DL_IMPORT
object
*
SyntaxError
;
extern
DL_IMPORT
object
*
SystemError
;
extern
DL_IMPORT
object
*
SystemExit
;
extern
DL_IMPORT
object
*
TypeError
;
extern
DL_IMPORT
object
*
ValueError
;
extern
DL_IMPORT
object
*
ZeroDivisionError
;
/* Convenience functions */
...
...
Include/rangeobject.h
View file @
e89bc750
...
...
@@ -34,7 +34,7 @@ Range objects behave like the corresponding tuple objects except that
they are represented by a start, stop, and step datamembers.
*/
extern
typeobject
Rangetype
;
extern
DL_IMPORT
typeobject
Rangetype
;
#define is_rangeobject(op) ((op)->ob_type == &Rangetype)
...
...
Include/stringobject.h
View file @
e89bc750
...
...
@@ -57,7 +57,7 @@ typedef struct {
char
ob_sval
[
1
];
}
stringobject
;
extern
typeobject
Stringtype
;
extern
DL_IMPORT
typeobject
Stringtype
;
#define is_stringobject(op) ((op)->ob_type == &Stringtype)
...
...
Include/sysmodule.h
View file @
e89bc750
...
...
@@ -35,7 +35,7 @@ int sysset PROTO((char *, object *));
FILE
*
sysgetfile
PROTO
((
char
*
,
FILE
*
));
void
initsys
PROTO
((
void
));
extern
object
*
sys_trace
,
*
sys_profile
;
extern
DL_IMPORT
object
*
sys_trace
,
*
sys_profile
;
#ifdef __cplusplus
}
...
...
Include/tupleobject.h
View file @
e89bc750
...
...
@@ -49,7 +49,7 @@ typedef struct {
object
*
ob_item
[
1
];
}
tupleobject
;
extern
typeobject
Tupletype
;
extern
DL_IMPORT
typeobject
Tupletype
;
#define is_tupleobject(op) ((op)->ob_type == &Tupletype)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment