<feed xmlns='http://www.w3.org/2005/Atom'>
<title>halibut/ustring.c, branch master</title>
<subtitle>My halibut tree</subtitle>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/'/>
<entry>
<title>Revamp of the Halibut error handling mechanism.</title>
<updated>2012-08-29T18:13:11+00:00</updated>
<author>
<name>Simon Tatham</name>
<email>anakin@pobox.com</email>
</author>
<published>2012-08-29T18:13:11+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=1489dc15967970576d08f3f2b22c6e1c939bcbcf'/>
<id>1489dc15967970576d08f3f2b22c6e1c939bcbcf</id>
<content type='text'>
I'm not quite sure why I ever thought it was a good idea to have a
central variadic error() function taking an integer error code
followed by some list of arguments that depend on that code. It now
seems obvious to me that it's a much more sensible idea to have a
separate function per error, so that we can check at compile time that
the arguments to each error call are of the right number and type! So
I've done that instead.

A side effect is that the errors are no longer formatted into a
fixed-size buffer before going to stderr, so I can remove all the
%.200s precautions in the format strings.

[originally from svn r9639]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I'm not quite sure why I ever thought it was a good idea to have a
central variadic error() function taking an integer error code
followed by some list of arguments that depend on that code. It now
seems obvious to me that it's a much more sensible idea to have a
separate function per error, so that we can check at compile time that
the arguments to each error call are of the right number and type! So
I've done that instead.

A side effect is that the errors are no longer formatted into a
fixed-size buffer before going to stderr, so I can remove all the
%.200s precautions in the format strings.

[originally from svn r9639]
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug in utoi(), which made it ignore a leading minus sign when</title>
<updated>2012-05-03T17:34:51+00:00</updated>
<author>
<name>Simon Tatham</name>
<email>anakin@pobox.com</email>
</author>
<published>2012-05-03T17:34:51+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=f9c0f2f4b344c6138791fc67ef000c2dea1fb7a8'/>
<id>f9c0f2f4b344c6138791fc67ef000c2dea1fb7a8</id>
<content type='text'>
converting a number! Oops. Now you can do things like

\cfg{text-list-indent}{-2}
\cfg{text-listitem-indent}{2}

to get your bullets placed in the left margin rather than indenting
the paragraphs of your list.

[originally from svn r9474]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
converting a number! Oops. Now you can do things like

\cfg{text-list-indent}{-2}
\cfg{text-listitem-indent}{2}

to get your bullets placed in the left margin rather than indenting
the paragraphs of your list.

[originally from svn r9474]
</pre>
</div>
</content>
</entry>
<entry>
<title>The length parameters in mbstowcs and wcstombs are limits on the</title>
<updated>2007-06-21T14:10:01+00:00</updated>
<author>
<name>Simon Tatham</name>
<email>anakin@pobox.com</email>
</author>
<published>2007-06-21T14:10:01+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=dfc9234fa55bc93174e057b90c1f665eb8cb39e4'/>
<id>dfc9234fa55bc93174e057b90c1f665eb8cb39e4</id>
<content type='text'>
_output_ length, not the input length. Adjust accordingly.

This has the side effect of working around what I believe to be a
bug in DJGPP's mbstowcs(), namely that if you give it a string which
exactly fits in the output length _without_ the trailing NUL, then
it will write n-1 characters of the string plus a NUL where I
believe it should write n characters of the string and no NUL.

[originally from svn r7622]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
_output_ length, not the input length. Adjust accordingly.

This has the side effect of working around what I believe to be a
bug in DJGPP's mbstowcs(), namely that if you give it a string which
exactly fits in the output length _without_ the trailing NUL, then
it will write n-1 characters of the string plus a NUL where I
believe it should write n characters of the string and no NUL.

[originally from svn r7622]
</pre>
</div>
</content>
</entry>
<entry>
<title>Mac OS X gcc warns about a signed/unsigned comparison here. Explicit cast.</title>
<updated>2005-01-24T10:59:19+00:00</updated>
<author>
<name>Simon Tatham</name>
<email>anakin@pobox.com</email>
</author>
<published>2005-01-24T10:59:19+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=c011833b579018f69336c63f0de222e116da4a6a'/>
<id>c011833b579018f69336c63f0de222e116da4a6a</id>
<content type='text'>
[originally from svn r5188]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[originally from svn r5188]
</pre>
</div>
</content>
</entry>
<entry>
<title>Sort out error handling everywhere a charset name is converted into</title>
<updated>2004-06-27T13:18:32+00:00</updated>
<author>
<name>Simon Tatham</name>
<email>anakin@pobox.com</email>
</author>
<published>2004-06-27T13:18:32+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=d87fabeacea32abba73d67f991f9e523991369c7'/>
<id>d87fabeacea32abba73d67f991f9e523991369c7</id>
<content type='text'>
an integer charset ID.

[originally from svn r4317]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
an integer charset ID.

