[Python-checkins] CVS: python/dist/src/PC/example_nt example.c,1.1,1.2

Thomas Wouters python-dev@python.org
Sat, 22 Jul 2000 12:25:54 -0700


Update of /cvsroot/python/python/dist/src/PC/example_nt
In directory slayer.i.sourceforge.net:/tmp/cvs-serv24717/PC/example_nt

Modified Files:
	example.c 
Log Message:

Miscelaneous ANSIfications. I'm assuming here 'main' should take (int,
char**) and return an int even on PC platforms. If not, please fix
PC/utils/makesrc.c ;-P



Index: example.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/example_nt/example.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** example.c	1996/09/06 21:16:16	1.1
--- example.c	2000/07/22 19:25:51	1.2
***************
*** 2,7 ****
  
  static PyObject *
! ex_foo(self, args)
! 	PyObject *self, *args;
  {
  	printf("Hello, world\n");
--- 2,6 ----
  
  static PyObject *
! ex_foo(PyObject *self, PyObject *args)
  {
  	printf("Hello, world\n");
***************
*** 16,20 ****
  
  void
! initexample()
  {
  	Py_InitModule("example", example_methods);
--- 15,19 ----
  
  void
! initexample(void)
  {
  	Py_InitModule("example", example_methods);