Signed-off-by: Ilia Maslakov <il.smind@google.com>
Some fixies after patch of Ilia Maslakov.
* Fixed pathes to rules-highlight files.
* Added on-fly refresh of rules after editing.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Added support of filenames highlighting in panels.
Now rules of highlighting described into external file filehighlight.ini
Number of highlight rules is unlimited (in opposite to X-Stranger patch).
Highlight will made by:
* file type (directory, regular, symlink, special device etc.)
* extensions of filenames (ends of filenames)
* regular expressions
Big thanks to X-Stranger <x@linux.by> for idea
and to Alexey Kaminsky <alexeykaminsky@gmail.com> for testing.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
* DEV_quick_widget:
Fixed segfault in editor options dialog.
Fixed radiobutton label for Macintosh line break.
Ticket #1562: simplfication API of QuickDialog.
Comment by dmartina:
Please, take care not to move those comments labelled "TRANSLATORS" in order to let them show up in *.po files.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
We really not need for all libpopt features.
As fact, simple POSIX getopt() is enough.
But if we have glib - we must use glib for unification.
Created two files: src/args.c and src/args.h
Parce of command line options now processed in these files.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
...or not-so-large but nevertheless
contain more than one function call,
or contain loops, or contain if's and at least one
function call, or contain largish objects on stack.
In my experience, in those cases the code size
growth is big enough to not inline stuff.
I guess some of the really big functions
are defined inline because they have, or had in the past,
just one callsite.
But for a few years gcc already does it automatically,
no need to do it by hand and risk code size explosion
when later during code evolution another callsite
is created. This optimization by hand is simply
no longer needed.
Anyway, here is the code size difference:
text data bss dec hex filename
572337 17944 177820 768101 bb865 mc.t5/.obj/src/mc
567697 17944 177820 763461 ba645 mc.t6/.obj/src/mc
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
* DEV_mcview2: (27 commits)
Implemented interruptable long-distance movements.
fix: <no translation> behaviour
Change prototype of mcview_get_byte() function (and al related functions)
fix: uninitialized variables
fix: header paths
Added missed includes. Fixed OFFSETTYPE_MAX calculation.
Cleanup of code. Indentation.
Ticket #1530
* add 'Whole words' option into the viewer 'Search' dialog
Added functions for work with nroff'ed text. Added search across nroff'ed text
Fixies with search in HEX mode view:
Search in plain text (not nroff'ed) now worked.
Cleanup of code. Reidentation.
Ticket #1431 (Missing translation in view.c ButtonBar?)
Avoid warning 'format not a string literal and no format arguments'.
Fixed memory leak after geting list of search types.
Move search dialog from actions_cmd.c into dialogs.c
Changes for correctly work after rebase to master (master with HACK_tty).
fix: draw nroff text
Move inline functions from internal.h into new file inlines.h
...
There a lot of time required to move to the end of large
binary file. Now such movement can be interrupted by
Ctrl-C key.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
from
int mcview_get_byte (mcview_t *, off_t)
into
gboolean mcview_get_byte (mcview_t, off_t, int *)
Now splitted return code(success/fail) and readed value from datasource value.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>