<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/pyinline/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/pyinline/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/pyinline/bugs/</id><updated>2004-07-30T04:44:06Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>C to C call doesn't work</title><link href="https://sourceforge.net/p/pyinline/bugs/3/" rel="alternate"/><published>2004-07-30T04:44:06Z</published><updated>2004-07-30T04:44:06Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net24fb6a24ea962997eed5ea60ec306aa7397a71fa</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;A call from a C function to another raises an error.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;import PyInline&lt;br /&gt;
pyin = PyInline.build(code = """&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
double f(double x){return x;}&lt;br /&gt;
double g(double x){return f(x);}&lt;br /&gt;
""", language = "C")&lt;br /&gt;
print pyin.g(0.1)&lt;/p&gt;
&lt;p&gt;gives&lt;/p&gt;
&lt;p&gt;Traceback (most recent call last):&lt;br /&gt;
File "testpyin.py", line 18, in ?&lt;br /&gt;
""", language = "C")&lt;br /&gt;
File "PyInline\__init__.py",&lt;br /&gt;
line 38, in build&lt;br /&gt;
return b.build()&lt;br /&gt;
File "PyInline\C.py", line 40&lt;br /&gt;
, in build&lt;br /&gt;
self._parse()&lt;br /&gt;
File "PyInline\C.py", line 92&lt;br /&gt;
, in _parse&lt;br /&gt;
d['params'] = self._parseParams(d['rawparams'])&lt;br /&gt;
File "PyInline\C.py", line 11&lt;br /&gt;
0, in _parseParams&lt;br /&gt;
return [self._parseParam(p) for p in rawparams]&lt;br /&gt;
File "PyInline\C.py", line 11&lt;br /&gt;
8, in _parseParam&lt;br /&gt;
raise BuildError("Error parsing parameter %s" % p)&lt;br /&gt;
PyInline.BuildError: Error parsing parameter x&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>newline gives an error with gcc</title><link href="https://sourceforge.net/p/pyinline/bugs/2/" rel="alternate"/><published>2004-07-12T04:18:46Z</published><updated>2004-07-12T04:18:46Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net163d34b69efc02e3010175e75b3449d54b478488</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;A string with a newline gives an error.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;printf("hello\n");&lt;/p&gt;
&lt;p&gt;becomes (in _PyInline_...c)&lt;/p&gt;
&lt;p&gt;printf("hello&lt;br /&gt;
");&lt;/p&gt;
&lt;p&gt;which gives an error from gcc&lt;/p&gt;
&lt;p&gt;error: missing terminating "".... etc&lt;/p&gt;
&lt;p&gt;so it won't work with cygwin gcc (newest); somehow my&lt;br /&gt;
mingw gcc (older version) allows compilation.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>suppress a couple gcc warnings</title><link href="https://sourceforge.net/p/pyinline/bugs/1/" rel="alternate"/><published>2001-08-29T14:59:39Z</published><updated>2001-08-29T14:59:39Z</updated><author><name>Skip Montanaro</name><uri>https://sourceforge.net/u/montanaro/</uri></author><id>https://sourceforge.net5cb44081a4559f3bbd2977cc4f04a95ea89f220b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ken,&lt;/p&gt;
&lt;p&gt;When I ran your examples, gcc complained about the&lt;br /&gt;
init function not being a prototype and the generated&lt;br /&gt;
.c file not ending with a newline.  Here's a patch&lt;br /&gt;
that gets rid of those warnings.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>