Commit Graph

1386 Commits

Author SHA1 Message Date
Florian Walch
f29504a5b8 travis.sh: Update sources before installing packages. 2014-08-06 12:58:38 -03:00
Justin M. Keyes
5f42ba693b Update README.md
sweet clang analysis badge thanks to @Hinidu!
2014-08-05 11:57:55 -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
Fredrik Fornwall
44afe610f8 Partial C99 cleanup of term.c #1020 2014-08-01 13:20:11 -04:00
Florian Walch
67cdd65e21 Update luarocks. #1018
Fix #1013.
2014-08-01 09:30:17 -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
Thiago de Arruda
280d0ea5d3 Merge pull request #1005 '[RFC] Change vimdir path from vim to nvim' 2014-07-31 08:14:18 -03:00
Rui Abreu Ferreira
718beb2613 Add install target for runtime dir 2014-07-31 08:13:58 -03:00
Rui Abreu Ferreira
e672922ef3 Change vimdir path from vim to neovim 2014-07-31 08:13:58 -03:00
Justin M. Keyes
9df1eb27f4 doc: Remove "h" flag of 'highlight' option
HLF_H is an obsolete flag and got replaced by HLF_E.

From: Marco Hinz <mh.codebro@gmail.com>
2014-07-30 20:13:26 -04:00
Justin M. Keyes
80289956a1 runtime: Remove 'textauto' 2014-07-30 20:07:11 -04:00
Justin M. Keyes
666c0be13c doc: Remove 'textmode'
by @mhinz
2014-07-30 19:35:47 -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
Scott Prager
c3b9f863ea Units: Move NULL, OK, and FAIL to helpers.moon. #982 2014-07-30 18:25:43 -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
Justin M. Keyes
4f26b64722 Merge pull request #934 from fornwall/remove-FEAT_MOUSE_JSB
Remove FEAT_MOUSE_JSB
2014-07-29 14:09:58 -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
Justin M. Keyes
a98a6996c2 re-integrate runtime/ vim-patch:0 #938
Vim runtime files based on 7.4.384 / hg changeset 7090d7f160f7

Excluding:
  Amiga icons (*.info, icons/)
  doc/hangulin.txt
  tutor/
  spell/
  lang/ (only used for menu translations)
  macros/maze/, macros/hanoi/, macros/life/, macros/urm/
      These were used to test vi compatibility.
  termcap
      "Demonstration of a termcap file (for the Amiga and Archimedes)"

Helped-by: Rich Wareham <rjw57@cam.ac.uk>
Helped-by: John <john.schmidt.h@gmail.com>
Helped-by: Yann <yann@yann-salaun.com>
Helped-by: Christophe Badoit <c.badoit@lesiteimmo.com>
Helped-by: drasill <github@tof2k.com>
Helped-by: Tae Sandoval Murgan <taecilla@gmail.com>
Helped-by: Lowe Thiderman <lowe.thiderman@gmail.com>
2014-07-29 02:12:31 +00:00
Thiago de Arruda
66bc131633 Merge pull request #978 '[RDY] implement system() with pipes' 2014-07-27 14:01:22 -03:00
Nicolas Hillegeer
974752c53b test/shell: add tests
- The calls to (partially) initialize logging
  need to go. Blocked on #981.
2014-07-27 14:00:45 -03:00
Nicolas Hillegeer
1cfc468e5c test/helpers: allow interning Pascal strings
os_system() returns a Pascal string, for example (it also NUL-terminates the
string, but that's neither here nor there).
2014-07-27 14:00:45 -03:00
Nicolas Hillegeer
ad4c1e1954 test/formatc: improve standalone usage
Easier testing.
2014-07-27 14:00:44 -03:00
Nicolas Hillegeer
10479fd233 test/formatc: improve 'inline' function handling
Apple seems to define some functions as `inline` but not `static` in
headers. The ghetto parser wasn't unbelievably happy with this.
2014-07-27 14:00:44 -03: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
ZyX
4dadadd001 build: Compile static luajit lib with -fPIC #996
Should fix the following travis error:

    /usr/bin/ld: /opt/neovim-deps/lib/libluajit-5.1.a(lj_err.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
    /opt/neovim-deps/lib/libluajit-5.1.a: could not read symbols: Bad value
2014-07-25 21:13:44 +02: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
Justin M. Keyes
cbe1864ab4 Merge pull request #987 from oni-link/fix_some_memory_leaks
Fix some memory leaks in job.c and provider.c
2014-07-24 10:39:43 -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
Nicolas Hillegeer
f430ec5c50 func_attr: clang/icc support NONNULL_* attr
Both clang and (apparently) icc support the nonnull attribute. So I'm not
sure why it wasn't enabled in the first place.

- clang: http://clang-analyzer.llvm.org/annotations.html#attr_nonnull
- icc: https://software.intel.com/en-us/forums/topic/280290 (not conclusive
  evidence, but the best I could find, lacking docs)
2014-07-23 14:37:48 +02:00
Justin M. Keyes
ba04a1c306 Merge pull request #904 from war1025/dev/buffer_tests
Add unit tests for buffer.c and fileio.c
2014-07-22 15:24:56 -04:00
Wayne Rowcliffe
7a2ea275eb Add tests for buffer.c and fileio.c 2014-07-22 05:28:17 -05:00
Wayne Rowcliffe
5941ccab76 Change buffer.h #defines to enums so they can be used in tests 2014-07-22 05:28:17 -05:00
Wayne Rowcliffe
9453b7230b Statically allocate NameBuff 2014-07-22 05:28:17 -05:00
Nicolas Hillegeer
7b1d46f39d cmake: remove check for gettimeofday
There are no more uses of gettimeofday, so remove the check in CMake.
2014-07-21 19:30:00 +02:00
Nicolas Hillegeer
fb5a786bdb term: replace gettimeofday()
gettimeofday() is not portable, replace with os_hrtime() wherever possible.
The new code should behave equivalently to the old implementation.

Because of this, HAVE_GETTIMEOFDAY is no longer necessary To be able to
handle double clicks.
2014-07-21 19:29:29 +02:00
Nicolas Hillegeer
8ec0aef307 sha256: replace gettimeofday()
gettimeofday() is not portable. I suspect os_hrtime() is also better as a
seed than gettimeofday() or time() were.
2014-07-21 19:29:29 +02:00