Some patches

Roland Illig roland.illig at gmx.de
Tue Sep 28 09:42:47 UTC 2004


Hi,

I have banned me from doing any CVS commits for one week to let you all 
calm down from the stressful last month with me. I think I can take that 
promise, but I need some help from you. Please review these patches and 
commit them if you like.

The patch for src/slint.c let's me build mc with the option 
--with-screen=slang. For any reason the Debian-unstable SLang library 
does not contain the symbol _SLsys_input_pending, but it contains 
SLang_input_pending, so the patch adjusts the function call. I also use 
the included ../slang/include/_slang.h file instead of declaring the 
variables and functions again, just for consistency.

$ objdump -T /lib/libslang.so.1.4.9 | grep _input_
000224b0 g    DF .text  00000063  SLANG_1.4.9 SLang_input_pending

The "named constant" patch replaces literal -1 with INVALID_OFFSET where 
appropriate. I am not sure if the one line where INT_MAX is replaced 
with INVALID_OFFSET is really correct. Please check.

The patch for src/file.c fixes the prototypes for some functions when mc 
is configured --without-largefile.

Roland
-------------- next part --------------
A non-text attachment was scrubbed...
Name: src_slint_c-debian-fix.patch
Type: text/x-patch
Size: 2128 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20040928/30857785/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mcview_named-constant.patch
Type: text/x-patch
Size: 2565 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20040928/30857785/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mc_src_file_c-prototypes.patch
Type: text/x-patch
Size: 1170 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20040928/30857785/attachment-0002.bin>


More information about the mc-devel mailing list