[Pythonmac-SIG] New Sources

Chris chriss@dnastar.com
Mon, 24 Apr 2000 22:19:14 -0500


I just got the new MacPython Sources via cvs.

I wasn't able to compile them w/o changes, I'm not sure what's up anyway
here they are: 

> Including <signal.h> let in MSL, not GUSI2's 

*** a:python:dist:src:Modules:socketmodule.c	Mon Apr 24 21:18:02 2000
--- b:python:dist:src:Modules:socketmodule.c	Fri Apr 21 17:43:25 2000
***************
*** 161,174 ****
  #include <sys/types.h>
  #include "mytime.h"
  
- 
- //cs@dna*: 
- #ifndef USE_GUSI2
  #include <signal.h>
- #else
- #include <sys/signal.h>
- #endif
- 
  #ifndef MS_WINDOWS
  #include <netdb.h>
  #include <sys/socket.h>
--- 161,167 ----

> error codes undeifed

*** a:Mac:mwerks:errno_unix.h	Mon Apr 24 21:21:51 2000
--- b:Mac:mwerks:errno_unix.h	Mon Apr 24 20:21:10 2000
***************
*** 29,38 ****
  
  ******************************************************************/
  
! // cs@dna*
! #ifdef USE_GUSI2
! #include <sys/errno.h>
! #else
  #define ENOTDIR		(-120)
  #ifndef __MSL__
  #define EACCES		(-54)
--- 29,35 ----
  
  ******************************************************************/
  
! #ifndef USE_GUSI2
  #define ENOTDIR		(-120)
  #ifndef __MSL__
  #define EACCES		(-54)

> No def of MachineLocation
*** Drosophila:Desktop Folder:PyCVS:python:dist:src:Modules:timemodule.c	
Mon Apr 24 21:19:15 2000
--- Drosophila:Desktop Folder:MacPyth
on1.6:python:dist:src:Modules:timemodule.c	Fri Apr 21 17:42:28 2000
***************
*** 40,48 ****
  #endif
  
  #ifdef macintosh
- #include <time.h>
  //cs@dna*:
! #include <OSUtils.h> // for MachineLocation
  #else
  #include <sys/types.h>
  #endif
--- 40,48 ----
  #endif
  
  #ifdef macintosh
  //cs@dna*:
! #include <OSUtils.h> 
! #include <time.h>
  #else
  #include <sys/types.h>
  #endif

> NULL allready defined as 0L (this seames pretty harmless) (in MacTypes?
perhaps this is a UH vers. issue )

*** a:Mac:mwerks:malloc:malloc.c	Mon Apr 24 21:16:26 2000
--- b:Mac:mwerks:malloc:malloc.c	Mon Apr 24 20:21:10 2000
***************
*** 78,84 ****
  #include <stdlib.h>
  #include <string.h>
  
! #define	NULL 0L
  
  static void morecore();
  
--- 78,84 ----
  #include <stdlib.h>
  #include <string.h>



>This is only needed for compatability with UNIVERSAL INTERFACES VERSIONs
3.3 ? and up 

*** a:Mac:Modules:ctl:Ctlmodule.c	Mon Apr 24 21:30:56 2000
--- b:Mac:Modules:ctl:Ctlmodule.c	Mon Apr 24 20:20:36 2000
***************
*** 12,21 ****
  #include <Dialogs.h>
  #include <Menus.h>
  #include <Controls.h>
- //cs@dna*
- #if UNIVERSAL_INTERFACES_VERSION >= 0x0330 // when exactly dose this start?
- #include <ControlDefinitions.h>
- #endif
  
  extern PyObject *ResObj_New(Handle);
  extern int ResObj_Convert(PyObject *, Handle *);
--- 12,17 ----

were others able to compile out of the box?