Commit Graph

400 Commits

Author SHA1 Message Date
Thiago de Arruda
d9914a038a Remove mch_call_shell GUI printing code
This isn't needed right now because spawned shells will inherit stdout by
default
2014-04-03 12:08:26 -03:00
Thiago de Arruda
3fcff30d9a Remove :shell and suspend_shell
Issue #450 contains more details
2014-04-03 12:06:50 -03:00
Thiago de Arruda
b336eb46f0 Remove support for running interactive programs
This removes `mch_call_shell` code for feeding programs interactively. The
removed code was supporting interactive programs in the old GUI, but right now
we only have a terminal UI.

The code is currently safe to remove because interactive programs will just
simply take control of the terminal in cooked mode.
2014-04-03 11:59:27 -03:00
Thomas Wienecke
bfa4490aac Rename FPC_* constants. 2014-04-03 10:32:41 -03:00
Thomas Wienecke
c454030478 Initialize on declaration; use postincrements. 2014-04-03 10:32:41 -03:00
Thomas Wienecke
865e3280a8 Fix seperator->separator, path_tail_with_separator->path_tail_with_sep. 2014-04-03 10:32:41 -03:00
Thomas Wienecke
955d6a2949 Test and refactor getnextcomp -> path_next_component. 2014-04-03 10:32:41 -03:00
Thomas Wienecke
7021b970b9 Test and refactor gettail_sep -> path_tail_with_seperator. 2014-04-03 10:32:41 -03:00
Thomas Wienecke
77bfb6cd99 Test and refactor gettail -> path_tail. 2014-04-03 10:32:41 -03:00
Thomas Wienecke
6d712defa5 Refactor fullpathcmp -> path_full_compare. 2014-04-03 10:32:41 -03:00
Thomas Wienecke
81237af70e Add os_stat to os/fs module. 2014-04-03 10:32:41 -03:00
Thomas Wienecke
df78edbc92 Move gettail_dir more closely to its usage. 2014-04-03 10:32:41 -03:00
Thomas Wienecke
98b1f73c3f Make FPC_* defines an enum type in path.h. 2014-04-03 10:32:41 -03:00
Stefan Hoffmann
db92e0b094 added doxygen documentation for os_file_is_{readonly, writable} 2014-04-03 10:30:03 -03:00
Stefan Hoffmann
fa2b327e9a cleaned up the readonly check in readfile() 2014-04-03 10:30:03 -03:00
Stefan Hoffmann
5a2c9e123e remove mch_access macro as it is only used in fs.c 2014-04-03 10:30:03 -03:00
Stefan Hoffmann
f762a9e195 move filewritable() into /src/os/fs.c and rename it 2014-04-03 10:30:03 -03:00
Stefan Hoffmann
071d28076f move check_file_readonly() into /src/os/fs.c and rename it 2014-04-03 10:30:03 -03:00
Stefan Hoffmann
4a138137f7 check readonly by trying to open the file for writing...
instead of mch_access, to avoid a possible race condition
2014-04-03 10:30:03 -03:00
Thiago de Arruda
23ee78a093 Force travis build failure when some test fails 2014-04-03 10:21:56 -03:00
John Szakmeister
a3ec68ce1e Use check_symbol_exists() instead of check_function_exists().
This is mostly a revert of 477031c03b.
Now that we are not setting `CMAKE_C_FLAGS`, the check can work
correctly and it helps `pcc` (portable c compiler) make it further
along--though it still doesn't produce usable results (see #427 for the
details).
2014-04-03 04:32:27 -04:00
Justin M. Keyes
0895bf8828 vim-patch:7.4.166
Problem:   Auto-loading a function for code that won't be executed.
Solution:  Do not auto-load when evaluation is off. (Yasuhiro Matsumoto)

