Andrew Borodin
acdac76a49
Revert "Try fix of compile warnings about assigned but unused variables"
...
This reverts commit 6505f7d6fa
.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-18 12:03:31 +04:00
Slava Zanko
94bd4b1f78
Code indentation.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-07-17 17:04:05 +04:00
Slava Zanko
6505f7d6fa
Try fix of compile warnings about assigned but unused variables
...
...as returned values of functions declared with attribute
warn_unused_result [-Wunused-result].
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-07-17 17:04:05 +04:00
Slava Zanko
8562a215be
Code refactoring: removed concat_dir_and_file() function.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:30 +03:00
Slava Zanko
0138645541
Ticket 1551: Update GPL version from 2 to 3
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-18 14:08:34 +03:00
Slava Zanko
a1e34b8dfa
Code cleanup after runing splint on src/main.c file
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-17 13:30:03 +03:00
Slava Zanko
6016620f42
Remove backlinks from lib to src - move global variables(used in lib) to mc_global structure (see lib/global.c)
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:50 +02:00
Slava Zanko
bbf1f4e857
Moved filemanager-related stuff to src/filemanager directory
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:32 +03:00
Andrew Borodin
8d1708225c
Don't include lib/util.h via lib/global.h.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:30 +03:00
Slava Zanko
c2754de8aa
Code indentation in src directory
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:27:46 +03:00
Slava Zanko
feb733663f
Code indentation in lib directory
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:27:20 +03:00
Slava Zanko
3a1e0966ae
Final Indentation of all touched files
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-05-04 17:34:21 +03:00
Slava Zanko
35dae723ee
Changes into src directory:
...
* src/background.c:
* handling read() errors in background_attention()
* handling IO errors in parent_call_string()
* ignoring IO errors in background_attention()
* ignoring write() errors in parent_call_header()
* ignore IO errors in parent_call()
* src/cons.saver.c:
* handling IO errors in show_console_contents_linux()
* handling IO errors in handle_console_linux()
* src/file.c: handling mc_chdir() errors in panel_operate
* src/find.c: ignoring errors on chdir() call
* src/main.c:
* ignoring errors on last write()'s in main()
* ignoring mc_chdir() errors in setup_dummy_mc()
* ignoring mc_chdir() errors in translated_mc_chdir()
* src/panelize.c: ignoring errors on chdir() call
* src/screen.c:
* ignoring mc_chdir() errors in panel_new_with_dir()
* ignoring mc_chdir() errors in reload_panelized()
* ignoring mc_chdir() errors in update_panels()
* src/subshell.c: ignoring errors on chdir() call
* src/tree.c: ignoring mc_chdir() errors in tree_rescan()
* src/treestore.c: handling read errors in tree_store_load_from()
* src/widget.c: handling mc_write() errors in save_text_to_clip_file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-05-04 17:34:20 +03:00
Slava Zanko
862652bd1b
Move src/cons.saver into src/consaver/* subdir
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:26 +02:00
Slava Zanko
25155c311a
Move all interface includes from subdirs lib/*/*.h into lib/*.h
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:25 +02:00
Slava Zanko
93dbc46e9c
Reorganization of sources. Part 1.
...
* moved src/global.h into lib/global.h
* moved glibcompat.[ch] from ./src/ into ./lib/
* moved fs.h from ./src/ into ./lib/
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:23 +02:00
Slava Zanko
39d5b94cac
Reorganized pathes to files in '#include' directives
2010-01-26 10:30:22 +02:00
Slava Zanko
ddb9ada2e8
Changes in sources matched with mass movement of $(srcdir)/src/*/ into $(srcdir)/lib/*/
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:22 +02:00
Andrew Borodin
dc604d811a
The check result of g_new(), g_new0(), g_malloc(), g_malloc0() and g_realloc() is useless.
...
g_new(), g_new0(), g_malloc(), g_malloc0() and g_realloc() functions
never return NULL and call abort() on fail. So check result of these
functions is useless. g_try_new(), g_try_new0(), g_try_malloc(),
g_try_malloc0() and g_try_realloc() functions are used instead.
Some minor optimization and code formatting are also performed.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-12-16 11:10:43 +02:00
Slava Zanko
981fe001d1
Base support of skins.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-18 11:49:44 +03:00
Andrew Borodin
30fd7fc34a
TTY: modified line drawing.
2009-08-12 21:23:13 +04:00
Andrew Borodin
86f77f3cb2
New functions.
...
tty_touch_screen() is used instead of touchwin() function or macro.
tty_set_normal_attrs() is used instead of standend() function or macro.
tty_set_alt_charset() is used instead of acs() and noacs()
functions or macros.
tty_baudrate() is used instead of baudrate() function or macro.
2009-08-12 21:23:12 +04:00
Andrew Borodin
fe1adb5f27
tty_print_char() function is used instead of addch() one.
...
Modified tty_print_char() function for S-Lang library to use it
instead of addch().
2009-08-12 21:23:12 +04:00
Andrew Borodin
ebbf6fbcdc
Replaced functions.
...
attrset() -> tty_setcolor()
move() -> tty_gotoyx()
getyx() -> tty_getyx()
2009-08-12 21:19:20 +04:00
Andrew Borodin
f3730bdc41
Initial step to move TTY layer of MC to separate library.
2009-08-12 21:19:20 +04:00
Enrico Weigelt, metux IT service
c7d04dd47a
fixed several missing #include's
2009-06-18 21:02:29 +04:00
Mikhail S. Pobolovets
08469a001e
Some fixups with wrongly highlighted words
...
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-02-10 16:07:59 +02: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
3b8f37b99e
Moved some functions out of mhl into src/util.c
...
This commit moves the mhl_str_concat_dir_and_file back into src/util.c whitout changing atm the functionality.
Please note that this is an incomplete fix and needs to be partially enhanced in order to keep the full functionality with glib.
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-06 11:17:03 +01:00
Patrick Winnertz
1c287d798d
First bunch of mhl_mem_free removal patches
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:36:58 +01:00
Enrico Weigelt, metux IT service
8b38cf44da
manully merged 227_replace_g_free
2009-02-02 22:34:05 +01:00
Enrico Weigelt, metux IT service
54d6ec88dc
replaced buggy concat_dir_and_file() by mhl_str_dir_plus_file()
2009-01-31 16:51:58 +01:00
Enrico Weigelt, metux IT service
15d7d47c15
replaced g_free() by mhl_mem_free()
2009-01-30 19:28:35 +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
Leonard den Ottolander
85e87b2cdf
* cons.handler.c (handle_console_linux): Remove redundant close() calls
...
before _exit().
2006-04-13 16:00:23 +00:00
Pavel Roskin
9b774d1b7d
* Makefile.am: Rename LIBDIR to SAVERDIR to avoid confusion.
...
Change its value to match the installation path of cons.saver.
* cons.handler.c: Adjust for the above.
2006-01-30 20:08:28 +00:00
Pavel Roskin
1f60f44145
Update postal address of Free Software Foundation.
2005-05-27 03:35:10 +00:00
Roland Illig
6407873f69
* cons.handler.c: Marked unused parameters.
...
* dir.c: Likewise.
* find.c: Likewise.
* help.c: Likewise.
* layout.c: Likewise.
* mountlist.c: Likewise.
* popt.c: Likewise.
* poptconfig.c: Likewise.
* popthelp.c: Likewise.
* regex.c: Likewise.
* subshell.c: Likewise.
* tree.c: Likewise.
* util.c: Likewise.
* utilunix.c: Likewise.
* widget.c: Likewise.
* wtools.c: Likewise.
2005-02-08 22:33:52 +00:00
Roland Illig
fc85bdba7e
* *.c: Reordered header inclusion.
2005-02-08 09:04:03 +00:00
Roland Illig
e0f5d6e37f
* cons.handler.c (handle_console_linux): Replaced NULL with
...
(char *) NULL in call to execl.
* subshell.c (init_subshell_child): Likewise.
* utilunix.c (my_system): Likewise.
From patches from the OpenBSD ports collection.
2004-09-24 14:02:39 +00:00
Pavel Roskin
5b2bd08768
* configure.in: Remove test for SCO UNIX. Remove all references
...
to SCO_FLAVOR everywhere. SCO flavor is rather unsavory now.
2003-06-18 04:47:17 +00:00
Andrew V. Samoilov
8384e94b0b
* cons.handler.c (set_attr) [__FreeBSD__]: Fix compilation.
...
Reported by Dmitry Alexeyev <dmi_a@qnx.org.ru>.
2003-03-22 17:27:21 +00:00
Andrew V. Samoilov
8e810942f8
* cons.handler.c (set_attr) [__FreeBSD__]: Eliminate cmd array.
2003-03-05 19:38:50 +00:00
Pavel Roskin
818b4956ea
* cons.handler.c (console_init) [__FreeBSD__]: Fix the amount of
...
allocated memory.
(console_save) [__FreeBSD__]: Doen't exit on error, just return.
2003-03-05 17:52:58 +00:00
Pavel Roskin
7092f9e1e2
* cons.handler.c (show_console_contents_freebsd): Rewrite
...
to use screen library (S-Lang or ncurses). Direct output is
unreliable when the screen library is active.
2003-03-05 09:29:31 +00:00
Pavel Roskin
6b986e7547
Don't include main.h - it's not needed.
2003-02-27 05:01:40 +00:00
Pavel Roskin
e65f20852b
* cons.handler.c: Put checks for rxvt extensions in one place.
...
Simplify FreeBSD code.
2003-02-27 04:57:58 +00:00
Pavel Roskin
a8a0f0c17a
* cons.handler.c: Add implementation for FreeBSD 4.x and 5.x.
2003-02-26 19:14:52 +00:00
Pavel Roskin
c785d4195b
* global.h: Move fcntl.h inclusion here. Define O_BINARY.
...
* mountlist.c: Remove more includes already handled in global.h.
2002-09-23 06:43:22 +00:00
Pavel Roskin
6979a9fddf
* Makefile.am: Rename LIBDIR to DATADIR, since it refers to
...
pkgdatadir now. Install cons.saver to pkglibdir, pass it to the
compiler as LIBDIR.
* cons.handler.c (handle_console): Use LIBDIR.
* main.c (OS_Setup): Use DATADIR instead of LIBDIR. Rename
MC_LIBDIR to MC_DATADIR.
2002-09-22 00:13:32 +00:00