[pypy-svn] r23490 - pypy/dist/pypy/rpython/rctypes/test

gromit at codespeak.net gromit at codespeak.net
Sun Feb 19 18:43:45 CET 2006


Author: gromit
Date: Sun Feb 19 18:43:42 2006
New Revision: 23490

Modified:
   pypy/dist/pypy/rpython/rctypes/test/_rctypes_test.c
Log:
CHG: Converted tabs to spaces.

Modified: pypy/dist/pypy/rpython/rctypes/test/_rctypes_test.c
==============================================================================
--- pypy/dist/pypy/rpython/rctypes/test/_rctypes_test.c	(original)
+++ pypy/dist/pypy/rpython/rctypes/test/_rctypes_test.c	Sun Feb 19 18:43:42 2006
@@ -21,26 +21,32 @@
 
 EXPORT(int) _testfunc_byval(point in, point *pout)
 {
-	if (pout) {
-		pout->x = in.x;
-		pout->y = in.y;
-	}
-	return in.x + in.y;
+    if (pout)
+    {
+        pout->x = in.x;
+        pout->y = in.y;
+    }
+    return in.x + in.y;
 }
 
 EXPORT(int) _testfunc_struct(point in)
 {
-	return in.x + in.y;
+    return in.x + in.y;
 }
 
 EXPORT(point) _testfunc_struct_id(point in)
 {
-	return in;
+    return in;
 }
 
+EXPORT(point*) _testfunc_struct_pointer_id( point* pin )
+{
+    return pin;
+}   
+
 DL_EXPORT(void)
 init_rctypes_test(void)
 {
-	Py_InitModule("_rctypes_test", module_methods);
+    Py_InitModule("_rctypes_test", module_methods);
 }
 



More information about the Pypy-commit mailing list