aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* doc: Remove "h" flag of 'highlight' optionJustin M. Keyes2014-07-30
| | | | | | HLF_H is an obsolete flag and got replaced by HLF_E. From: Marco Hinz <mh.codebro@gmail.com>
* runtime: Remove 'textauto'Justin M. Keyes2014-07-30
|
* doc: Remove 'textmode'Justin M. Keyes2014-07-30
| | | | by @mhinz
* eval: re-add has('mac') and has('macunix') #976Nicolas Hillegeer2014-07-30
| | | | | They were removed but they can be handy to separate some things to do at startup in a .vimrc for example.
* Units: Move NULL, OK, and FAIL to helpers.moon. #982Scott Prager2014-07-30
|
* eval: re-remove USE_CR #1002Nicolas Hillegeer2014-07-30
| | | | | It was already removed in 01ca460 and I erroneously introduced it again in PR #978.
* Merge pull request #998 from war1025/dev/buffer_cleanupJustin M. Keyes2014-07-30
|\ | | | | Minor buffer.c style cleanups
| * Minor buffer.c style cleanupsWayne Rowcliffe2014-07-26
| |
* | Merge pull request #934 from fornwall/remove-FEAT_MOUSE_JSBJustin M. Keyes2014-07-29
|\ \ | | | | | | Remove FEAT_MOUSE_JSB
| * | Remove FEAT_MOUSE_JSBFredrik Fornwall2014-07-29
|/ / | | | | | | This is never built and references some obscure jsb terminal
* | Remove unused arg 'defer' in 'job_start' #1000oni-link2014-07-29
| | | | | | | | | | | | | | | | | | * With the changes in commit "events: Refactor how event deferral is handled" (2e4ea29d2c7b62eb8baf1c41cd43433e085dda0) 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'.
* | re-integrate runtime/ vim-patch:0 #938Justin M. Keyes2014-07-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge pull request #978 '[RDY] implement system() with pipes'Thiago de Arruda2014-07-27
|\ \
| * | test/shell: add testsNicolas Hillegeer2014-07-27
| | | | | | | | | | | | | | | - The calls to (partially) initialize logging need to go. Blocked on #981.
| * | test/helpers: allow interning Pascal stringsNicolas Hillegeer2014-07-27
| | | | | | | | | | | | | | | os_system() returns a Pascal string, for example (it also NUL-terminates the string, but that's neither here nor there).
| * | test/formatc: improve standalone usageNicolas Hillegeer2014-07-27
| | | | | | | | | | | | Easier testing.
| * | test/formatc: improve 'inline' function handlingNicolas Hillegeer2014-07-27
| | | | | | | | | | | | | | | Apple seems to define some functions as `inline` but not `static` in headers. The ghetto parser wasn't unbelievably happy with this.
| * | rstream: remove 'reading' struct memberNicolas Hillegeer2014-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | job: increase JOB_BUFFER_SIZE to 0xFFFFNicolas Hillegeer2014-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | eval: reimplement f_system() on top of os_system()Nicolas Hillegeer2014-07-27
| | | | | | | | | | | | | | | | | | 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).
| * | os/shell: implement os_systemNicolas Hillegeer2014-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | job: add in-pipe notification and closing supportNicolas Hillegeer2014-07-27
| | | | | | | | | | | | | | | | | | - One can now manually close the in-pipe, without having to tear down the job. - One can be notified of write success/failure.
| * | wstream: allow empty release wbuffer cbNicolas Hillegeer2014-07-27
| | | | | | | | | | | | | | | Sometimes a wbuffer is not supposed to be free()'d (such as when it comes from a constant (possibly static) string, for example.
| * | wstream: write completion callbackNicolas Hillegeer2014-07-27
| | | | | | | | | | | | Now modules using the wstream can find out what's happening to their writes.
| * | job: implement job_wait()Nicolas Hillegeer2014-07-27
| | | | | | | | | | | | Used to wait synchronously for a job to end.
| * | os/shell: constify argumentsNicolas Hillegeer2014-07-27
|/ / | | | | | | Minor fixes
* | Merge pull request #975 from aktau/remove-gettimeofdayJustin M. Keyes2014-07-25
|\ \ | | | | | | remove gettimeofday() usage
| * | cmake: remove check for gettimeofdayNicolas Hillegeer2014-07-21
| | | | | | | | | | | | There are no more uses of gettimeofday, so remove the check in CMake.
| * | term: replace gettimeofday()Nicolas Hillegeer2014-07-21
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | sha256: replace gettimeofday()Nicolas Hillegeer2014-07-21
| | | | | | | | | | | | | | | gettimeofday() is not portable. I suspect os_hrtime() is also better as a seed than gettimeofday() or time() were.
| * | viml: re-add sha256() functionNicolas Hillegeer2014-07-21
| | | | | | | | | | | | Was removed in #699 but actually doesn't have anything to do with security.
* | | build: Compile static luajit lib with -fPIC #996ZyX2014-07-25
| | | | | | | | | | | | | | | | | | | | | 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
* | | message: add missing stdarg.h include #993Andrew Chin2014-07-25
| | | | | | | | | | | | | | | | | | 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).
* | | Merge pull request #986 from aktau/func-attr-enable-more-clangJustin M. Keyes2014-07-24
|\ \ \ | | | | | | | | func_attr: clang/icc support NONNULL_* attr
| * | | func_attr: clang/icc support NONNULL_* attrNicolas Hillegeer2014-07-23
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | 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)
* | | Merge pull request #987 from oni-link/fix_some_memory_leaksJustin M. Keyes2014-07-24
|\ \ \ | |/ / |/| | Fix some memory leaks in job.c and provider.c
| * | Fix memory leaks for jobs.oni-link2014-07-23
| | | | | | | | | | | | | | | Free the data memory of process and pipe handles in the close callback for a job.
| * | Fix memory leak in provider_call.oni-link2014-07-23
|/ / | | | | | | | | If no channel can be found for a method, free argument arg before returning.
* | Merge pull request #904 from war1025/dev/buffer_testsJustin M. Keyes2014-07-22
|\ \ | |/ |/| Add unit tests for buffer.c and fileio.c
| * Add tests for buffer.c and fileio.cWayne Rowcliffe2014-07-22
| |
| * Change buffer.h #defines to enums so they can be used in testsWayne Rowcliffe2014-07-22
| |
| * Statically allocate NameBuffWayne Rowcliffe2014-07-22
|/
* Merge #965 'Make os_get_localtime() portable + fix bug on win'Justin M. Keyes2014-07-20
|\
| * os/time: fix os_localtime_r on win + add func_attrNicolas Hillegeer2014-07-20
| | | | | | | | | | | | - it makes no sense for these functions to take NULL pointers - if `localtime()` on Windows returns a NULL pointer, the old code would try to dereference it.
| * os/time: make os_get_localtime more portableNicolas Hillegeer2014-07-20
| | | | | | | | | | | | gettimeofday() doesn't exist on Windows, as reported by @equalsraf. It seems a call to time() would be sufficient here, as only the seconds since the UNIX epoch are needed.
| * os/time: include time.h in os/time.hNicolas Hillegeer2014-07-20
|/ | | | Include what you use, also in the positive direction.
* Merge #962 'Implement startuptime functions on top of profiling functions'Justin M. Keyes2014-07-20
|\
| * startuptime: print vim -> nvimNicolas Hillegeer2014-07-20
| |
| * startuptime: always enable startuptimeNicolas Hillegeer2014-07-20
| | | | | | | | Removes the STARTUPTIME define.
| * globals.h: decouple vim.h and globals.hNicolas Hillegeer2014-07-20
| | | | | | | | | | | | | | | | | | Allow globals.h to be included without including vim.h. Another small piece of the puzzle of dismantling vim.h. Moving some extra `#define`'s to globals.h is no better than having them in vim.h. We should, in a later PR, move them to the file where they belong or to a separate `constants.h` or something.