Roland Illig
7b95eee94a
Added a comment that the user is responsible for not overflowing the
...
screen.
2005-09-01 17:04:05 +00:00
Roland Illig
f901a3549c
Added line breaks before the function names.
2005-09-01 17:01:12 +00:00
Roland Illig
c3ba638d43
* myslang.h: Partly switched to the new tty functions.
2005-08-29 10:02:35 +00:00
Roland Illig
f85a7d8275
Removed unused variable.
2005-08-29 09:40:58 +00:00
Roland Illig
af781d96f8
Added tty.c.
2005-08-29 09:36:32 +00:00
Roland Illig
ab3005ff93
Added a type conversion to view_growbuf_read_until to suppress a gcc
...
warning. Instead of treating various expressions as booleans, compare
them with a 0 of appropriate type.
2005-08-29 09:34:43 +00:00
Roland Illig
0c4c461433
The got_interrupt function from tty.c is defined for ncurses, too.
2005-08-29 09:30:45 +00:00
Roland Illig
132ee7a361
Fixed indentation.
2005-08-29 09:05:24 +00:00
Roland Illig
e223667dc3
Removed trailing white-space.
2005-08-29 09:04:39 +00:00
Roland Illig
a1bf93f138
Changed the prototypes of tty_print_hline and tty_print_vline.
2005-08-29 09:03:10 +00:00
Roland Illig
2a0f1a1cd0
* view.c: Converted to use the new tty functions.
2005-08-29 08:53:28 +00:00
Roland Illig
66332a4fb1
* slint.c: The handling of user interrupts has been moved to ...
...
* tty.c: ... this newly created file, which contains a simple,
not yet complete interface to the terminal library. It should be
used instead of depending directly on ncurses or SLang features.
* tty.h: Added the new function prototypes from tty.c and some
legacy definitions.
2005-08-29 08:45:28 +00:00
Roland Illig
f1452c9580
* view.c (view_new): Separated the mode toggling functions from
...
updating the display. The non-updating functions are called on
initialization.
2005-08-28 20:38:53 +00:00
Roland Illig
1d7b05f8f2
* view.c (view_hexedit_save_changes): Added an assertion that
...
view->filename be not NULL.
* view.c (view_toggle_magic_mode): Check if filename != NULL
before dereferencing the pointer.
* view.c (view_change_nroff_mode_cmd): Renamed to
view_toggle_nroff_mode_cmd.
* view.c (view_new): Don't initialize the various view->mode
variables by now. This needs to be done correctly.
2005-08-28 19:10:00 +00:00
Leonard den Ottolander
1d1af1d099
view.c (view_normal_search_cmd): Initialize exp to avoid freeing of
...
uninitialized pointer on cancel.
2005-08-27 11:35:03 +00:00
Leonard den Ottolander
81d7ee4f51
* key.c (xmouse_get_event): Disable double-click tracking for mouse wheel
...
events.
2005-08-25 20:36:40 +00:00
Roland Illig
55da46b128
* view.c (view_moveto_top): Simplified the code.
2005-08-22 19:19:51 +00:00
Roland Illig
de058c5488
* view.c (view_display_status): In normal display mode (that is:
...
not search progress), calculate the percentage based on dpy_end
instead of dpy_start. This avoids a sudden break to 100 % when
approaching the end of file.
2005-08-22 18:36:51 +00:00
Roland Illig
21640f491d
* view.c (struct WView): Renamed dpy_topleft to dpy_start, as it
...
does not always represent the top-left corner of the screen.
Replaced dpy_complete with dpy_end, the offset of the first byte
after the displayed region.
2005-08-22 18:31:51 +00:00
Roland Illig
c0f14a906d
* view.c: The search string is managed by the WView, not as
...
static variable in some functions.
2005-08-21 12:33:21 +00:00
Roland Illig
7abfd54b97
* view.c (free_change_list): Renamed to
...
view_hexedit_free_change_list.
2005-08-21 12:04:20 +00:00
Roland Illig
135ce37fef
* view.c (view_done): Reordered the statements in the
...
destructor and added paragraph comments.
2005-08-21 11:57:45 +00:00
Roland Illig
2081f5f9fa
* fileloc.h: Newly added this file, which provides a place where
...
all names of user specific configuration files are listed.
2005-08-21 04:00:43 +00:00
Roland Illig
03bdc998ca
* view.h: Rewrote it. All functions are preceded by a describing
...
comment and the "extern" keyword.
2005-08-21 03:32:17 +00:00
Roland Illig
0d4be87ff8
* view.c: Added section headers. The functions are still
...
somewhat unordered. Renamed some functions to fit into the
view_*_cmd naming convention.
2005-08-19 19:32:02 +00:00
Roland Illig
6baf73cfd9
Removed the rant from my commit message to make Pavel Tsekov happy.
2005-08-19 13:42:59 +00:00
Roland Illig
99f3df1591
* screen.c (string_file_name): Increased the buffer size to
...
MC_MAXPATHLEN + 1 bytes to avoid filename truncation.
2005-08-18 04:40:45 +00:00
Roland Illig
541c12241f
* view.c (struct WView): Renamed found_len to search_length.
2005-08-18 04:11:52 +00:00
Roland Illig
0601d83324
* view.c (view_display_text): Removed the (almost) unused
...
variable boldflag.
2005-08-18 03:50:29 +00:00
Roland Illig
b7cba56d21
* view.c (view_display_hex): Completely rewritten. Now the code
...
distinguishes several phases (state selection, color selection,
printing) and does not mix them wildly, as the previous code
did.
2005-08-18 03:33:33 +00:00
Roland Illig
ba8ba542f0
* view.c (view_move_up): Don't scroll up if it is not necessary.
...
This fixes an inconsistency noted by Andrej Zebrowski on
mc-devel.
* view.c (view_move_down): Do nothing if we're already at the
end of the file. This makes the cursor movement more consistent
with the behavior of the <End> key.
* view.c (regexp_search_cmd): Moved the code to save the changes
of the hex editor out of this function. Whoever wrote that
should be blamed for it, but the code has been there since the
beginning.
2005-08-18 02:26:39 +00:00
Roland Illig
01432587b8
Changed the return type of view_toggle_ruler() to void.
2005-08-16 09:04:29 +00:00
Roland Illig
ad29def0c4
* view.c (view_init_growbuf): Mark the first page full instead
...
of empty. This saves one condition in view_growbuf_read_until().
2005-08-16 08:59:14 +00:00
Roland Illig
03d2e06c41
Layout change for better readability.
2005-08-16 08:51:55 +00:00
Roland Illig
0deeec756e
Added some white-space for better readability. The coordinates of the
...
status line are computed like the other ones (was implicit before).
2005-08-16 08:47:15 +00:00
Roland Illig
9758c34a82
Added some white-space for better readability.
2005-08-16 08:37:05 +00:00
Roland Illig
c2564e99f6
* view.c (view_place_cursor): Made the call to widget_move()
...
look like the other calls.
2005-08-16 08:22:07 +00:00
Roland Illig
7b35eaa34d
* view.c (view_percent): Fixed coordinate computation.
2005-08-16 08:16:12 +00:00
Roland Illig
d76dc9218b
Fixed a typo in a comment.
2005-08-16 08:00:15 +00:00
Roland Illig
ae3c8a324d
Don't mix enums with ints.
2005-08-15 22:59:20 +00:00
Roland Illig
08a40c8d17
* screen.c (use_display_format): Removed unused variable.
2005-08-15 22:40:58 +00:00
Roland Illig
5c7a219b36
Don't mix enums with ints.
2005-08-15 22:36:53 +00:00
Roland Illig
4e3e810973
* complete.c: Don't mix enums with ints.
2005-08-15 22:33:20 +00:00
Roland Illig
a94e34c698
* complete.c (fetch_hosts): Removed unused variable.
2005-08-15 22:30:36 +00:00
Roland Illig
b973c398dc
* view.c (view_toggle_ruler): Don't mix enums with ints.
2005-08-15 21:59:08 +00:00
Roland Illig
d36a6c6cdb
Replaced 0 with LISTBOX_APPEND_AT_END.
2005-08-15 21:46:34 +00:00
Roland Illig
66d059bcdf
Replaced 0 with LISTBOX_APPEND_AT_END.
2005-08-15 21:46:34 +00:00
Roland Illig
7152139ad6
* wtools.h: Replaced 0 with LISTBOX_APPEND_AT_END.
2005-08-15 21:44:41 +00:00
Roland Illig
32f6020a0f
* dialog.h (struct Dlg_head): Changed the bit fields of length one
...
from signed int to unsigned int.
2005-08-15 20:30:55 +00:00
Roland Illig
ae815922de
view_init: Made the initialization order the same as the order in which the
...
fields appear in struct WView. Explicitly initialize view->marks[], as they
are used without other initialization.
2005-08-15 18:58:18 +00:00
Roland Illig
6e0a3be319
* view.c (view_ccache_lookup): Rewrote the calculation of the
...
cache entry. Also don't put entries in the cache when the
current byte is '\r'.
* view.c (view_ccache_dump): Extended the output by the offset
of the next line.
2005-08-15 11:49:30 +00:00
Roland Illig
69e4d3f825
* view.c (toggle_hex_mode): Now the hex cursor is always visible
...
after switching to hex mode.
2005-08-15 10:22:18 +00:00
Roland Illig
3dd9ec536b
* view.c (view_growbuf_read_until): When using mc_read, recover
...
from interrupted system calls.
2005-08-15 10:04:49 +00:00
Roland Illig
c4da4aecf2
Made the search function interruptible.
2005-08-15 09:55:19 +00:00
Roland Illig
6b874e13aa
* view.c (view_growbuf_read_until): On short reads, try to read
...
one more byte to check whether we're already at the end of file.
This makes the ">=" disappear earlier.
2005-08-06 18:19:14 +00:00
Roland Illig
725c9f7b34
* textconf.c: Include ecs_char in the list of type
...
characteristics that are printed.
2005-08-06 16:33:54 +00:00
Roland Illig
070b0dccf2
Use hline() instead of addch() to clear the menubar widget area.
2005-08-05 12:01:47 +00:00
Roland Illig
922043282d
* view.h: Renamed view to mc_internal_viewer. This avoids
...
hundreds of shadowed names in view.c.
2005-07-31 20:29:35 +00:00
Roland Illig
ca0d773797
* view.c: Removed global variable have_fast_cpu. It is not used
...
anymore.
2005-07-31 20:16:12 +00:00
Roland Illig
1b18865579
* user.c (execute_menu_command): Allow execution on no-exec
...
filesystems. This fixes Savannah Bug #13832 .
2005-07-31 19:29:04 +00:00
Roland Illig
ae2ec0ec2e
Added missing #include.
2005-07-31 19:08:18 +00:00
Roland Illig
7bb3bea344
Removed redundant comment.
2005-07-31 18:57:20 +00:00
Roland Illig
16b7d7b60a
Added standard file header.
2005-07-31 18:47:12 +00:00
Roland Illig
35a8f2b2a2
* Makefile.am: Added support for extended character sets.
...
* ecs.h: Support for extended character sets.
* ecs.c: Likewise.
* ecs-test.c: Testsuite for ecs.c.
2005-07-31 18:30:43 +00:00
Leonard den Ottolander
772c2600b9
* utilunix.c (mc_tmpdir): Check that tmpdir is correctly initialized.
2005-07-27 15:03:24 +00:00
Leonard den Ottolander
ed1899d211
* src/ChangeLog, edit/ChangeLog: Fix wrong dates on latest entries.
2005-07-24 13:42:28 +00:00
Leonard den Ottolander
f21564b9e6
* edit/choosesyntax.c: Create file. Menu option to override syntax
...
highlighting.
* edit/Makefile.am: Add choosesyntax.c.
* edit/edit.c (edit_init): Set option_auto_syntax to 1 on every invokation
of the editor.
* edit/edit.h: Pass char*** to edit_load_syntax(). Add parameters for
syntax dialog and override.
* edit/editmenu.c (menu_options): Add menu option to override syntax
hightlighting.
* edit/editoptions.c (edit_options_dialog): Pass option_syntax_type to
edit_load_syntax().
* edit/syntax.c (edit_read_syntax_file): Dynamically allocate and fill
syntax list pnames.
* edit/syntax.c (edit_load_syntax): Use char*** for syntax list.
* src/wtools.h: #include "widget.h" and remove redundant declarations
of Dlg_head and WListbox.
2005-07-24 13:37:58 +00:00
Roland Illig
be3ab1a3e0
* view.c: When saving and loading the file position, use the
...
full pathname instead of the one passed as argument.
2005-07-23 08:20:58 +00:00
Roland Illig
2bf2f0c38d
* util.c (save_file_position): Only save the position if not
...
at the beginning of the file (1;0).
2005-07-23 08:20:03 +00:00
Roland Illig
df1477f1ec
Fixed wrong comparison of the result of iconv().
2005-07-22 23:21:45 +00:00
Roland Illig
c22e826761
Updated German translation.
2005-07-22 21:16:50 +00:00
Roland Illig
6e318ab041
* help.c: Fixed shadowing warnings from gcc.
2005-07-22 09:29:50 +00:00
Roland Illig
7b0f17ad6a
fixed a bug that had been introduced by
...
me, when replacing Dlg_head * with void *.
2005-07-22 09:01:04 +00:00
Roland Illig
390f69bc30
* help.c: Fixed an invalid memory access, which has been noted
...
by Vitja Makarov.
2005-07-22 08:41:45 +00:00
Roland Illig
37ffcf9ae7
* ext.c: Fixed a typo which has been noted by Arpad Biro.
2005-07-22 07:27:01 +00:00
Roland Illig
1c8c676c76
* key.c: When the command line option -x is given, enable
...
additional key sequences that are typical for xterms.
* main.c: First parse command line arguments, then initialize
key sequences.
2005-07-20 20:29:08 +00:00
Roland Illig
3abff48000
* util.c: Added gettext_ui(), which translates a string and
...
strips everything before the first '|' character. This function
is used to translate special elements of the user interface,
like ButtonBar labels.
* util.h: Likewise.
* view.c: Using the new gettext_ui() function.
2005-07-20 15:39:47 +00:00
Roland Illig
77b5978cf1
Removed unused macros mc_mmap and mc_munmap.
2005-07-18 13:21:50 +00:00
Roland Illig
6d3226c4e7
* util.c: Added ascii_alpha_to_cntrl(), which converts 'x' to
...
^X. Useful for entering control characters literally.
* util.h: Likewise.
* widget.c: Use that function after C-q.
2005-07-18 09:31:37 +00:00
Roland Illig
ace71736b8
* view.c: The viewer can remember the last file position and
...
restore it, like the editor. This fixes Savannah bug #13734 .
* view.h: Likewise.
* setup.c: Likewise.
2005-07-18 08:47:45 +00:00
Roland Illig
ecfbe13fa3
AC_CHECK_TYPES([mode_t off_t pid_t socklen_t uid_t nlink_t],,,
2005-07-14 06:31:29 +00:00
Roland Illig
de5d9b1d40
* view.c: Always call display() before close_error_pipe() to make
...
sure the screen looks nice.
http://mail.gnome.org/archives/mc-devel/2005-July/msg00194.html
2005-07-13 21:30:28 +00:00
Roland Illig
fae0cabfc6
* view.c (view_hexedit_save_changes): Use the VFS file functions
...
instead of the native ones. This makes it possible to edit
remote files using the hex editor.
2005-07-12 07:22:49 +00:00
Roland Illig
c61ea2f1c4
Removed leading underscores from variable names.
2005-07-12 07:01:47 +00:00
Roland Illig
8d475c4c35
* view.c: Added some paragraph comments. Changed some literal
...
expressions (e.g. 0 => '\0', 0 => NULL). Fixed indentation.
2005-07-12 06:04:38 +00:00
Roland Illig
9f62ed703a
Changed three one-line comments to one multi-line comment.
2005-07-11 08:17:38 +00:00
Roland Illig
5d5afede78
(view_display_ruler): Reduced code size by declaring a string literal as
...
"static". (view_display_hex): Added a FIXME concerning screen overflow.
2005-07-11 08:14:44 +00:00
Roland Illig
8bbf0d25fe
* view.c (view_update_bytes_per_line): Use a local variable to
...
do the computation. Update view->bytes_per_line only once, after
all computations have finished.
2005-07-11 07:39:04 +00:00
Roland Illig
35b218fc69
(view_move_down): Brought to cursor-normal-form.
2005-07-11 07:26:31 +00:00
Leonard den Ottolander
1bf69bc163
info.c (info_show_info): Properly calculate the length of the line drawn
...
by hline().
2005-07-10 08:46:54 +00:00
Roland Illig
b8969ae3df
* view.c (view_ccache_find): Replaced the linear search with a
...
binary search. This speeds up the viewer by a factor of 25 for
large files (> 100 MB).
2005-07-07 22:34:31 +00:00
Roland Illig
ca15b965d6
Added to result-equivalent functions for view_ccache_find_linear_down().
...
All three work, but view_ccache_find_binary() is the fastest of all. So
the other ones will be removed in the next revision. This revision is
mainly for the records.
2005-07-07 22:30:56 +00:00
Roland Illig
0072aeb2e5
Provided multiple versions of view_ccache_find(), which can be selected by
...
defining C preprocessor symbols.
2005-07-07 21:46:01 +00:00
Roland Illig
bc446f0cee
* dialog.h: Replaced object-like macros with implicit references
...
to an identifier ``h'' with function-like macros. Adjusted all
users.
* dialog.c: Likewise.
* find.c: Likewise.
* tree.c: Likewise.
* widget.c: Likewise.
* widget.c (widget_selectcolor): New function that selects a
color among DLG_{HOT_,}{FOCUS,NORMAL}C.
2005-07-07 19:34:55 +00:00
Roland Illig
0c2b595997
* view.c (view_display_text): Fixed handling of tabulators.
2005-07-07 18:38:12 +00:00
Roland Illig
4fc6e727e7
Fixed the special handling of nroff character sequences at the beginning of
...
the screen. Removed the wrong comment. Only advance behind the backspace
character and display the rest of the nroff sequence.
2005-07-07 18:06:57 +00:00
Roland Illig
4d7a3f6779
* view.c (view_compute_areas, view_percent, view_display_status,
...
view_display_ruler): Fixed screen overflow bugs.
2005-07-07 17:49:01 +00:00
Roland Illig
bcf9978ee8
* view.c (view_update_bytes_per_line): Fixed integer overflow
...
bug.
2005-07-07 17:09:59 +00:00
Roland Illig
00fcae9141
* view.c: view_display_status() is called inside display().
2005-07-07 17:03:25 +00:00
Roland Illig
c4d669162a
* view.c (view_status): Renamed to view_display_status().
2005-07-07 16:59:31 +00:00
Roland Illig
cecafaab0b
* view.c (view_compute_areas): Fixed a bug noted by Pavel
...
Tsekov. The coordinates are now relative to the Widget, as they
should be.
2005-07-07 16:48:55 +00:00
Roland Illig
338c32c400
Added an assertion to offset_rounddown to make sure that b != 0.
2005-07-06 22:35:17 +00:00
Roland Illig
e3176f640e
Use the correct coodinates for displaying the percentage in the status line.
2005-07-06 19:36:59 +00:00
Roland Illig
0785232a60
* view.c: Changed some variables from int to screen_dimen.
...
Instead of relying on each of the view_display_* functions to
compute the correct coordinates they are managed using the new
function view_compute_areas(). In the view_display_* functions,
all calculations are done 0-based; before, the calculation had
involved the relative position of the area. Removed "static"
variables from view_status(). Simplified view_display_clean().
2005-07-06 19:12:25 +00:00
Roland Illig
4150000223
Removed the #include directive for "ecs.h", as this file is not yet in HEAD.
2005-07-06 15:38:43 +00:00
Leonard den Ottolander
674dac483d
complete.c: Fix autocompletion for single possible path when "complete
...
show all" is set.
2005-07-06 11:16:08 +00:00
Roland Illig
148f56adcd
* textconf.c: mc --version prints the size of commonly used data
...
types.
2005-07-05 20:57:38 +00:00
Roland Illig
db1e5ef53c
Added an "inline" specifier to str_unconst_inlined.
2005-07-05 20:50:02 +00:00
Roland Illig
a041ed48a9
Removed unused local variable.
2005-07-05 20:31:18 +00:00
Roland Illig
a1db50305e
* chmod.c: Changed all references to umode_t into mode_t.
2005-07-05 20:14:15 +00:00
Roland Illig
9f55376746
* view.c (view_load): Don't try to use fcntl() with VFS file
...
handles. That cannot work.
2005-07-05 19:19:17 +00:00
Roland Illig
e3b7168498
* achown.c: Changed all references to umode_t into mode_t.
...
* file.c: Likewise.
2005-07-05 18:18:36 +00:00
Roland Illig
96223eace4
Replaced 8 space characters with one tab for indentation.
2005-07-03 15:31:55 +00:00
Roland Illig
aac7b35bfc
The value of b is unused in view_set_byte().
2005-07-03 14:01:25 +00:00
Roland Illig
c3f40d150f
* textconf.c: mc --version prints the number of bits of off_t.
2005-07-03 11:37:28 +00:00
Roland Illig
1ee7a7c31f
* view.c (view_fix_cursor_position): Fixed a division-by-zero
...
bug, which had been reported by Dirk Jagdmann and Pavel Tsekov.
Pavel also tracked down the bug.
2005-07-01 20:48:29 +00:00
Roland Illig
1440266805
Fixed a typo: DS_VFS_FILE => DS_FILE.
2005-06-30 23:16:14 +00:00
Roland Illig
6e5508ef14
* global.h: Don't use MC_ENABLE_DEBUGGING_CODE to decide whether
...
to enable or disable assertions. Just use the default value.
2005-06-30 23:12:08 +00:00
Roland Illig
7f25b3154b
Added some more assertions to check whether bytes_per_line is really != 0.
2005-06-30 22:58:52 +00:00
Roland Illig
1918157719
* view.c (view_growbuf_load_until): Check the datasource in the
...
right place. (get_byte_growing_buffer): Removed an unnecessary
assertion. (view_file_load_data): Make sure the right datasource
is selected. (view_set_byte): This function is only expected to
be called when datasource == DS_FILE. Removed unused code.
2005-06-30 22:50:30 +00:00
Roland Illig
b27499f6da
* ext.c (get_file_type_local): Redirect error messages from
...
file(1) to /dev/null.
2005-06-28 13:55:33 +00:00
Roland Illig
dfbc2522aa
* view.c (display): Splitted up into view_display_hex() and
...
view_display_text().
2005-06-28 13:21:42 +00:00
Roland Illig
868c55faa6
* view.c (display): Changed return type to void.
2005-06-28 13:02:09 +00:00
Roland Illig
a095bce5ee
(do_regexp_search): Removed unnecessary type cast.
...
(do_normal_search): Likewise.
2005-06-28 12:28:35 +00:00
Roland Illig
6fdbaf90a0
* view.c (normal_search): Replaced with normal_search_cmd().
2005-06-28 12:25:34 +00:00
Roland Illig
bb8946d3e2
Removed misleading comment for view_load_command_output().
2005-06-28 12:16:17 +00:00
Roland Illig
9c27d4c71f
Removed unused variable.
2005-06-28 12:15:05 +00:00
Roland Illig
48b81cf616
* view.c: Simplified error handling when loading files.
2005-06-28 12:13:37 +00:00
Roland Illig
cf9ca5b46b
* view.c: Eliminated the need for function pointer casts.
2005-06-27 23:19:32 +00:00
Roland Illig
00261c30de
* view.c: Renamed view_quit to want_to_quit and changed its type
...
to gboolean.
2005-06-27 22:38:03 +00:00
Roland Illig
fe50acadd4
Some more inline functions ...
2005-06-27 22:36:00 +00:00
Roland Illig
bb142400e1
* view.c: Massive speed-ups by reordering statements and declaring
...
functions as inline.
2005-06-27 22:11:55 +00:00
Roland Illig
d991a41c9f
(coord_cache_entry_less): Another speed-up by declaring the
...
function as inline.
2005-06-27 21:37:51 +00:00
Roland Illig
1300633147
* view.c (is_nroff_sequence): Reordered the statements to gain
...
a speed-off of 30 percent on a 10 MB file.
2005-06-27 21:34:36 +00:00
Leonard den Ottolander
f10fe35005
* main.[ch], user.c: Fixed a double free in mc_maybe_editor_or_viewer().
...
Restructured setup_dummy_mc() and expand_format() accordingly.
2005-06-22 21:38:52 +00:00
Pavel Roskin
d093a4024c
* view.c (view_percent): Remove unused variable.
2005-06-21 19:44:28 +00:00
Roland Illig
62d358bdc1
Took my "opinion" out of the ChangeLog message from Jun 14.
2005-06-16 21:19:37 +00:00
Roland Illig
9711666a53
* view.c (view_get_filesize_with_exact): Removed. I didn't like
...
the name. Replaced with a new function view_may_still_grow().
2005-06-14 14:13:11 +00:00
Roland Illig
c534a510c7
* view.c: Fixed an integer wraparound bug.
2005-06-14 13:34:41 +00:00
Roland Illig
0979ed9626
Changed the name of the multiple-inclusion guard.
2005-06-14 13:14:49 +00:00
Roland Illig
3bac3bdf53
Removed misleading comment.
2005-06-14 13:07:12 +00:00
Roland Illig
6bf747eccf
* widget.h (struct WButtonBar): Moved into widget.c.
...
* widget.c (struct WButtonBar): Moved from widget.h.
* boxes.c: Don't dereference WButtonBar.
* help.c: Likewise.
* layout.c: Likewise.
* view.c: Likewise.
2005-06-14 13:02:30 +00:00
Roland Illig
468ab7a3cd
* widget.c: Added code to handle multiple types of functions for
...
commands.
* widget.h: Likewise.
2005-06-14 12:11:38 +00:00
Roland Illig
27ef4ba453
* help.c: Use buttonbar_clear_label().
...
* tree.c: Likewise.
2005-06-14 11:34:28 +00:00
Roland Illig
160686b6a8
void
...
buttonbar_clear_label (Dlg_head *h, int idx)
{
WButtonBar *bb = find_buttonbar (h);
if (!bb)
return;
set_label_text (bb, idx, "");
bb->labels[idx - 1].tag = BBFUNC_NONE;
}
2005-06-14 11:30:26 +00:00
Roland Illig
9d8e5504e2
* achown.c (advanced_chown_callback): Swapped the arguments of a
...
recursive function call -- the types didn't match.
2005-06-14 10:26:06 +00:00
Roland Illig
c4c1c12432
* util.h (free_after): Moved to vfs/smbfs.c, as this is the only
...
place where it is used. This is necessary because the SunPro
compiler creates external references even for functions that are
only referred to in unused inline functions.
2005-06-08 00:23:44 +00:00
Leonard den Ottolander
f5dabea2a6
main.c: Also match tabs as empty command.
2005-06-07 20:55:13 +00:00
Roland Illig
6edc2743db
* command.c (command_callback): Fixed gcc warning about
...
incompatible pointer types.
2005-06-07 14:16:19 +00:00
Andrew V. Samoilov
7a0f4c45ef
* subshell.c (exit_subshell): Do not blindly perform cleanup.
2005-06-07 09:05:09 +00:00