[pypy-svn] r78159 - pypy/trunk/pypy/module/_rawffi/test

arigo at codespeak.net arigo at codespeak.net
Thu Oct 21 12:44:57 CEST 2010


Author: arigo
Date: Thu Oct 21 12:44:56 2010
New Revision: 78159

Modified:
   pypy/trunk/pypy/module/_rawffi/test/test__rawffi.py
Log:
- add a missing "const"
- add the symbol "ret_un_func" to the list of exported symbols (needed
  on Mac OS/X, for example)


Modified: pypy/trunk/pypy/module/_rawffi/test/test__rawffi.py
==============================================================================
--- pypy/trunk/pypy/module/_rawffi/test/test__rawffi.py	(original)
+++ pypy/trunk/pypy/module/_rawffi/test/test__rawffi.py	Thu Oct 21 12:44:56 2010
@@ -70,7 +70,7 @@
            return s[num];
         }
 
-        char *char_check(char x, char y)
+        const char *char_check(char x, char y)
         {
            if (y == static_str[0])
               return static_str;
@@ -185,6 +185,7 @@
                      sum_x_y
                      give perturb get_s2a check_s2a
                      AAA_first_ordinal_function
+                     ret_un_func
                   """.split()
         eci = ExternalCompilationInfo(export_symbols=symbols)
         return str(platform.compile([c_file], eci, 'x', standalone=False))



More information about the Pypy-commit mailing list