Commit Graph

6700 Commits

Author SHA1 Message Date
Leonard den Ottolander
6108289e48 Catch Makefiles with capitals in extension. 2005-04-14 21:34:13 +00:00
Roland Illig
081dd56e8c * layout.c: Followed the renaming of view_init() to view_load().
* view.h: Likewise.
2005-04-14 18:24:02 +00:00
Roland Illig
14a8919772 * util.h (str_unconst): Added a conditional INLINE_STR_UNCONST
that makes str_unconst() an inline function.
2005-04-14 18:16:04 +00:00
Roland Illig
3db06a9dd2 * view.c (struct WView): Renamed ds_file_size to ds_file_filesize,
to avoid confusion with ds_file_datasize.
2005-04-14 11:31:05 +00:00
Roland Illig
b3913aa39f * view.c (struct WView): Renamed growing_buffer to growbuf_in_use,
blocks to growbuf_blocks, block_ptr to growbuf_blockptr.
2005-04-14 11:27:13 +00:00
Roland Illig
a44dbeab65 * view.c (struct WView): Renamed wrap_mode to text_wrap_mode, as
it only applies to the text viewer.
2005-04-14 11:14:42 +00:00
Roland Illig
c2c7cfe647 * view.c (struct WView): Renamed viewer_magic_flag to magic_mode. 2005-04-14 11:12:01 +00:00
Roland Illig
fe6cf255d2 * view.c (struct WView): Moved hexedit_mode into the "Editor
modes" section.
2005-04-14 11:08:25 +00:00
Roland Illig
4dcd4b8da2 * view.c (struct WView): Renamed viewer_nroff_flag to
text_nroff_mode.
2005-04-14 11:06:12 +00:00
Roland Illig
2b41552c06 * view.c (struct WView): Changed the type of hex_mode to gboolean.
Fixed one non-boolean operation in toggle_wrap_mode().
2005-04-14 11:02:21 +00:00
Roland Illig
f468578ff7 * view.c (struct WView): Renamed hexedit_text to hexview_in_text. 2005-04-14 10:59:02 +00:00
Roland Illig
c1860072d7 * view.c (struct WView): Removed the "first" field, as it was
always 0.
2005-04-14 09:18:28 +00:00
Roland Illig
366dc2ce75 * view.c: Removed the "file monitor" feature (tail -f). It has
not been working since at least mc-4.6.0.
2005-04-14 09:09:34 +00:00
Roland Illig
bea9efb0f2 * view.c (view_new): Don't use view_init_growbuf, as this function
also activates it. Rather set view->growing_buffer = FALSE.
2005-04-14 08:35:56 +00:00
Roland Illig
d994002e5f * view.c (struct WView): Removed the view_active field. It was
practically equivalent to view->datasource != DS_NONE.
	* view.c (do_view_init): Renamed to view_load().
	* view.c (view_new): Every field of the WView is initialized
	explicitly.
2005-04-14 08:00:14 +00:00
Roland Illig
d2de14cf4e * HACKING: Updated the part concerning const_cast, str_unconst and
the NULL pointer in varargs.
2005-04-14 01:27:12 +00:00
Roland Illig
2229354f3d * AUTHORS: Added myself. 2005-04-14 01:17:28 +00:00
Roland Illig
adaa78022f * doc/mc.1.in (Internal File Viewer): Rewrote some documentation.
Removed the paragraph about the growing buffers. It's generally
	uninteresting to users.
2005-04-14 01:15:36 +00:00
Roland Illig
502309b4fa * view.c (view_get_datalines): Using the STATUS_LINE constant.
* view.c (display): Using the OFFSETTYPE_PRIX constant to print
	an offset_type in uppercase hex letters.
2005-04-14 00:59:33 +00:00
Roland Illig
d3bf9a489f * view.c (display): Fixed a bug that I introduced some hours ago.
* view.c (view_move_forward2): Rewrote the hexmode algorithm to
	get rid of the ?: operators. Introduced some variables with names
	that better fit their actual use. Fixed a bug that appeared when
	scrolling down by single lines in framed (panel) mode.
