Commit Graph

8225 Commits

Author SHA1 Message Date
Florian Walch
4fa8a0c43c clang-analyzer: Reduce scope in syntax.c. 2014-08-07 15:19:59 +02:00
Florian Walch
020bfb6ea2 clang-analyzer: Reduce scope in arabic.c. 2014-08-07 15:19:59 +02:00
Florian Walch
d80d46883e clang-analyzer: Reduce scope in search.c. 2014-08-07 15:19:59 +02:00
Florian Walch
1d524ea98d clang-analyzer: Reduce scope in screen.c. 2014-08-07 15:19:56 +02:00
Florian Walch
141b74bcd4 clang-analyzer: Reduce scope in spell.c. 2014-08-07 14:29:42 +02:00
Florian Walch
c683858a6a clang-analyzer: Fix dead stores in window.c. 2014-08-07 10:53:33 +02:00
Justin M. Keyes
ad5ae68acd Merge #814 'Remove dead #ifdefed code' 2014-08-07 02:20:12 -04:00
Fredrik Fornwall
1de8fe30c8 Remove unused USE_TERM_CONSOLE ifdefs #1015
This is unused after dropped amiga and msdos support.
2014-08-07 01:52:03 -04:00
Fredrik Fornwall
e6edfa9617 Drop SGI IRIS support. #1006 2014-08-07 01:37:18 -04:00
Wayne Rowcliffe
3599a834d5 Return bool from find_win_for_buf #1023 2014-08-07 00:42:13 -04:00
Thiago de Arruda
ed71401b24 bugfix: set empty string as default for ipy/icpb to avoid segfault
Fixes #1039
2014-08-06 12:59:27 -03:00
Scott Prager
5617ee8f35 vim-patch:7.4.279
Problem:    globpath() returns a string, making it difficult to get a
            list of matches.  (Greg Novack)
Solution:   Add an optional argument like with glob().  (Adnan Zafar)

https://code.google.com/p/vim/source/detail?r=8e9db1f27a0063df023cc05a760fce73255dad24
2014-08-04 12:01:58 -04:00
André Twupack
b53034d423 vim-patch:7.4.315 #1021
Problem:    Fixes for computation of topline not tested.
Solution:   Add test. (Hirohito Higashi)

https://code.google.com/p/vim/source/detail?r=646616b6ff4defcc7bef0b198b540f6d965a8126
2014-08-03 15:49:24 +00:00
Wayne Rowcliffe
8cf45786b1 Add FOR_ALL_BUFFERS helper 2014-08-02 20:19:33 -05:00
Pavel Platto
8b72ae7c78 Remove fix for select(). select() is not used anymore. 2014-08-02 09:18:06 +03:00
Pavel Platto
f42a4be834 Remove SMALL_MALLOC. Used on MSDOS and WIN16. 2014-08-02 09:17:00 +03:00
Pavel Platto
fe61a45c07 Remove __MVS__ and MOTIF390_MNEMONIC_FIXED 2014-08-02 09:17:00 +03:00
Pavel Platto
de8ba56495 Remove HAVE_LIBC_H
It was used in Vim for NeXT OS.
2014-08-02 09:17:00 +03:00
Pavel Platto
ff71a042a2 Remove HAVE_TOTAL_MEM
libuv provide uv_get_total_mem_kib. So HAVE_TOTAL_MEM should always be
true.
Before that commit in neovim maxmem=5120 and maxmemtot=10240. Now
both equal to half of system memory.
2014-08-02 09:17:00 +03:00
Pavel Platto
5881842007 Remove FEAT_TAG_ANYWHITE
This feature allow to use any white space characters instead of one
<TAB> in tag files. It is disabled in vanilla Vim's default build
configuration. Exuberant ctags use format with exactly one TAB.
2014-08-02 09:17:00 +03:00
Pavel Platto
b2b920f20e Remove FEAT_OSFILETYPE
Feature description from Vim documentation:

