<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libedit/search.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libedit/search.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libedit/search.c?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2016-05-06T13:12:52Z</updated>
<entry>
<title>Replace the generated file "fcns.c" by a simpler header "func.h"</title>
<updated>2016-05-06T13:12:52Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-06T13:12:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=13e01c7add293760b137f79ec359a58715043708'/>
<id>urn:sha1:13e01c7add293760b137f79ec359a58715043708</id>
<content type='text'>
included only in the one file needing it, "map.c".
That allows to define el_action_t directly in "map.h",
which in turn allows to stop including "fcns.h" from "el.h"
and include it only in the modules needing it.
Now we no longer autogenerate any C files.

Feedback and OK martijn@.
First version also proofread by Christian Heckendorf &lt;mbie at ulmus dot me&gt;.
</content>
</entry>
<entry>
<title>Initialize the search buffer.</title>
<updated>2016-04-28T09:44:36Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-04-28T09:44:36Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=e1946848423e90751fc1235d2d3cc96517d56b09'/>
<id>urn:sha1:e1946848423e90751fc1235d2d3cc96517d56b09</id>
<content type='text'>
Otherwise, if you called ed-search-prev-history before doing any
history search but after entering at least one line into the history,
the buffer could get accessed uninitialized, potentially resulting
in a read buffer overrun.

Segfault reported in sftp(1) via djm@ by Alf Schlichting &lt;A dot
Schlichting at lemarit dot com&gt;, who also confirmed that the patch
fixes the issue for him.

OK martijn@ czarkoff@
</content>
</entry>
<entry>
<title>delete the "private" and "public" preprocessor macros, just use standard C;</title>
<updated>2016-04-11T21:17:29Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-04-11T21:17:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=ddc81437857133802b1cf7d8d5bf0ff2198b602b'/>
<id>urn:sha1:ddc81437857133802b1cf7d8d5bf0ff2198b602b</id>
<content type='text'>
OK martijn@
</content>
</entry>
<entry>
<title>get rid of the non-standard data type "Char" in almost all files;</title>
<updated>2016-04-11T20:43:33Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-04-11T20:43:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=e3191321e10061607f650c80a8b76fe9f4de6d52'/>
<id>urn:sha1:e3191321e10061607f650c80a8b76fe9f4de6d52</id>
<content type='text'>
ok martijn@
</content>
</entry>
<entry>
<title>Move wrapper macros to the two files actually needing them:</title>
<updated>2016-04-11T19:54:53Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-04-11T19:54:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5c93237dc61741a77e4aedea71fcbacffe8f97ad'/>
<id>urn:sha1:5c93237dc61741a77e4aedea71fcbacffe8f97ad</id>
<content type='text'>
FUNW, Strlen, Strdup, Strcmp, Strncmp, Strncpy, Strncat -&gt; history.c
Strchr, tok_strdup -&gt; tokenizer.c
FUN, TYPE, STR -&gt; both of these files

OK martijn@

Also proofread by Christian Heckendorf &lt;mbie at ulmus dot me&gt;
who reported some whitespace issues in parse.c.
</content>
</entry>
<entry>
<title>Delete 26 wrapper macros and two wrapper functions that are no</title>
<updated>2016-04-09T20:15:26Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-04-09T20:15:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=565aa7e845bd05480ccceb0abafa956d0083e470'/>
<id>urn:sha1:565aa7e845bd05480ccceb0abafa956d0083e470</id>
<content type='text'>
longer needed now that we always compile with wide character support,
reducing code obfuscation.

OK czarkoff@ martijn@.
Diff also proofread by Christian Heckendorf &lt;mbie at ulmus dot me&gt;.
</content>
</entry>
<entry>
<title>Always compile with WIDECHAR on and delete that preprocessor switch.</title>
<updated>2016-04-09T19:31:55Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-04-09T19:31:55Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=59aed04376a049dfbbb13e1bb6d19f1aff4a2c6e'/>
<id>urn:sha1:59aed04376a049dfbbb13e1bb6d19f1aff4a2c6e</id>
<content type='text'>
OK martijn@.
Diff also proofread by Christian Heckendorf &lt;mbie at ulmus dot me&gt;.
</content>
</entry>
<entry>
<title>Reduce the FUN() macro madness by no longer applying it to el_[w]getc(3).</title>
<updated>2016-03-21T15:25:39Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-03-21T15:25:39Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=df2a7d38ac6d7be674243167b8355d7145815c50'/>
<id>urn:sha1:df2a7d38ac6d7be674243167b8355d7145815c50</id>
<content type='text'>
Always use el_wgetc(3) internally.  In the !WIDECHAR case, casting
the result to (Char) is safe because the function returns a byte
rather than a character in that case.
No functional change except for fixing a printf(3) format string issue
when compiled with DEBUG_READ and WIDECHAR.
OK czarkoff@
</content>
</entry>
<entry>
<title>Cleanup of standard header inclusion:</title>
<updated>2016-03-20T23:48:27Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-03-20T23:48:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=7ccfa089d503f0f7c1c22435af04c237b0796118'/>
<id>urn:sha1:7ccfa089d503f0f7c1c22435af04c237b0796118</id>
<content type='text'>
1. Add the missing &lt;errno.h&gt; to sig.c.
2. Do not include standard headers from private headers "chared.h"
and "el.h", include them directly where needed.
3. Delete a few needless inclusions of &lt;ctype.h&gt;.
4. Sort the standard headers.
5. Delete _GNU_SOURCE weirdness from histedit.h, that file doesn't even
need the access to wcsdup(3) mentioned in the comment.
6. Delete some trailing blanks and blanks before tabs.

OK czarkoff@
</content>
</entry>
<entry>
<title>Cleanup of private header inclusion:</title>
<updated>2016-03-20T22:57:59Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-03-20T22:57:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5564fb9496c6db6caa72a9dcf75b20efbd24a525'/>
<id>urn:sha1:5564fb9496c6db6caa72a9dcf75b20efbd24a525</id>
<content type='text'>
1. Do not include private headers from "chared.h", "hist.h", "prompt.h",
"refresh.h", "search.h", "sig.h", "terminal.h", "tty.h".
The only private header having to include other private headers is "el.h".
2. Do not include "common.h", "parse.h", "help.h" from "el.h",
and do not include "emacs.h" and "vi.h" from "chared.h",
include them directly where needed.
3. Do include "fcns.h" from "el.h" because el_func_t is needed for "map.h".
4. Do not include private headers again that are already included by "el.h".
5. Include private headers after standard headers.

OK czarkoff@
</content>
</entry>
</feed>