[originally from svn r4317]
</pre>
</div>
</content>
</entry>
<entry>
<title>Switch the memory allocation macros from the Halibut ones</title>
<updated>2004-06-12T20:31:03+00:00</updated>
<author>
<name>Simon Tatham</name>
<email>anakin@pobox.com</email>
</author>
<published>2004-06-12T20:31:03+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=a5d800d080a9eb557082042216636ac872eac7ec'/>
<id>a5d800d080a9eb557082042216636ac872eac7ec</id>
<content type='text'>
(mknew/mknewa/resize) to the PuTTY ones (snew/snewn/sresize). snewn
and mknewa have their arguments opposite ways round; this may make
the change initially painful but in the long term will free me of a
nasty context switch every time I move between codebases. Also
sresize takes an explicit type operand which is used to cast the
return value from realloc, thus enforcing that it must be correct,
and arranging that if anyone tries to compile Halibut with a C++
compiler there should be a lot less pain.

[originally from svn r4276]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(mknew/mknewa/resize) to the PuTTY ones (snew/snewn/sresize). snewn
and mknewa have their arguments opposite ways round; this may make
the change initially painful but in the long term will free me of a
nasty context switch every time I move between codebases. Also
sresize takes an explicit type operand which is used to cast the
return value from realloc, thus enforcing that it must be correct,
and arranging that if anyone tries to compile Halibut with a C++
compiler there should be a lot less pain.

[originally from svn r4276]
</pre>
</div>
</content>
</entry>
<entry>
<title>Initial checkin of the shiny new rewritten-from-scratch HTML back</title>
<updated>2004-06-12T20:09:40+00:00</updated>
<author>
<name>Simon Tatham</name>
<email>anakin@pobox.com</email>
</author>
<published>2004-06-12T20:09:40+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=3ae295ca676ac0db275ad2cc1945fa0eca4a19bd'/>
<id>3ae295ca676ac0db275ad2cc1945fa0eca4a19bd</id>
<content type='text'>
end. There's a lot more _potentiality_ for new features than there
are actual new features just yet, but future highlights include:
configurable flavour of HTML (3.2, 4, XHTML Transitional or Strict),
proper character set support (this is half way there already), and
more flexible allocation of sections between multiple HTML files.
Meanwhile, immediate benefits include correct handling of special
characters within `author' and `description' strings, omission of
the filename part in hyperlinks within the same HTML file (in
particular, this means a single output file is now totally
independent of its filename), and hyperlinks to the index from the
top-level contents page (I'm amazed nobody has complained at the
lack of this yet!). There are no doubt some shiny new bugs as well,
but I'll never find them unless people start using the thing...

[originally from svn r4275]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
end. There's a lot more _potentiality_ for new features than there
are actual new features just yet, but future highlights include:
configurable flavour of HTML (3.2, 4, XHTML Transitional or Strict),
proper character set support (this is half way there already), and
more flexible allocation of sections between multiple HTML files.
Meanwhile, immediate benefits include correct handling of special
characters within `author' and `description' strings, omission of
the filename part in hyperlinks within the same HTML file (in
particular, this means a single output file is now totally
independent of its filename), and hyperlinks to the index from the
top-level contents page (I'm amazed nobody has complained at the
lack of this yet!). There are no doubt some shiny new bugs as well,
but I'll never find them unless people start using the thing...

[originally from svn r4275]
</pre>
</div>
</content>
</entry>
<entry>
<title>All measurements in the paper backend are now configurable, as are</title>
<updated>2004-05-23T13:55:59+00:00</updated>
<author>
<name>Simon Tatham</name>
<email>anakin@pobox.com</email>
</author>
<published>2004-05-23T13:55:59+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=64b8c4d982634f6f342b4a7cf8323960d2cbc1a2'/>
<id>64b8c4d982634f6f342b4a7cf8323960d2cbc1a2</id>
<content type='text'>
bullet and quote characters.

[originally from svn r4249]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
bullet and quote characters.

[originally from svn r4249]
</pre>
</div>
</content>
</entry>
<entry>
<title>Character-set-isation and configurability in the WinHelp backend.</title>
<updated>2004-05-23T13:20:27+00:00</updated>
<author>
<name>Simon Tatham</name>
<email>anakin@pobox.com</email>
</author>
<published>2004-05-23T13:20:27+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=2c2cc2260f9302ed2a32d5cd6116d7e7a2f097cf'/>
<id>2c2cc2260f9302ed2a32d5cd6116d7e7a2f097cf</id>
<content type='text'>
Newly configurable things are: bullet and quote characters as usual,
the ": " that goes between a section number and its title, the "."
coming after numbered-list item numbers, and the text "Title page"
that appears at the top of the .cnt file.

[originally from svn r4248]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Newly configurable things are: bullet and quote characters as usual,
the ": " that goes between a section number and its title, the "."
coming after numbered-list item numbers, and the text "Title page"
that appears at the top of the .cnt file.

[originally from svn r4248]
</pre>
</div>
</content>
</entry>
<entry>
<title>Rewrite ustrftime(), so that (a) it uses wcsftime() where available,</title>
<updated>2004-04-22T18:25:46+00:00</updated>
<author>
<name>Simon Tatham</name>
<email>anakin@pobox.com</email>
</author>
<published>2004-04-22T18:25:46+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=5f4b6eee16403e5dbf4571aa7bad06dc19f97597'/>
<id>5f4b6eee16403e5dbf4571aa7bad06dc19f97597</id>
<content type='text'>
and (b) it doesn't trip over strange Unicode characters in the
format string.

[originally from svn r4120]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
and (b) it doesn't trip over strange Unicode characters in the
format string.

[originally from svn r4120]
</pre>
</div>
</content>
</entry>
</feed>
