Branch: Tag:


2021-03-26 14:56:23 by Henrik Grubbström (Grubba) <>

string_builder_sprintf: Support %p.


2019-08-08 11:14:03 by Henrik Grubbström (Grubba) <>

string_builder_from_string_buffer: Improved type safety.


2019-08-01 09:57:30 by Henrik Grubbström (Grubba) <>

string_builder_append_disassembly: Fixed opcode length threshold.

2019-08-01 07:26:52 by Henrik Grubbström (Grubba) <>

string_builder_append_disassembly: Reduce white space at EOL.


2019-07-31 07:51:48 by Henrik Grubbström (Grubba) <>

string_builder: Improved robustness against freed string_builders.

The string_builder embedded in Stdio.Buffer has a NULL s->s while empty.
Most of the string_builder_*() functions did not like that.


2019-07-30 08:11:36 by Henrik Grubbström (Grubba) <>

Added string_builder_from_string_buffer().


2019-07-27 08:35:37 by Henrik Grubbström (Grubba) <>

Added string_builder_append_disassembly_data().

This function outputs ".data" directives matching the given memory
dump on a format compatible with string_builder_append_disassembly().

2019-07-27 08:31:33 by Henrik Grubbström (Grubba) <>

string_builder_vsprintf: Support min_width with %q.

NB: min_width padding is outside (before or after) the string,
NOT inside the string quotes.


2019-07-26 13:13:53 by Henrik Grubbström (Grubba) <>

string_builder_quote_string: Adjusted semantics of max_len.

max_len now specifies the maximum length of the input string.
Previously it specified the maximum length of the result buffer.

Also string_builder_{v,}sprintf() now includes the quote ("\"")
characters in "%q" and supports the precision argument.

2019-07-26 09:48:27 by Henrik Grubbström (Grubba) <>

Added write_and_reset_string_builder().

The typical use for this function is to flush a string_builder
used as a buffer for debug output to stderr.

2019-07-26 09:45:27 by Henrik Grubbström (Grubba) <>

Added string_builder_{v,}sprintf_disassembly().


2019-07-25 17:06:27 by Henrik Grubbström (Grubba) <>

string_builder_append_disassembly: Fixed bug in memory dumping.

2019-07-25 17:04:27 by Henrik Grubbström (Grubba) <>

string_builder_sprintf: Added support for %q.


2019-07-23 13:34:20 by Henrik Grubbström (Grubba) <>

Support multiple lines of opcode in string_builder_append_disassembly().


2019-07-22 11:58:36 by Henrik Grubbström (Grubba) <>

Move string_builder_append_disassembly() to string_builder.cmod.

Some minor API-changes to string_builder_append_disassembly() to make
it architecture-independant, and suitable for more use-cases than
just byte-code disassembly. The displayed address is now independant
of the actual address of the memory dump.

Also adds some documentation.


2018-11-03 14:21:37 by Marcus Comstedt <>

Merge remote-tracking branch 'origin/8.1' into gobject-introspection


2018-03-27 16:13:00 by Henrik Grubbström (Grubba) <>

Fixed duplication of escaped quotes in string_builder_quote_string().

Fixes cpp failure of bin/install.pike.


2018-03-24 21:46:48 by Henrik Grubbström (Grubba) <>

Added some more operation modes for string_builder_quote_string().


2018-03-17 20:13:55 by Martin Nilsson <>

Remove redundant includes.


2018-02-12 21:49:35 by Marcus Comstedt <>

Fix spelling of FALLTHRU directive

The non-standard spelling "FALL_THROUGH" is not recognized by gcc 7.3.
Also, the comment must not contain any other text, or be placed inside


2018-02-08 12:44:04 by Stephen R. van den Berg <>

Fix typos and docs.


2018-02-05 17:14:07 by Henrik Grubbström (Grubba) <>

String.Buffer: Moved implementation.

Moves implementation of String.Buffer from builtin.cmod to

Adds initialization of the module to happen before that of cpp.
This will allow cpp.cmod to rely on String.Buffer to exist at
compile time.


2018-02-04 20:30:48 by Martin Nilsson <>

Added emacs marker