48 Commits

Author SHA1 Message Date
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
Andrew V. Samoilov
ad0767356f * man2hlp.c (main): Don't crash if called without argument(s).
Make `buffer' char pointer.
2002-02-28 14:12:34 +00:00
Pavel Roskin
7346c6f93e * man2hlp.c (string_len): Don't exclude characters with codes
above 128 from the string length.
2002-02-22 05:54:00 +00:00
Pavel Roskin
ac504b9ba1 * man2hlp.c: Remove HTML support. Remove old link support.
Warning fixes.
(print_string): Handle backslashes in verbatim mode too.
2001-08-16 01:36:41 +00:00
Pavel Roskin
689c3fb9ac Replace "Can't" with "Cannot" everywhere. 2001-08-14 00:55:34 +00:00
Pavel Roskin
e828211662 Updated address of Free Software Foundation 2000-08-22 22:50:00 +00:00
Pavel Roskin
923540c16f * man2hlp.c: Removed undocumented feature - when converting
to HTML some output would go to index.html instead of stdout
2000-08-22 19:37:33 +00:00
Miguel de Icaza
eb6b3842ab Initial revision 1998-02-27 04:54:42 +00:00