[Patches] Warnings in pythonrun.c

Trent Mick trentm@activestate.com
Wed, 21 Jun 2000 12:25:18 -0700


On Wed, Jun 21, 2000 at 10:09:42AM +0200, Fredrik Lundh wrote:
> more warnings:
> 
> ..\Python\pythonrun.c(233) : warning C4013: '_PyImport_Fini' undefined; assuming
>  extern returning int
> 
> the attached patch adds this function to the pythonrun.h
> header file.
> 

The appropriate place for this is in Include/import.h.


Description

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. (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:


*** /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