aboutsummaryrefslogtreecommitdiff
path: root/src/fileio.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.
* remove unused parameter from `buf_store_file_info`Stefan Hoffmann2014-05-10
|
* replaced last mch_stat() and mch_lstat()Stefan Hoffmann2014-05-09
| | | | files: memline.c and fileio.c
* replaced some mch_stat() with os_get_file_info()Stefan Hoffmann2014-05-09
|
* replaced some mch_stat() with os_file_exists()Stefan Hoffmann2014-05-09
|
* replaced `vim_free()` calls with `free()` callsMatthias Beyer2014-05-05
|
* vim-patch:7.4.274Marco Hinz2014-05-04
| | | | | | | | | Problem: When doing ":update" just before running an external command that changes the file, the timestamp may be unchanged and the file is not reloaded. Solution: Also check the file size. https://code.google.com/p/vim/source/detail?r=1ee3fc5b40ae94c2a7fc5a62bca38d4f730f9bb2
* Remove unused function is_autocmd_blocked.Thomas Wienecke2014-05-03
|
* Rename buf_modname to modname as they've become the sameFelipe Oliveira Carvalho2014-05-02
|
* Remove the always-FALSE shortname argument from buf_modname()Felipe Oliveira Carvalho2014-05-02
|
* Remove the code related to the shortname optionFelipe Oliveira Carvalho2014-05-02
|
* Remove checks for SHORT_FNAME and USE_LONG_FNAME.Chris Watkins2014-05-02
| | | | They were only defined for MSDOS which is now unsupported.
* 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
|
* Test and refactor `shorten_fname` and `shorten_fname1`John2014-04-29
| | | | | Rename `shorten_fname` -> `path_shorten_fname` Rename `shorten_fname1` -> `path_shorten_fname_if_possible`
* Use portable format specifiers: Clarify some casted expressions.Eliseo Martínez2014-04-28
| | | | | | | | | Though correct (to my understanding), some of the casts introduced in previous commits could lead to confusion, by casting only the first expression component instead of the whole expression. This fixes that, parenthesizing casted expressions, except where operator precedence rules make it unneccesary.
* Remove code and checks for unsupported systems.Chris Watkins2014-04-28
| | | | | Remove remnants of support for systems including __EMX__, MSDOS, OS2, AMIGA and MORPHOS.
* Remove `alloc_clear`John Schmidt2014-04-28
| | | | | Use `xcalloc` instead. Inline `alloc_tv` and `alloc_string_tv` in eval.c
* Remove O_EXTRA which was only for EMX and cygwin.Chris Watkins2014-04-24
|
* No OOM error condition in prep_exarg()Felipe Oliveira Carvalho2014-04-24
|
* (verbose_)?try_malloc() to use on buf_write()Felipe Oliveira Carvalho2014-04-24
| | | | | | | | | | | There will be more use cases for try_malloc(): see #556. - Reimplemented xmalloc() using try_malloc(). - verbose_try_malloc() is just like try_malloc() but shows an out-of-memory error message before returning NULL. - Let the compiler generate size>>1 assembly for signed types. We're not using old compilers here. - Add proper function attributes to the new functions in memory.h
* Use xmalloc() and xmemdupz() in file_pat_to_reg_pat()Felipe Oliveira Carvalho2014-04-24
| | | | | | | | Unfortunately there's still a case where NULL can be returned from file_pat_to_reg_pat(). xmemdupz() and xmallocz() aren't static anymore. There are many use cases for these function.
* Use portable format specifiers: Case %ld - localized - vim_snprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of localized "%ld" within vim_snprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Case %ld - localized - sprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of localized "%ld" within sprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Case %ld - plain - sprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%ld" within sprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Remove branching with LONG_LONG_OFF_T.Eliseo Martínez2014-04-23
| | | | | After previous commits, branching code by using macro LONG_LONG_OFF_T becomes unneccesary. Remove it.
* Use portable format specifiers: Case %lld - localized - sprintf.Eliseo Martínez2014-04-23
| | | | | | | Fix uses of localized "%lld" within sprintf(): - Replace _("%lld") with _("%" PRId64). - Cast corresponding argument to (int64_t). - In *.po files, replace "%lld" with "%<PRId64>".
* Use portable format specifiers: Case %lld - plain - sprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%lld" within sprintf(): - Replace "%lld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Remove sizeof(int) < 4 related codeJohn Schmidt2014-04-22
|
* 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.251Marco Hinz2014-04-16
| | | | | | | | | Problem: Crash when BufAdd autocommand wipes out the buffer. Solution: Check for buffer to still be valid. Postpone freeing the buffer structure. (Hirohito Higashi) https://code.google.com/p/vim/source/detail?r=29eb4c2a33ac701bfcd4d2e2bed7864eba876e0e
* removed vim_mkdir macroStefan Hoffmann2014-04-11
|
* removed mch_rmdir macroStefan Hoffmann2014-04-11
|
* removed mch_remove macroStefan Hoffmann2014-04-11
|
* Remove OOM error handling code after ga_grow() callsFelipe Oliveira Carvalho2014-04-11
|
* Remove more OOM error handling codeFelipe Oliveira Carvalho2014-04-11
| | | | | | | | | | | | | | | | | From the functions: - ExpandBufnames - buf_modname() - do_autocmd_event() - ff_create_stack_element() - ff_get_visited_list() - ins_complete() - msg_show_console_dialog() - prt_find_resource() - vim_findfile_init() TODO: refactor msg_show_console_dialog() to make sure it doesn't ever return NULL.
* Change prefix from `os_*` to `path_*`John Schmidt2014-04-08
|
* Implement job controlThiago de Arruda2014-04-07
| | | | | | - Add a job control module for spawning and controlling co-processes - Add three vimscript functions for interfacing with the module - Use dedicated header files for typedefs/structs in event/job modules
* Use stdbool in os moduleHinidu2014-04-07
|
* 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.
* Moved mch_get_pid and renamed it to os_get_pidStefan Hoffmann2014-04-05
|
* vim-patch:7.4.172oni-link2014-04-05
| | | | | | | | Problem: The blowfish code mentions output feedback, but the code is actually doing cipher feedback. Solution: Adjust names and comments. https://code.google.com/p/vim/source/detail?r=391e10afccf6879dcfab8b28cb1587a13eb835c0
* Remove unused defineMarkus Breitenberger2014-04-04
|
* Extract memory.c from misc2.cJohn Schmidt2014-04-04
|
* Restore vim_renameHinidu2014-04-04
|
* Replace mch_rename and vim_rename with libuvHinidu2014-04-04
|
* Test and refactor gettail -> path_tail.Thomas Wienecke2014-04-03
|
* cleaned up the readonly check in readfile()Stefan Hoffmann2014-04-03
|
* move check_file_readonly() into /src/os/fs.c and rename itStefan Hoffmann2014-04-03
|