aboutsummaryrefslogtreecommitdiff
path: root/src/misc2.c
Commit message (Collapse)AuthorAge
* Introduce nvim namespace: Move files.Eliseo Martínez2014-05-15
| | | | | | Move files from src/ to src/nvim/. - src/nvim/ becomes the new root dir for nvim executable sources. - src/libnvim/ is planned to become root dir of the neovim library.
* removed mch_lstat() and mch_stat() macrosStefan Hoffmann2014-05-09
|
* removed `vim_free()` functionMatthias Beyer2014-05-05
|
* replaced `vim_free()` calls with `free()` callsMatthias Beyer2014-05-05
|
* Replace vim_free() implementationMatthias Beyer2014-05-04
| | | | | This replaces the vim_free() implementation with a free() call and adds a deprecated flag for the doxygen documentation.
* Use portable format specifiers: Adapt/fix EMSGU/emsgu to use (uint64_t).Eliseo Martínez2014-05-04
| | | | | | | | | | | | | | | | Problem EMSGU macro was defined as the unsigned counterpart of EMSGN. This is, invoking emsgu instead of emsgn and having a long_u argument instead of a long. But, surprisingly, emsgu was not defined anywhere, which didn't result in an error because in fact EMSGU was not used (the only point in code printing a %lu erroneously using EMSGN instead). Solution - Define emsgu. - Adapt EMSGU macro to use uint64_t instead of long_u.
* Extract strings.c from misc2.cJohn Schmidt2014-05-02
|
* revert #652Justin M. Keyes2014-05-01
| | | | | | | reverting broad cosmetic/style change because: - increases merge-conflicts - increases overhead of merging upstream Vim patches - reasons for change are ambiguous, so default to no change
* Remove NUL macroMarco Hinz2014-04-29
|
* Remove code and checks for unsupported systems.Chris Watkins2014-04-28
| | | | | Remove remnants of support for systems including __EMX__, MSDOS, OS2, AMIGA and MORPHOS.
* No OOM error in call_shell() and read_string()Felipe Oliveira Carvalho2014-04-24
|
* Use portable format specifiers: Adapt EMSGN/emsgn to use (int64_t).Eliseo Martínez2014-04-23
|
* Remove 'textmode' optionMarco Hinz2014-04-16
| | | | | 'textmode' is an option obsoleted for at least 10 years in favor of 'fileformat'.
* Remove modelinesMarco Hinz2014-04-16
| | | | | Removed modelines are better than modelines that differ from file to file.
* vim-patch:7.4.191oni-link2014-04-14
| | | | | | | | Problem: Escaping a file name for shell commands can't be done without a function. Solution: Add the :S file name modifier. https://code.google.com/p/vim/source/detail?r=40f18a1c1592c8b4047f6f2a413557f48a99c55f
* Remove simpler cases of OOM error handling (after *alloc calls)Felipe Oliveira Carvalho2014-04-06
| | | | | | | | | | | | | | | | | | By simpler cases I mean cases where the OOM error is not expected to be handled by the caller of the function that calls `alloc`, `lalloc`, `xrealloc`, `xmalloc`, `alloc_clear`, and `lalloc_clear`. These are the functions that: - Do not return an allocated buffer - Have OOM as the only error condition I took note of the functions that expect the caller to handle the OOM error and will go through them to check all the callers that may be handling OOM error in future commits. I'm ignoring eval.c and ex_.c in this series of commits. eval.c will soon be obsolete and I will deal with ex_.c in later PRs.
* Rewrite `mch_call_shell` on top of libuvThiago de Arruda2014-04-05
| | | | | | - Rename to `os_call_shell` - Use another entry point for libuv default event loop - Fix the `call_shell` reference in misc2.c
* Remove netbeans and sun workshopJohn Schmidt2014-04-05
|
* Extract memory.c from misc2.cJohn Schmidt2014-04-04
|
* Fix seperator->separator, path_tail_with_separator->path_tail_with_sep.Thomas Wienecke2014-04-03
|
* Test and refactor gettail_sep -> path_tail_with_seperator.Thomas Wienecke2014-04-03
|
* Test and refactor gettail -> path_tail.Thomas Wienecke2014-04-03
|
* move filewritable() into /src/os/fs.c and rename itStefan Hoffmann2014-04-03
|
* remove HAVE_STRPBRKoni-link2014-04-02
| | | | strpbrk is a C99 standard function.
* Move pathcmp from misc2.cJohn Schmidt2014-04-01
|
* Move same_directory from misc2.cJohn Schmidt2014-04-01
|
* Move after_pathsep from misc2.cJohn Schmidt2014-04-01
|
* remove HAVE_STDARG_HJulian Orth2014-03-31
|
* Remove feature HAVE_QSORToni-link2014-03-31
| | | | qsort conforms to C99, so we don't need our own version.
* Update `call_shell` signature to use `ShellOpts`Thiago de Arruda2014-03-31
|
* Make `extra_shell_arg` a `mch_call_shell` parameterThiago de Arruda2014-03-31
|
* xrealloc(): similar to xmalloc()Felipe Oliveira Carvalho2014-03-31
| | | | | Replaced all calls to realloc by xrealloc. All `== NULL` tests can be removed and the code within `!= NULL` tests can be unwrapped.
* Document xmalloc() and deprecate lalloc()Felipe Oliveira Carvalho2014-03-31
|
* xmalloc() that succeeds or gracefully abortsFelipe Oliveira Carvalho2014-03-31
|
* Re-integrate FEAT_SIGNS code, close #383Justin M. Keyes2014-03-29
| | | | | - omit FEAT_NETBEANS_INTG and FEAT_SIGN_ICONS - omit FEAT_GUI blocks
* Extract path.c from misc1.cJohn Schmidt2014-03-29
|
* Rename mch_* functions to os_* in os module.Thomas Wienecke2014-03-27
|
* HAVE_AVAIL_MEM is always undefined. Remove tests and dead codeFelipe Oliveira Carvalho2014-03-26
| | | | | Defining HAVE_AVAIL_MEM doesn't even build. The code tries to call `mch_avail_mem` which is not defined.
* Remove MEM_PROFILE related codeFelipe Oliveira Carvalho2014-03-26
| | | | | | | | | Code around `#ifdef MEM_PROFILE` was used to profile vim's memory comsumption. It's very likely broken as new code is using malloc() and free() directly. In this day and age, valgrind can solve in a much reliable way what this code was trying to do.
* Use memcmp instead of vim_memcmpFelipe Oliveira Carvalho2014-03-26
|
* Use memmove instead of mch_memmoveFelipe Oliveira Carvalho2014-03-26
|
* Use memset instead of vim_memsetFelipe Oliveira Carvalho2014-03-25
| | | | | | | | | Ran some commands on terminal, reviewed changes, and made some manual changes too. find src | xargs perl -i -p -e "s/vim_memset/memset/g" git grep -l memset | egrep "\.c$" | xargs perl -i -p -e \ 's/(#include "vim\.h")/#include <string.h>\n\n\1/g'
* adapt to the style guildelinesPetter Wahlman2014-03-19
| | | | | semi-automated harvest of low hanging fruit: change the unorthodox use of whitespace.
* removed get_user_name() and replaced calls with mch_get_user_name()Stefan Hoffmann2014-03-13
|
* moved mch_get_user_name() and mch_get_uname() into os/users.cStefan Hoffmann2014-03-13
|
* Extract cursor_shape.c from misc2.c and types/consts from structs.hFelipe Oliveira Carvalho2014-03-10
|
* Fix `free_all_mem` and EXITFREE definitionThiago de Arruda2014-03-07
| | | | | | | | | Because of the '$' in `if(DEFINED $ENV{VALGRIND_CHECK})` EXITFREE wasn't being defined, so the `free_all_mem` wasn't being included or called in the resulting binary. This commit fixes that, and also adds includes needed for `free_all_mem` compilation.
* cleanup environment variable handling + unit testsStefan Hoffmann2014-03-06
| | | | | | | | * removed a putenv() implementation which isn't needed anymore * mch_getenv() and mch_setenv() are now functions in src/os/env.c * removes direct calls to getenv() and setenv() outside of src/os/env.c * refactored the logic of get_env_name into mch_getenvname_at_index * added unittests for the functions in os/env.c
* Extract keymap.c from misc2.cFelipe Oliveira Carvalho2014-03-06
|
* Extract crypt.c from misc2.cFelipe Oliveira Carvalho2014-03-06
|