2005-04-14 00:43:34 +00:00
Roland Illig
9eff3cef04 * view.c (view_move_forward2): Backed out my last changes. The old
code worked better. :)
2005-04-14 00:18:35 +00:00
Roland Illig
ac03019408 * view.c (view_move_forward2): Added missing declaration. 2005-04-13 22:21:13 +00:00
Roland Illig
e65531ce4e * view.c: Reformatted the header comment. 2005-04-13 22:19:52 +00:00
Roland Illig
0b2f50aad4 * view.c (view_move_forward2): Simplified the code.
* view.c (get_byte_growing_buffer): Added bounds checking.
2005-04-13 22:18:04 +00:00
Roland Illig
ca1fc0467d * view.c (view_handle_editkey): Simplified the code. 2005-04-13 21:34:57 +00:00
Roland Illig
1a26500862 * view.c (struct WView): Removed the last_byte field, because it
got too complex maintaining it together with the new datasource
	framework. The function view_get_filesize() now takes its place.
	Corrected the type of the growing buffer to unsigned char. Added
	a field growbuf_finished to indicate when all data has been read.
	* view.c (view_move_cursor_to_eol): Renamed to
	view_hexview_move_to_eol().
	* view.c (view_get_filesize): Added.
	* view.c (view_get_filesize_with_exact): Added.
	* view.c (get_byte_indexed): get_byte with bounds checking.
	* view.c (view_growbuf_read_until): Closes the datasource after
	reading has finished.
	* view.c (view_percent): The percentage is only shown when its
	exact value can be computed.
	* view.c (view_status): The [grow] field has been removed from
	the status line. Instead, the filesize is reported as ">= n"
	bytes.
	* view.c (count_backspaces): Added a bounds check.
	* view.c (display): Using get_byte_indexed instead of get_byte.
	* view.c (move_forward2): Renamed to view_move_forward2 because
	of the equally-named function in src/help.c. Replaced the
	algorithm for the hexview mode by a much simpler version. Now
	we have 5 ?: operators less than before.
	* view.c (get_bottom_first): Added bounds checking.
	* view.c (move_right): Simplified the code.
	* view.c (goto_addr): Fixed an off-by-one error.
	* view.c (view_close_datasource): For the growing buffer cases,
	check if the datasource has already been closed before.
2005-04-13 21:09:00 +00:00
Roland Illig
526bf72983 * vfs.h: Fixed prototypes for mc_read() and mc_write(). Now they
get void * instead of char *.
	* vfs.c: Likewise.
2005-04-13 19:08:13 +00:00
Roland Illig
a3a1e26210 * util.h (str_unconst): Provide a replacement for the const_cast
macro from global.h.
	* util.c (str_unconst): Likewise.
2005-04-13 18:47:12 +00:00
Roland Illig
d34c405387 * configure.ac: Add -DNDEBUG to CPPFLAGS if the maintainer mode
is not enabled.
2005-04-13 18:39:15 +00:00
Pavel Roskin
b7bf48f281 Update from Vaidrius Petrauskas <vaidrius@delfi.lt> 2005-04-12 00:19:58 +00:00
Roland Illig
1de14a2502 Fixed a typo (nice_value => mc_nice_value). 2005-04-09 09:11:49 +00:00
Roland Illig
293d35daf0 * view.c: Removed mmap(2) support. Now regular files are
accessed using mc_read(). Added a framework for datasources.
	Introduced assertions. Removed some variables (e.g. view->data)
	that were used for many things simultaneously.
2005-04-07 11:23:53 +00:00
Roland Illig
5185abce21 * dialog.h: Removed a comma at the end of an enumeration, because
ANSI does not permit it.
2005-04-07 07:39:09 +00:00
Roland Illig
e64958776a * x11conn.c (x_io_error_handler): Close the X11 connection when
a protocol error occurs. Otherwise the X11 connection is held
	open, which may keep ssh from closing the connection.
