Commit Graph

21232 Commits

Author SHA1 Message Date
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
John Schmidt
e29e956348 Move after_pathsep from misc2.c 2014-04-01 08:08:07 -03:00
John Schmidt
2cb026c65c Move fix_fname from buffer.c 2014-04-01 08:08:07 -03:00
John Schmidt
7052b85192 Move functions from window.c 2014-04-01 08:08:07 -03:00
John Schmidt
f5082d0a70 Move simplify_filename from tag.c 2014-04-01 08:08:07 -03:00
aph
7fd140b99a enable coveralls support 2014-04-01 08:06:20 -03:00
Julian Orth
55d95c1cd0 remove HAVE_{ISWUPPER,ISWLOWER,TOWUPPER,TOWLOWER} 2014-03-31 21:24:59 -03:00
Julian Orth
079c47ed7b remove HAVE_STDARG_H 2014-03-31 21:24:59 -03:00
Julian Orth
30160c1561 remove HAVE_STDINT 2014-03-31 21:24:59 -03:00
Julian Orth
2bc68462b2 remove HAVE_INTTYPES 2014-03-31 21:24:59 -03:00
Julian Orth
22a1a26cad remove HAVE_MATH_H 2014-03-31 21:24:59 -03:00
oni-link
b1ea283c59 remove HAVE_MEMSET 2014-03-31 21:24:59 -03:00
oni-link
854cde93ed remove HAVE_MEMCMP 2014-03-31 21:24:59 -03:00
Julian Orth
a5cd3693f0 remove HAVE_BCMP 2014-03-31 21:24:59 -03:00
Julian Orth
0bbbc24571 remove HAVE_ERRNO 2014-03-31 21:24:59 -03:00
Julian Orth
60a7ad8a47 remove HAVE_SETJMP_H 2014-03-31 21:24:59 -03:00
oni-link
f9b5ca8b85 Remove feature HAVE_QSORT
qsort conforms to C99, so we don't need our own version.
2014-03-31 21:24:59 -03:00
Nicolas Hillegeer
7b14caf604 alloc: xmalloc and xrealloc can't return null
With this annotation/function attribute, we can inform gcc that these
functions never return null, which can save a lot of redundant null checks.
2014-03-31 18:42:17 -03:00
Nicolas Hillegeer
22e17e25f1 func-attr: add some extra handy function attrs
The attributes in question are:

- nonnull: specify whether a function argument cannot/may not be null
- returns_nonnull: specify whether a function will not return a null
  pointer (example: xmalloc can't return null, so it should be annotated as
  such). Only available from gcc 4.9 onwards.

Currently these attributes are only supported by gcc.
2014-03-31 18:42:17 -03:00