NOTE: this code is currently disabled, as the RISC OS implementation was
removed.  In the future this will use the 'filetype' option.

On operating systems which support storing a file type with the file, you can
specify that an autocommand should only be executed if the file is of a
certain type.

The actual type checking depends on which platform you are running Vim
on; see your system's documentation for details.

To use osfiletype checking in an autocommand you should put a list of types to
match in angle brackets in place of a pattern, like this: >

	:au BufRead *.html,<&faf;HTML>  runtime! syntax/html.vim

This will match:

- Any file whose name ends in ".html"
- Any file whose type is "&faf" or "HTML", where the meaning of these types
  depends on which version of Vim you are using.
  Unknown types are considered NOT to match.
2014-08-02 09:16:59 +03:00
Pavel Platto
77cb6551a6 Remove EBCDIC: Remove IF_EB macros 2014-08-02 09:16:59 +03:00
Pavel Platto
8991609393 Remove EBCDIC: remove last #ifdef EBCDIC 2014-08-02 09:16:59 +03:00
Pavel Platto
e1dd98512f Remove EBCDIC: Clean up comments 2014-08-02 09:16:59 +03:00
Pavel Platto
2e831e56c7 Remove DONT_ADD_PATHSEP_TO_DIR used only in legacy Mac 2014-08-02 09:16:59 +03:00
Pavel Platto
215d747e22 Show +cursorshape in :version
All code which was inside #ifdef CURSOR_SHAPE is being used now, except
one in version.c (that occurence is fixed by this commit).
2014-08-02 09:13:06 +03:00
Pavel Platto
6ff5759ed2 Remove BEOS_PR_OR_BETTER 2014-08-02 09:13:06 +03:00
Pavel Platto
1fbee0fe45 Remove BeOS DR8 specific hack
It is already partially removed from screen.c
2014-08-02 09:13:06 +03:00
Fredrik Fornwall
44afe610f8 Partial C99 cleanup of term.c #1020 2014-08-01 13:20:11 -04:00
Will Stamper
dafd72f5b2 vim-patch:7.4.309 #843
Problem:    When increasing the size of the lower window, the upper
            window jumps back to the top. (Ron Aaron)
Solution:   Change setting the topline. (Nobuhiro Takasaki)

https://code.google.com/p/vim/source/detail?r=88a6e9f33822d33b6c32db578750c6c178c63f50
2014-07-31 15:12:14 -04:00
Nicolas Hillegeer
e4be7bc27c eval: re-add has('mac') and has('macunix') #976
They were removed but they can be handy to separate some things to do at
startup in a .vimrc for example.
2014-07-30 18:26:32 -04:00
Nicolas Hillegeer
5f9fb6ed64 eval: re-remove USE_CR #1002
It was already removed in 01ca460 and I erroneously introduced it again in
PR #978.
2014-07-30 18:10:18 -04:00
Justin M. Keyes
4bebbaa572 Merge pull request #998 from war1025/dev/buffer_cleanup
Minor buffer.c style cleanups
2014-07-30 17:22:57 -04:00
Fredrik Fornwall
bfaab2e351 Remove FEAT_MOUSE_JSB
This is never built and references some obscure jsb terminal
2014-07-29 18:08:15 +02:00
oni-link
1ef12f0204 Remove unused arg 'defer' in 'job_start' #1000
* With the changes in commit
  "events: Refactor how event deferral is handled"
  (2e4ea29d2c) the function argument
  'defer' of 'job_start' and member variable 'defer' of 'struct job'
  can be removed.
* Update/Fix the documentation for function 'job_start'.
2014-07-29 13:29:54 +02:00
Nicolas Hillegeer
115b165bfa rstream: remove 'reading' struct member
Not necessary, as discussed in #980.

From the libuv mailing list:
https://groups.google.com/forum/#!topic/libuv/OD38PeGeVgQ

E.g. this could happen (red: on Windows):