2005-04-06 18:04:43 +00:00
Pavel Roskin
c5a443ca87 Move all development from /usr/src to $HOME/src.
Use lsb-rpm to make an LSB compatible package.
Force included S-Lang to avoid dependency problems.
2005-03-31 17:53:07 +00:00
Pavel Roskin
c1c8fb19f4 Comment out build dependencies - they are too distribution specific. 2005-03-31 17:48:12 +00:00
Andrew V. Samoilov
4cc677124a * extfs/uarj.in (mcarjfs_copyout): Use the regular extract command,
instead of redirecting all the output of the print (p) command.
2005-03-31 05:28:15 +00:00
Andrew V. Samoilov
28c940b71e Typo fix. 2005-03-29 15:22:33 +00:00
Andrew V. Samoilov
cef3ce222a * samba/param/loadparm.c: Remove init_locals(), lp_smb_passwd_file(),
lp_passwd_program(), lp_passwd_chat(), lp_unix_password_sync(),
lp_max_open_files(), lp_shmem_size(), lp_lpqcachetime(),
lp_syslog(), lp_driverlocation().
(file_lists): Commented out.
(add_to_file_list): Comment out and make a do nothing macro.
2005-03-29 15:20:51 +00:00
Pavel Roskin
fc6e8e67f2 * cpio.c (cpio_find_head): Fix for logical error that can cause
crash on broken cpio archives.
2005-03-29 05:24:26 +00:00
Pavel Roskin
6a821c30cf Update from Vaidrius Petrauskas <vaidrius@delfi.lt> 2005-03-29 04:50:07 +00:00
Pavel Roskin
417ca2ab1f * screen.c (chdir_other_panel): When used on a file entry, move
selection on the inactive panel to select the entry for the
current directory on the active panel.
2005-03-29 04:47:16 +00:00
Andrew V. Samoilov
1bee4012b1 * keyxdef.c: Constify struct qnx_key_define_s typedef.
* key.c (get_modifier): Fixed dynamic loading of the Photon library for
        shift keys, only current version of libph used now.
        (qansi_key_defines): Swapped Gray '-' and '+' codes definitions, due to
        fixed bugs in the QNX6's console driver.
2005-03-25 09:38:24 +00:00
Andrew V. Samoilov
a75d81b3c2 * util.c (load_file_position): Fix mcedit position save bug. Read a
number after ';'.
2005-03-23 05:29:06 +00:00
Pavel Roskin
504faf19d4 * key.c (init_key): Load xterm_key_defines for terminals with
names starting with "rxvt".
2005-03-21 20:27:55 +00:00
Pavel Roskin
bda4ef1f88 Add mc.qpg 2005-03-19 23:23:48 +00:00
Pavel Roskin
a4cf54d41c * acinclude.m4 (MC_WITH_SLANG): Partly restore original order of
checks and add a comment with a warning.
From Pavel S. Shirshov <me@pavelsh.pp.ru>
2005-03-19 21:53:24 +00:00
Pavel Roskin
21cc7b340f * slint.c: Don't use private S-Lang functions if they are
unavailable.
2005-03-19 19:31:23 +00:00
Pavel Roskin
d89c5eb128 * acinclude.m4 (MC_WITH_SLANG): Reorder checks. Move termcap
checks ...
(MC_SLANG_TERMCAP): ... here.
(MC_SLANG_PRIVATE): Check if private functions are available.
It's not the case on Debian unstable.
2005-03-19 19:16:35 +00:00
Andrew V. Samoilov
a1781bc719 * sldisply.c (SLtt_initialize): Fix typo. Change Is_Bg_BGR,
not Is_Fg_BGR.
2005-03-19 18:15:17 +00:00