<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/swig.git/Source/Preprocessor, branch master</title>
<subtitle>github.com: swig/swig.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/swig.git/'/>
<entry>
<title>Use strchr/Strchr for single character searches</title>
<updated>2023-05-15T04:19:17+00:00</updated>
<author>
<name>Olly Betts</name>
<email>olly@survex.com</email>
</author>
<published>2023-05-15T04:12:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/swig.git/commit/?id=8a9628e2b900a4f62b52ab339ba35f50fedd1fd8'/>
<id>8a9628e2b900a4f62b52ab339ba35f50fedd1fd8</id>
<content type='text'>
This can be more efficient than using strstr/Strstr with a single
character search string.

GCC is able to optimise strstr() with a single character literal
search string to strchr(), but clang doesn't, and likely no compiler
can for Strstr() (unless some sort of inter-object optimisation such
as LTO is used) since the literal string is in a different source file
to the strstr() call.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This can be more efficient than using strstr/Strstr with a single
character search string.

GCC is able to optimise strstr() with a single character literal
search string to strchr(), but clang doesn't, and likely no compiler
can for Strstr() (unless some sort of inter-object optimisation such
as LTO is used) since the literal string is in a different source file
to the strstr() call.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #ifdef and #ifndef to work inside a %define</title>
<updated>2023-04-20T19:40:25+00:00</updated>
<author>
<name>Olly Betts</name>
<email>olly@survex.com</email>
</author>
<published>2023-04-20T19:38:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/swig.git/commit/?id=de4e3b454e23af3f26f8c2ea670482bef738e983'/>
<id>de4e3b454e23af3f26f8c2ea670482bef738e983</id>
<content type='text'>
Previously they were silently ignored in this context (but #if defined
already worked here if you need a workaround which works for older
versions).

Fixes #2183
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously they were silently ignored in this context (but #if defined
already worked here if you need a workaround which works for older
versions).

Fixes #2183
</pre>
</div>
</content>
</entry>
<entry>
<title>Copy over missing parts of macro expansion code</title>
<updated>2023-04-19T02:52:40+00:00</updated>
<author>
<name>Olly Betts</name>
<email>olly@survex.com</email>
</author>
<published>2023-04-19T02:52:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/swig.git/commit/?id=043bdf567756e6a30dd1e62bef10607d28a3db91'/>
<id>043bdf567756e6a30dd1e62bef10607d28a3db91</id>
<content type='text'>
We need to insert newlines for a multi-line macro invocation, and
we shouldn't leak memory.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We need to insert newlines for a multi-line macro invocation, and
we shouldn't leak memory.
</pre>
</div>
</content>
</entry>
<entry>
<title>suppress a warning</title>
<updated>2023-04-14T08:25:45+00:00</updated>
<author>
<name>Momtchil Momtchev</name>
<email>momtchil@momtchev.com</email>
</author>
<published>2023-04-14T08:25:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/swig.git/commit/?id=d39cee1ce151fbe4920f0446b287835208104271'/>
<id>d39cee1ce151fbe4920f0446b287835208104271</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix code readability issues</title>
<updated>2023-04-14T07:55:29+00:00</updated>
<author>
<name>Momtchil Momtchev</name>
<email>momtchil@momtchev.com</email>
</author>
<published>2023-04-14T07:55:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/swig.git/commit/?id=24756d1bf98eb8d5489c80c6a2f6b4d00a9b56d7'/>
<id>24756d1bf98eb8d5489c80c6a2f6b4d00a9b56d7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>alternative, much cleaner, approach</title>
<updated>2023-04-11T18:35:20+00:00</updated>
<author>
<name>Momtchil Momtchev</name>
<email>momtchil@momtchev.com</email>
</author>
<published>2023-04-11T18:35:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/swig.git/commit/?id=80f23effa4dea35279679acc715286e33bf3a850'/>
<id>80f23effa4dea35279679acc715286e33bf3a850</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Consolidate name mangling functions</title>
<updated>2022-11-12T09:18:19+00:00</updated>
<author>
<name>William S Fulton</name>
<email>wsf@fultondesigns.co.uk</email>
</author>
<published>2022-11-12T09:18:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/swig.git/commit/?id=46f27784127b95a51561a01ae453d8c875b00d06'/>
<id>46f27784127b95a51561a01ae453d8c875b00d06</id>
<content type='text'>
Swig_string_mangle      =&gt; Swig_name_mangle_string
Swig_name_mangle        =&gt; Swig_name_mangle_string
Swig_string_mangle_type =&gt; Swig_name_mangle_type
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Swig_string_mangle      =&gt; Swig_name_mangle_string
Swig_name_mangle        =&gt; Swig_name_mangle_string
Swig_string_mangle_type =&gt; Swig_name_mangle_type
</pre>
</div>
</content>
</entry>
<entry>
<title>Use https for swig.org links</title>
<updated>2022-10-06T00:16:39+00:00</updated>
<author>
<name>Olly Betts</name>
<email>olly@survex.com</email>
</author>
<published>2022-10-06T00:16:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/swig.git/commit/?id=631b41ae7b454b8593af56c65c1451db9e174a52'/>
<id>631b41ae7b454b8593af56c65c1451db9e174a52</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ISO C comments fix</title>
<updated>2022-08-04T06:51:20+00:00</updated>
<author>
<name>William S Fulton</name>
<email>wsf@fultondesigns.co.uk</email>
</author>
<published>2022-08-04T06:51:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/swig.git/commit/?id=15a9ce36f8aef92d9aaa926b194afd2f8a6e64f4'/>
<id>15a9ce36f8aef92d9aaa926b194afd2f8a6e64f4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix spaceship operator bugs, document, add tests</title>
<updated>2022-07-26T21:12:40+00:00</updated>
<author>
<name>Olly Betts</name>
<email>olly@survex.com</email>
</author>
<published>2022-03-08T21:08:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/swig.git/commit/?id=02b4bd8eca73c6de0bb56f866f19fc30c63b7ba9'/>
<id>02b4bd8eca73c6de0bb56f866f19fc30c63b7ba9</id>
<content type='text'>
Remove some erroneously added brackets_increment() calls.

Reject &lt;=&gt; in preprocessor expressions with a clear error message (it
seems it isn't supported here - clang and gcc don't at least).

The type returned by `&lt;=&gt;` is not `bool`.  We pretend it's
`int` for now, which should work for how it's likely to be used
in constant expressions.

Fixes #1622
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove some erroneously added brackets_increment() calls.

Reject &lt;=&gt; in preprocessor expressions with a clear error message (it
seems it isn't supported here - clang and gcc don't at least).

The type returned by `&lt;=&gt;` is not `bool`.  We pretend it's
`int` for now, which should work for how it's likely to be used
in constant expressions.

Fixes #1622
</pre>
</div>
</content>
</entry>
</feed>