> > alloc_cb(handle1);
> > alloc_cb(handle2);
> > read_cb(handle1);
> > read_cb(handle2);

But this couldn't:

> > alloc_cb(handle1);
> > alloc_cb(handle1);
> > read_cb(handle1);
> > read_cb(handle1);

Because each stream has a 1-to-1 correspondance with a libuv handle. The
code removed was never executed.

Closes #980.
2014-07-27 14:00:44 -03:00
Nicolas Hillegeer
8bd1fe9523 job: increase JOB_BUFFER_SIZE to 0xFFFF
It used to be 1024 bytes, which is very tiny and slows down some operations
(imaging `cat`-ing a large file). Benchmarks show a large speedup for such
cases. ref #978.

For modern systems 0xFFFF bytes (65535 B = 64 KB = 0.0625 MB) per job
shouldn't be a big problem.
2014-07-27 14:00:44 -03:00
Nicolas Hillegeer
6f30b25f45 eval: reimplement f_system() on top of os_system()
This evades the tempfile problem (unless of course one manually adds
redirects to the shell commandline, which some plugins seem to do, e.g.:
vim-easytags).
2014-07-27 14:00:44 -03:00
Nicolas Hillegeer
3d3b233df8 os/shell: implement os_system
With the goal to support pipe-only system() calls.

Notes on the second (vim) argument to f_system() (i.e.: redirected input)
and its implications:

- When calling system('cat -', ['some', 'list']), vanilla vim (before a
  recent patch that added support for passing lists) just passes an empty
  file to the process. This is the same as immediately closing the pipe,
  which os_system does when no input is given. If we wouldn't close the
  pipe, the process will linger forever (as is the case with `cat -`).

As of now, it's not allowed to pass a non-NULL pointer as the `output`
parameter. In other words, it's not possible to signal disinterst in the
process output. That may change in the future.
2014-07-27 14:00:44 -03:00
Nicolas Hillegeer
5e0931241d job: add in-pipe notification and closing support
- One can now manually close the in-pipe, without having to tear down the
  job.
- One can be notified of write success/failure.
2014-07-27 14:00:44 -03:00
Nicolas Hillegeer
891b4b9d2b wstream: allow empty release wbuffer cb
Sometimes a wbuffer is not supposed to be free()'d (such as when it comes
from a constant (possibly static) string, for example.
2014-07-27 14:00:44 -03:00
Nicolas Hillegeer
06cc046e30 wstream: write completion callback
Now modules using the wstream can find out what's happening to their writes.
2014-07-27 14:00:44 -03:00
Nicolas Hillegeer
9f624f0937 job: implement job_wait()
Used to wait synchronously for a job to end.
2014-07-27 14:00:44 -03:00
Nicolas Hillegeer
6af15f706a os/shell: constify arguments
Minor fixes
2014-07-27 14:00:44 -03:00
Wayne Rowcliffe
0761142246 Minor buffer.c style cleanups 2014-07-26 16:43:29 -05:00
Justin M. Keyes
9550beda61 Merge pull request #975 from aktau/remove-gettimeofday
remove gettimeofday() usage
2014-07-25 17:44:23 -04:00
Andrew Chin
d203c37e21 message: add missing stdarg.h include #993
Fixes up gcc 4.1 (not specifically a supported compiler but it's standard
for varargs anyway so it's good to have it included and depend less on
implicit includes).
2014-07-25 19:49:20 +02:00
Justin M. Keyes
d5a7947e8b Merge pull request #986 from aktau/func-attr-enable-more-clang
func_attr: clang/icc support NONNULL_* attr
2014-07-24 10:45:37 -04:00
oni-link
e9e4cdb3d4 Fix memory leaks for jobs.
Free the data memory of process and pipe handles in the close callback
for a job.
2014-07-23 15:15:21 +02:00
oni-link
bb1f08f6e8 Fix memory leak in provider_call.
If no channel can be found for a method, free argument arg before
returning.
2014-07-23 15:13:28 +02:00