[Python-checkins] CVS: python/dist/src/Modules posixmodule.c,2.142,2.143

Fredrik Lundh python-dev@python.org
Sat, 8 Jul 2000 15:48:56 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv30977/Modules

Modified Files:
	posixmodule.c 
Log Message:


this one's a bit risky, but I've spent some considerable time
staring at the diffs before checking this one in.  let me know
asap if it breaks things on your platform.

-- ANSI-fying
   (patch #100763 by Peter Schneider-Kamp, minus the
    indentation changes and minus the changes the broke
    the windows build)

Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.142
retrieving revision 2.143
diff -C2 -r2.142 -r2.143
*** posixmodule.c	2000/07/06 19:42:19	2.142
--- posixmodule.c	2000/07/08 22:48:53	2.143
***************
*** 138,170 ****
  #else /* !HAVE_UNISTD_H */
  #if defined(PYCC_VACPP)
! extern int mkdir Py_PROTO((char *));
  #else
  #if ( defined(__WATCOMC__) || defined(_MSC_VER) ) && !defined(__QNX__)
! extern int mkdir Py_PROTO((const char *));
  #else
! extern int mkdir Py_PROTO((const char *, mode_t));
  #endif
  #endif
[...1650 lines suppressed...]
  static PyObject *
! posix_abort(PyObject *self, PyObject *args)
  {
      if (!PyArg_ParseTuple(args, ":abort"))
***************
*** 4740,4747 ****
  
  static int
! ins(d, symbol, value)
!         PyObject* d;
!         char* symbol;
!         long value;
  {
          PyObject* v = PyInt_FromLong(value);
--- 4535,4539 ----
  
  static int
! ins(PyObject *d, char *symbol, long value)
  {
          PyObject* v = PyInt_FromLong(value);