[Patches] simple compiler warning fix (export _PyImport_Fini)

Trent Mick trentm@activestate.com
Thu, 1 Jun 2000 12:35:22 -0700


Discussion:

This patch cleans up a compilation warning. _PyImport_Fini() is meant to be
exported by import.c but is not mentioned in Include/import.h (_PyImport_Init
*is* mentioned there). It is called in Python/pythonrun.c.


Legal:

I confirm that, to the best of my knowledge and belief, this
contribution is free of any claims of third parties under
copyright, patent or other rights or interests ("claims").  To
the extent that I have any such claims, I hereby grant to CNRI a
nonexclusive, irrevocable, royalty-free, worldwide license to
reproduce, distribute, perform and/or display publicly, prepare
derivative versions, and otherwise use this contribution as part
of the Python software and its related documentation, or any
derivative versions thereof, at no cost to CNRI or its licensed
users, and to authorize others to do so.

I acknowledge that CNRI may, at its sole discretion, decide
whether or not to incorporate this contribution in the Python
software and its related documentation.  I further grant CNRI
permission to use my name and other identifying information
provided to CNRI by me for use in connection with the Python
software and its related documentation.


Patch (use 'patch -p8'):

*** /home/trentm/main/contrib/python/dist/src/Include/import.h	Thu Jun  1 00:13:37 2000
--- /home/trentm/main/Apps/Perlium/Python/dist/src/Include/import.h	Wed May 31 23:54:13 2000
***************
*** 53,58 ****
--- 53,59 ----
  
  extern DL_IMPORT(PyObject *)_PyImport_FindExtension Py_PROTO((char *, char *));
  extern DL_IMPORT(PyObject *)_PyImport_FixupExtension Py_PROTO((char *, char *));
+ extern DL_IMPORT(void) _PyImport_Fini Py_PROTO((void));
  
  struct _inittab {
  	char *name;


-- 
Trent Mick
trentm@activestate.com