1
1

57 Коммитов

Автор SHA1 Сообщение Дата
Andrew Borodin
0731ad5e60 Applied MC indentation policy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-01 16:34:14 +04:00
Andrew Borodin
ca0af7de47 Ticket #1561: help subsystem improvements.
Initial step: don't force break long lines. Displayed
help text should be dynamically formatted depending on
screen width.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-01 13:14:08 +04:00
Slava Zanko
51f10b3038 Cleanup of code for compile with new warnings options for compilator
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-30 20:36:48 +02:00
Slava Zanko
e29e6126a6 * Added g_unichar_iszerowidth() and g_file_set_contents() functions for
compability with glib-2.6

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-24 15:21:34 +00:00
Mikhail S. Pobolovets
758ab591d8 Simple doxygen description for files in src directory.
Mostly \file and \brief tag added.

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-02-10 16:07:59 +02:00
Patrick Winnertz
589ffd0b10 Use g_snprintf instead of snprintf as we switch back to glib
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:49:00 +01:00
Enrico Weigelt, metux IT service
e4a4f77ac2 replaced g_snprintf() by snprintf() 2009-02-01 20:03:28 +01:00
Pavel Tsekov
7ad6feae42 * src/achown.c: Update copyright notice.
* src/chmod.c: Likewise.
* src/chown.c: Likewise.
* src/cmd.c: Likewise.
* src/color.c: Likewise.
* src/command.c: Likewise.
* src/cons.handler.c: Likewise.
* src/cons.saver.c: Likewise.
* src/dialog.c: Likewise.
* src/dir.c: Likewise.
* src/help.c: Likewise.
* src/info.c: Likewise.
* src/man2hlp.c: Likewise.
* src/menu.c: Likewise.
* src/mouse.c: Likewise.
* src/option.c: Likewise.
* src/profile.c: Likewise.
* src/screen.c: Likewise.
* src/setup.c: Likewise.
* src/subshell.c: Likewise.
* src/user.c: Likewise.
* src/win.c: Likewise.
* vfs/sfs.c: Likewise.
* vfs/tcputil.c: Likewise.
2007-09-26 10:22:25 +00:00
Pavel Roskin
da6ee30252 * man2hlp.c (main): Fix using 0 instead of NULL. 2005-10-08 04:55:06 +00:00
Pavel Roskin
1f60f44145 Update postal address of Free Software Foundation. 2005-05-27 03:35:10 +00:00
Roland Illig
fc85bdba7e * *.c: Reordered header inclusion. 2005-02-08 09:04:03 +00:00
Roland Illig
207711e166 Typo. 2004-09-02 14:59:12 +00:00
Roland Illig
f30fc0163b * man2hlp.c (handle_link): Added header "glib-compat.h" because
glib-1.2 does not know g_strlcpy.
2004-09-02 14:32:53 +00:00
Roland Illig
38257a486a * man2hlp.c (handle_link): Reverted the last change because
glib-1.2 does not know g_strlcpy.
2004-09-02 12:30:28 +00:00
Andrew V. Samoilov
de59cf86c4 * user.c (check_format_var): Use more suitable function
g_strndup, instead sequence g_malloc(), strncpy(), name[len] = '\0'
* man2hlp.c (handle_link): Use g_strlcpy instead sequence
        strncpy(), name[len] = '\0'
