Commit de6868b3 authored by Jim Fulton's avatar Jim Fulton

Added __version__ string.

parent 971792da
/* /*
$Id: ExtensionClass.c,v 1.5 1997/02/17 16:27:53 jim Exp $ $Id: ExtensionClass.c,v 1.6 1997/02/24 15:43:57 jim Exp $
Extension Class Extension Class
...@@ -56,6 +56,9 @@ ...@@ -56,6 +56,9 @@
(540) 371-6909 (540) 371-6909
$Log: ExtensionClass.c,v $ $Log: ExtensionClass.c,v $
Revision 1.6 1997/02/24 15:43:57 jim
Added __version__ string.
Revision 1.5 1997/02/17 16:27:53 jim Revision 1.5 1997/02/17 16:27:53 jim
Many changes. Many changes.
...@@ -91,7 +94,7 @@ static char ExtensionClass_module_documentation[] = ...@@ -91,7 +94,7 @@ static char ExtensionClass_module_documentation[] =
" - They provide access to unbound methods,\n" " - They provide access to unbound methods,\n"
" - They can be called to create instances.\n" " - They can be called to create instances.\n"
"\n" "\n"
"$Id: ExtensionClass.c,v 1.5 1997/02/17 16:27:53 jim Exp $\n" "$Id: ExtensionClass.c,v 1.6 1997/02/24 15:43:57 jim Exp $\n"
; ;
#include <stdio.h> #include <stdio.h>
...@@ -2786,6 +2789,7 @@ void ...@@ -2786,6 +2789,7 @@ void
initExtensionClass() initExtensionClass()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.6 $";
PURE_MIXIN_CLASS(Base, "Minimalbase class for Extension Classes", NULL); PURE_MIXIN_CLASS(Base, "Minimalbase class for Extension Classes", NULL);
PMethodType.ob_type=&PyType_Type; PMethodType.ob_type=&PyType_Type;
...@@ -2793,13 +2797,13 @@ initExtensionClass() ...@@ -2793,13 +2797,13 @@ initExtensionClass()
ECTypeType.ob_type=&PyType_Type; ECTypeType.ob_type=&PyType_Type;
ECType.ob_type=&ECTypeType; ECType.ob_type=&ECTypeType;
/* Create the module and add the functions */
m = Py_InitModule4("ExtensionClass", CC_methods, m = Py_InitModule4("ExtensionClass", CC_methods,
ExtensionClass_module_documentation, ExtensionClass_module_documentation,
(PyObject*)NULL,PYTHON_API_VERSION); (PyObject*)NULL,PYTHON_API_VERSION);
/* Add some symbolic constants to the module */
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
PyDict_SetItemString(d,"__version__",
PyString_FromStringAndSize(rev+11,strlen(rev+11)-2));
init_py_names(); init_py_names();
......
/* /*
$Id: ExtensionClass.c,v 1.5 1997/02/17 16:27:53 jim Exp $ $Id: ExtensionClass.c,v 1.6 1997/02/24 15:43:57 jim Exp $
Extension Class Extension Class
...@@ -56,6 +56,9 @@ ...@@ -56,6 +56,9 @@
(540) 371-6909 (540) 371-6909
$Log: ExtensionClass.c,v $ $Log: ExtensionClass.c,v $
Revision 1.6 1997/02/24 15:43:57 jim
Added __version__ string.
Revision 1.5 1997/02/17 16:27:53 jim Revision 1.5 1997/02/17 16:27:53 jim
Many changes. Many changes.
...@@ -91,7 +94,7 @@ static char ExtensionClass_module_documentation[] = ...@@ -91,7 +94,7 @@ static char ExtensionClass_module_documentation[] =
" - They provide access to unbound methods,\n" " - They provide access to unbound methods,\n"
" - They can be called to create instances.\n" " - They can be called to create instances.\n"
"\n" "\n"
"$Id: ExtensionClass.c,v 1.5 1997/02/17 16:27:53 jim Exp $\n" "$Id: ExtensionClass.c,v 1.6 1997/02/24 15:43:57 jim Exp $\n"
; ;
#include <stdio.h> #include <stdio.h>
...@@ -2786,6 +2789,7 @@ void ...@@ -2786,6 +2789,7 @@ void
initExtensionClass() initExtensionClass()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.6 $";
PURE_MIXIN_CLASS(Base, "Minimalbase class for Extension Classes", NULL); PURE_MIXIN_CLASS(Base, "Minimalbase class for Extension Classes", NULL);
PMethodType.ob_type=&PyType_Type; PMethodType.ob_type=&PyType_Type;
...@@ -2793,13 +2797,13 @@ initExtensionClass() ...@@ -2793,13 +2797,13 @@ initExtensionClass()
ECTypeType.ob_type=&PyType_Type; ECTypeType.ob_type=&PyType_Type;
ECType.ob_type=&ECTypeType; ECType.ob_type=&ECTypeType;
/* Create the module and add the functions */
m = Py_InitModule4("ExtensionClass", CC_methods, m = Py_InitModule4("ExtensionClass", CC_methods,
ExtensionClass_module_documentation, ExtensionClass_module_documentation,
(PyObject*)NULL,PYTHON_API_VERSION); (PyObject*)NULL,PYTHON_API_VERSION);
/* Add some symbolic constants to the module */
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
PyDict_SetItemString(d,"__version__",
PyString_FromStringAndSize(rev+11,strlen(rev+11)-2));
init_py_names(); init_py_names();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment