Age | Commit message (Collapse) | Author |
|
Previously, "mono" assigned -1 to fg/bg to indicate "unset" values.
NCurses uses -1 to indicate "default" color (when supported), but
COLOR_DEFAULT was assigned the value -2 and swapped at the last
moment. While it worked, I personally found this confusing.
To make the logic clearer, create a COLOR_UNSET constant with value
-2, and switch COLOR_DEFAULT to -1. Then remove the last-minute
translation when allocating the color.
Change the "not set" initialization and testing to use COLOR_UNSET for
clarity.
Because map_getvaluebyname() returns -1 for a missing value,
create a new lookup function that returns the matching mapping_t or
NULL if not found.
|
|
The result of
find . -name "*.[ch]" -exec emacs -batch {} \
--eval="(progn (delete-trailing-whitespace) (and (buffer-modified-p) (save-buffer)))" \;
|
|
Many structs used in mutt are actually constant but are defined
without the 'const' keyword. This can slow initialization (slightly)
in some environments due to extra copying and increases the amount of
writable RAM required at run-time, which can be significant on non-MMU
systems. Using const can also increase the opportunities for compiler
optimization.
The attached patch marks many such structures as const. On my test x86
build, this reduces the size of .data by over 50%.
|
|
|
|
|
|
|
|
<ruediger.kuhlmann@stud.uni-karlsruhe.de>.
|
|
|
|
|
|
when merging changes.
|
|
|
|
|