* profile.c (GetSetProfile): Likewise.
* wtools.c (fg_input_dialog_help): Likewise.
2004-09-01 18:31:24 +00:00
Roland Illig
3da9abba54 * Code cleanup: Added const qualifier for variables and
function declarations where possible. No functional changes.
2004-08-30 00:02:36 +00:00
Pavel Roskin
3c39e9cb55 * fs.h (compute_namelen): Fix warning about unused argument.
* man2hlp.c (handle_tp_ip): Likewise.
2003-10-25 03:44:13 +00:00
Pavel Roskin
f33d076970 * man2hlp.c (main): Initialize cnode->heading_level.
Bug report by Tribhuvan <loka@rcn.com>
2003-01-20 23:21:57 +00:00
Andrew V. Samoilov
2fdd86e31d * man2hlp.c (fclose_check): Call ferror() and exit on file error. 2003-01-16 18:54:47 +00:00
Andrew V. Samoilov
1daab23a66 * man2hlp.c (main): Use fgets() return value in while loop instead of
feof() because end-of-file indicator can be false on error.
2003-01-15 16:27:17 +00:00
Andrew V. Samoilov
49b5356345 * man2hlp.c (handle_command): Fix possible buffer overflow.
(handle_link): Likewise.
2003-01-15 14:20:01 +00:00
Pavel Roskin
895c9468c3 * man2hlp.c (persistent_fread): Return error for len <= 0.
(persistent_fwrite): Likewise.
(main): Check the result of the second ftell().
2002-11-13 17:38:33 +00:00
Pavel Roskin
ba466b74d6 * file.c (panel_operate): Warning fix.
* cmd.c (compare_dirs_cmd): Likewise.
* man2hlp.c: Warning fixes.  size_t can be unsigned.
2002-11-11 08:25:29 +00:00
Pavel Roskin
42070839c7 * man2hlp.c (handle_link): Treat link name after & as regular
text.
Suggested by David Martin <dmartina@excite.com>
2002-10-24 13:32:30 +00:00
Pavel Roskin
bac6c6eaf2 * man2hlp.c (main): Remove unnecessary spaces in the table of
contents.
2002-10-23 00:42:34 +00:00
Andrew V. Samoilov
ec500ae38a * man2hlp.c (handle_link): Don't strip leading space(s) from linkname. 2002-10-21 17:46:40 +00:00
Andrew V. Samoilov
1070df9609 * man2hlp.c (handle_tp_ip): Implement .IP and .TP macroses
(without arguments).
(handle_command): Call handle_tp_ip().
(main): Handle label and body of .TP paragraph.
2002-10-17 15:12:34 +00:00
Andrew V. Samoilov
f8cf5b28bf * man2hlp.c: Include <glib.h> and use g_snprintf()/g_vsnprintf()
instead of sprintf()/vsprintf().
2002-10-15 15:38:15 +00:00
Andrew V. Samoilov
056ebbd7a0 * man2hlp.c: Report about stale links. 2002-10-15 14:41:27 +00:00
Pavel Roskin
389f053c47 * man2hlp.c (handle_alt_font): Implement .BR, .IR, .RB, .RI, .BI
and .IB macros.
(handle_command): Call handle_alt_font().
2002-09-22 19:19:45 +00:00
Pavel Roskin
8fad60a1c6 * man2hlp.c: Take text width from help.h, not from the command
line.
* help.h: Declare HELP_TEXT_WIDTH.
* help.c: Use HELP_TEXT_WIDTH.
2002-09-22 17:03:28 +00:00
Pavel Roskin
f1cec8dc2d * help.h: Replace CHAR_BOLD_ON, CHAR_BOLD_OFF and CHAR_ITALIC_ON
with  CHAR_FONT_BOLD, CHAR_FONT_NORMAL and CHAR_FONT_ITALIC
respectively for better consistency.
2002-09-22 16:40:33 +00:00
Pavel Roskin
d520b9f76f * man2hlp.c (handle_command): Make clear that unsupported
command is a warning, not an error.  Avoid unsafe strcat().
2002-09-05 20:47:12 +00:00
Pavel Roskin
e1aee61843 * man2hlp.c: Move handling of .SH and NODE to a separate
function handle_node().  Don't output empty nodes except in the
table of contents.
2002-09-02 02:06:44 +00:00
Andrew V. Samoilov
64605f4785 * man2hlp.c (handle_command): Handle .SM and .SB. 2002-09-01 16:54:11 +00:00
Andrew V. Samoilov
cd9e02c125 * man2hlp.c (print_error): Print input filename.
(handle_command): Handle .P, .LP, .IP and .br.
Ignore comments and .TH (Title header).
Report about unsupported commands.
2002-09-01 10:45:35 +00:00
Andrew V. Samoilov
6407a05869 * man2hlp.c (fopen_check): Fix buffer overflow on error 2002-08-27 10:39:09 +00:00
Pavel Roskin
3c57e07af3 * man2hlp.c (main): Factor error checks in fopen() and fclose(),
eliminate reuse of variables for different purposes, add more
comments.  Correctly process "&" escape.
The last part is from David Martin <dmartina@excite.com>
2002-08-27 04:27:26 +00:00
Pavel Roskin
488f4c3e44 * man2hlp.c: Change default from the English string for TOPICS,
to no heading.
2002-08-25 18:40:33 +00:00
Pavel Roskin
f9a0f1440a * man2hlp.c (handle_command): Remove quotes from TOPIC. 2002-08-25 18:13:37 +00:00
Pavel Roskin
fdd975af3a Missing return after perror(). 2002-08-20 16:14:48 +00:00
Pavel Roskin
f486423122 * man2hlp.c: Don't redirect stdout. Check result of ftell.
Drop support for invocation with 2 arguments.
2002-08-20 16:13:13 +00:00
Pavel Roskin
0707cb5278 * man2hlp.c: Implement persistent fread and fwrite to make sure
that all output is read and written.
2002-08-16 16:48:27 +00:00
Andrew V. Samoilov
10044de5b9 * man2hlp.c (main): Don't use freed structure member. 2002-07-31 00:08:51 +00:00
Pavel Roskin
80561f39a7 * man2hlp.c (main): Use only stream I/O. Fix checks for error
conditions.  Reformat the whole file.
2002-07-30 22:57:01 +00:00
Pavel Roskin
7e2fd7960e * man2hlp.c: Avoid the need to use gindex.pl.
From Andrew V. Samoilov <sav@bcs.zp.ua>
* Makefile.am: Use man2hlp directly.
(EXTRA_DIST): Remove gindex.pl.
* gindex.pl: Remove.
2002-07-30 22:20:26 +00:00
Andrew V. Samoilov
0154dbfdc3 * man2hlp.c (handle_link): Strip .B and .I
* gindex.pl: Use fifth argument as man2hlp location.
2002-03-21 13:01:20 +00:00
Andrew V. Samoilov
20dd6b4e88 * man2hlp.c (handle_command): Handle backslash quoting
for .I and .B
2002-03-21 08:13:58 +00:00
Andrew V. Samoilov
830c9ae976 * man2hlp.c (handle_command): Handle '.\"TOPICS' comment.
Use it for translated 'Topics:' message.
* gindex.pl: Use first line of man2hlp output as
translated 'Topics:' message if fourth argument
is empty string.
* Makefile.am (mc.hlp.ru): Use empty string as gindex.pl's
fourth argument.
2002-03-20 14:03:55 +00:00
Andrew V. Samoilov
b5a0c42e21 (handle_command): Handle '.\"NODE' comment. Use it for
nodename in translated manual pages.
2002-02-28 14:38:38 +00:00