https://code.google.com/p/vim/source/detail?r=5d03c374712128077ac4c342aad02120ed98df70
2014-04-02 18:54:36 -03:00
oni-link
c298edd5dc Replace use of mch_rename with rename.
The macro mch_rename is no longer necessary, because C99 function rename
is always available.
2014-04-02 18:52:16 -03:00
oni-link
c30c9b275c remove HAVE_FCHDIR 2014-04-02 18:52:16 -03:00
oni-link
e9afd1cc28 remove HAVE_DL{OPEN, SYM} 2014-04-02 18:52:16 -03:00
oni-link
59f5c2251a remove HAVE_WCTYPE_H 2014-04-02 18:52:16 -03:00
oni-link
9d2975efad remove HAVE_WCHAR_H 2014-04-02 18:52:16 -03:00
oni-link
77433de0ca remove HAVE_USLEEP 2014-04-02 18:52:16 -03:00
oni-link
930be11334 remove HAVE_SYS_{POLL_H, RESOURCE_H, SYSCTL_H, TYPES_H} 2014-04-02 18:52:16 -03:00
oni-link
f2ce38481b remove HAVE_SYSINFO and HAVE_SYSINFO_MEM_UNIT 2014-04-02 18:52:16 -03:00
oni-link
8780e3ad11 remove HAVE_SVR4_PTYS 2014-04-02 18:52:16 -03:00
oni-link
87a317e076 remove HAVE_STRTOL
strtol is a C99 standard function.
2014-04-02 18:52:16 -03:00
oni-link
38ff389496 remove HAVE_STRPBRK
strpbrk is a C99 standard function.
2014-04-02 18:52:16 -03:00
oni-link
ec51b04a89 remove HAVE_STRING_H 2014-04-02 18:52:16 -03:00
oni-link
6c902e2104 remove HAVE_STRFTIME
strftime is a C99 standard function.
2014-04-02 18:52:16 -03:00
oni-link
5aa1128e97 remove HAVE_STRERROR
strerror is a C99 standard function.
2014-04-02 18:52:16 -03:00
oni-link
e38266a3dd remove HAVE_STDLIB_H 2014-04-02 18:52:16 -03:00
oni-link
ed9a68eea9 remove HAVE_SIGCONTEXT 2014-04-02 18:52:16 -03:00
oni-link
a96f2949cc remove HAVE_RENAME
rename is a C99 standard function.
2014-04-02 18:52:16 -03:00
oni-link
3da084d612 remove HAVE_FLOAT_FUNCS 2014-04-02 18:52:16 -03:00
oni-link
8bae684045 remove HAVE_DATE_TIME
__DATE__ and __TIME__ are C99 standard predefined macros.
2014-04-02 18:52:16 -03:00
Thomas Wienecke
f9d4b14f25 Delete os_delay unit test. 2014-04-02 18:50:09 -03:00
Thiago de Arruda
774f668c43 Move signal handling to libuv event loop
This removes all signal handling code from os_unix.c to os/signal.c. Now signal
handling is done like this:

- Watchers for signals are registered with libuv default event loop
- `event_poll` continuously calls `poll_uv_loop` to produce events until it
  receives user input, SIGINT or a timeout
- Any signals received in `poll_uv_loop` will push events to a queue that is
  drained and processed by `event_poll`

Signals aren't handled directly in the libuv callback to avoid recursion in the
event loop(which isn't supported by libuv).

The same principle will apply to other events in the future: Push to a queue
from a libuv callback and drain it from `event_poll`
2014-04-01 09:46:29 -03:00
John Schmidt
40879af7bd Move shorten_filenames back to fileio.c 2014-04-01 08:08:08 -03:00
John Schmidt
7ec4d478eb Move match_suffix from misc1.c 2014-04-01 08:08:08 -03:00
John Schmidt
35e737e63c Move expand_wildcards{,_eval} from misc1.c 2014-04-01 08:08:07 -03:00
John Schmidt
d31e598895 Move shorten_fname{,1,s} and shorten_filenames from fileio.c 2014-04-01 08:08:07 -03:00
John Schmidt
7464b07c22 Move mch_expandpath from os_unix.c 2014-04-01 08:08:07 -03:00
John Schmidt
7034903591 Move pathcmp from misc2.c 2014-04-01 08:08:07 -03:00
John Schmidt
2a6df95fb5 Move same_directory from misc2.c 2014-04-01 08:08:07 -03:00