summaryrefslogtreecommitdiff
path: root/src/memfile.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.2388: using old C style commentsv8.1.2388Bram Moolenaar2019-12-041-99/+99
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-7/+6
| | | | | | Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
* patch 8.1.1413: error when the drive of the swap file was disconnectedv8.1.1413Bram Moolenaar2019-05-271-17/+41
| | | | | Problem: Error when the drive of the swap file was disconnected. Solution: Try closing and re-opening the swap file. (closes #4378)
* patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar2019-05-241-3/+3
| | | | | | Problem: Using "int" for alloc() often results in compiler warnings. Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim only works with 32 bit ints anyway.
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-2/+2
| | | | | | | Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and others. Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the GUI build. (Hirohito Higashi, closes #3932)
* patch 8.1.0915: fsync() may not work properly on Macv8.1.0915Bram Moolenaar2019-02-141-3/+3
| | | | | Problem: fsync() may not work properly on Mac. Solution: Use fcntl() with F_FULLFSYNC. (suggested by Justin M. Keyes)
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-5/+5
| | | | | | | | Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.
* patch 8.1.0423: MS-Windows: using dup-close for flushing a filev8.1.0423Bram Moolenaar2018-09-211-10/+3
| | | | | Problem: MS-Windows: using dup-close for flushing a file. Solution: Use _commit(). (Ken Takata, closes #3463)
* patch 8.0.1496: clearing a pointer takes two linesv8.0.1496Bram Moolenaar2018-02-101-8/+4
| | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629)
* patch 8.0.0074v8.0.0074Bram Moolenaar2016-11-101-1/+1
| | | | | | Problem: Cannot make Vim fail on an internal error. Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an internal error without mentioning where.
* patch 7.4.2293v7.4.2293Bram Moolenaar2016-08-291-1/+1
| | | | | Problem: Modelines in source code are inconsistant. Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
* patch 7.4.2101v7.4.2101Bram Moolenaar2016-07-241-2/+2
| | | | | Problem: Looping over windows, buffers and tab pages is inconsistant. Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)
* patch 7.4.2048v7.4.2048Bram Moolenaar2016-07-161-9/+0
| | | | | Problem: There is still code and help for unsupported systems. Solution: Remove the code and text. (Hirohito Higashi)
* patch 7.4.1975v7.4.1975Bram Moolenaar2016-07-011-11/+11
| | | | | | Problem: On MS-Windows large files (> 2Gbyte) cause problems. Solution: Use "off_T" instead of "off_t". Use "stat_T" instead of "struct stat". Use 64 bit system functions if available. (Ken Takata)
* patch 7.4.1399v7.4.1399Bram Moolenaar2016-02-231-8/+3
| | | | | Problem: The MS-DOS code does not build. Solution: Remove the old MS-DOS code.
* patch 7.4.1276v7.4.1276Bram Moolenaar2016-02-071-1/+1
| | | | | Problem: Warning for not using return value of fcntl(). Solution: Explicitly ignore the return value.
* patch 7.4.1210v7.4.1210Bram Moolenaar2016-01-301-109/+51
| | | | | | Problem: Using old style function declarations. Solution: Change to new style function declarations. (script by Hirohito Higashi)
* patch 7.4.1198v7.4.1198Bram Moolenaar2016-01-291-22/+22
| | | | | | Problem: Still using __ARGS. Solution: Remove __ARGS in several files. (script by Hirohito Higashi) Also remove use of HAVE_STDARG_H.
* patch 7.4.979v7.4.979Bram Moolenaar2015-12-191-2/+3
| | | | | | Problem: When changing the crypt key the blocks read from disk are not decrypted. Solution: Also call ml_decrypt_data() when mf_old_key is set. (Ken Takata)
* patch 7.4.730v7.4.730Bram Moolenaar2015-06-091-1/+3
| | | | | | | | Problem: When setting the crypt key and using a swap file, text may be encrypted twice or unencrypted text remains in the swap file. (Issue 369) Solution: Call ml_preserve() before re-encrypting. Set correct index for next pointer block.
* updated for version 7.4.644v7.4.644Bram Moolenaar2015-02-271-1/+2
| | | | | Problem: Stratus VOS doesn't have sync(). Solution: Use fflush(). (Karli Aurelia)
* updated for version 7.4.238v7.4.238Bram Moolenaar2014-04-021-1/+1
| | | | | Problem: Vim does not support the smack library. Solution: Add smack support (Jose Bollo)
* updated for version 7.3.1007v7.3.1007Bram Moolenaar2013-05-231-1/+1
| | | | | Problem: Can't build on Minix 3.2.1. Solution: Add a condition to an #ifdef. (Gautam Tirumala)
* updated for version 7.3.925v7.3.925Bram Moolenaar2013-05-061-4/+4
| | | | | Problem: Typos in source files. Solution: Fix the typos. (Ken Takata)
* updated for version 7.3.187v7.3.187Bram Moolenaar2011-05-101-1/+1
| | | | | Problem: The RISC OS port has obvious errors and is not being maintained. Solution: Remove the RISC OS files and code.
* updated for version 7.3.143Bram Moolenaar2011-03-221-55/+226
| | | | | | | Problem: Memfile is not tested sufficiently. Looking up blocks in a memfile is slow when there are many blocks. Solution: Add high level test and unittest. Adjust the number of hash buckets to the number of blocks. (Ivan Krasilnikov)
* updated for version 7.3.085v7.3.085Bram Moolenaar2010-12-171-4/+0
| | | | | Problem: Inconsistency with preproc symbols. void * computation. Solution: Include vimio.h from vim.h. Add type cast.
* updated for version 7.3.083v7.3.083Bram Moolenaar2010-12-171-2/+2
| | | | | Problem: When a read() or write() is interrupted by a signal it fails. Solution: Add read_eintr() and write_eintr().
* Crypt the swapfile.Bram Moolenaar2010-06-211-4/+50
|
* Use full path in undofile(). Updated docs.Bram Moolenaar2010-06-051-2/+3
|
* updated for version 7.2-300v7.2.300Bram Moolenaar2009-11-171-0/+5
|
* updated for version 7.2b-000v7.2b.000Bram Moolenaar2008-07-131-1/+1
|
* updated for version 7.2av7.2aBram Moolenaar2008-06-241-4/+0
|
* updated for version 7.1-296v7.1.296Bram Moolenaar2008-05-071-0/+5
|
* updated for version 7.1b-002v7.1b.002Bram Moolenaar2007-05-111-1/+19
|
* updated for version 7.1bBram Moolenaar2007-05-101-2/+2
|
* updated for version 7.1aBram Moolenaar2007-05-061-6/+6
|
* updated for version 7.0-192v7.0.192Bram Moolenaar2007-02-071-4/+3
|
* updated for version 7.0-159v7.0.159Bram Moolenaar2006-11-071-3/+3
|
* updated for version 7.0-156v7.0.156Bram Moolenaar2006-11-011-1/+1
|
* updated for version 7.0-110v7.0.110Bram Moolenaar2006-09-261-2/+6
|
* updated for version 7.0216v7.0216Bram Moolenaar2006-03-061-1/+1
|
* updated for version 7.0181v7.0181Bram Moolenaar2006-01-141-0/+17
|
* updated for version 7.0158v7.0158Bram Moolenaar2005-11-231-1/+1
|
* updated for version 7.0001v7.0001Bram Moolenaar2004-06-131-0/+1312