Felipe Oliveira Carvalho
9b56e3a4cc
Remove the always-FALSE shortname argument from buf_modname()
2014-05-02 15:58:33 -03:00
Felipe Oliveira Carvalho
89e07185e9
Remove the code related to the shortname option
2014-05-02 15:58:33 -03:00
Felipe Oliveira Carvalho
8500eeed86
Don't retry to make the tempname in write_viminfo() with shortname=1
...
ref #572
2014-05-02 15:58:33 -03:00
Chris Watkins
cb5acb705a
Remove checks for SHORT_FNAME and USE_LONG_FNAME.
...
They were only defined for MSDOS which is now unsupported.
2014-05-02 15:58:33 -03:00
Chris Watkins
67a157c08d
Replace 'alloc' with 'xmalloc' in some files.
...
Files changed: charset.c, buffer.c, diff.c, edit.c,
ex_cmds.c, ex_cmds2.c and ex_docmd.c.
The remaining alloc's in these files require more careful attention to
remove.
2014-05-01 16:59:11 -04:00
Justin M. Keyes
1b5217687a
revert #652
...
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
2014-05-01 14:00:31 -04:00
Marco Hinz
2e4613aecc
Remove NUL macro
2014-04-29 17:51:09 -03:00
Eliseo Martínez
4d0dd14189
Use portable format specifiers: Improve arguments formatting.
...
At some places, printf-like function's arguments styling could be
improved to enhance readability.
2014-04-28 07:59:25 -03:00
Chris Watkins
9da32a1f78
Remove code and checks for unsupported systems.
...
Remove remnants of support for systems including
__EMX__, MSDOS, OS2, AMIGA and MORPHOS.
2014-04-28 07:43:57 -03:00
John Schmidt
4e1b364a3e
Remove alloc_clear
...
Use `xcalloc` instead.
Inline `alloc_tv` and `alloc_string_tv` in eval.c
2014-04-28 07:41:45 -03:00
Chris Watkins
b951cf5bfc
Remove O_EXTRA which was only for EMX and cygwin.
2014-04-24 10:49:14 -03:00
Felipe Oliveira Carvalho
42f1bd9b22
No OOM error condition in ga_concat_strings(), concat_fnames(), concat_str()
...
- xmallocz() is not static anymore. There are many use cases for this function
in the codebase and we should start using it.
- Simpler types in ga_concat_strings()
2014-04-24 10:31:31 -03:00
Eliseo Martínez
b8f3ff2a69
Use portable format specifiers: Case %ld - localized - EMSGN.
...
Fix uses of localized "%ld" within EMSGN():
- Replace "%ld" with "%" PRId64.
- No argument cast needed. EMSGN() will take care of that.
2014-04-23 06:56:33 -03:00
Eliseo Martínez
f4b81576cc
Use portable format specifiers: Case %ld - localized - vim_snprintf_add.
...
Fix uses of localized "%ld" within vim_snprintf_add():
- Replace "%ld" with "%" PRId64.
- Cast corresponding argument to (int64_t).
2014-04-23 06:56:32 -03:00
Eliseo Martínez
22dd4f62d3
Use portable format specifiers: Case %ld - localized - vim_snprintf.
...
Fix uses of localized "%ld" within vim_snprintf():
- Replace "%ld" with "%" PRId64.
- Cast corresponding argument to (int64_t).
2014-04-23 06:56:32 -03:00
Eliseo Martínez
3f8061f16c
Use portable format specifiers: Case %ld - plain - vim_snprintf.
...
Fix uses of plain "%ld" within vim_snprintf():
- Replace "%ld" with "%" PRId64.
- Cast corresponding argument to (int64_t).
2014-04-23 06:56:32 -03:00
Eliseo Martínez
c049cb2b51
Use portable format specifiers: Case %ld - localized - smsg.
...
Fix uses of localized "%ld" within smsg():
- Replace "%ld" with "%" PRId64.
- Cast corresponding argument to (int64_t).
2014-04-23 06:56:32 -03:00
Eliseo Martínez
fb94edf373
Use portable format specifiers: Case %ld - plain - sprintf.
...
Fix uses of plain "%ld" within sprintf():
- Replace "%ld" with "%" PRId64.
- Cast corresponding argument to (int64_t).
2014-04-23 06:56:32 -03:00
oni-link
ca4005d759
vim-patch:7.4.245
...
Problem: Crash for "vim -u NONE -N -c '&&'".
Solution: Check for the pattern to be NULL. (Dominique Pelle)
https://code.google.com/p/vim/source/detail?r=80421d934ebde183ce545ab8d9eb3a4c2065c169
2014-04-17 17:49:12 -03:00
Marco Hinz
43c6ec6803
Remove modelines
...
Removed modelines are better than modelines that differ from file to
file.
2014-04-16 14:03:19 -03:00
Marco Hinz
cb0adf60de
vim-patch:7.4.251
...
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
2014-04-16 09:46:01 -03:00
Marco Hinz
0e1e9148a3
vim-patch:7.4.232
...
Problem: ":%s/\n//" uses a lot of memory. (Aidan Marlin)
Solution: Turn this into a join command. (Christian Brabandt)
https://code.google.com/p/vim/source/detail?r=845608965bd9d0b2755997a7be812746885ff105
2014-04-16 09:35:18 -03:00
oni-link
421c388bb7
vim-patch:7.4.209
...
Problem: When repeating a filter command "%" and "#" are expanded.
Solution: Escape the command when storing for redo. (Christian Brabandt)
https://code.google.com/p/vim/source/detail?r=bb402c49379de97fcd475fbbbbdc5ed41e5dff07
2014-04-14 18:19:10 -03:00
Stefan Hoffmann
a1df458524
removed mch_remove macro
2014-04-11 13:31:48 -03:00
Felipe Oliveira Carvalho
f6b0e335e1
Remove OOM error handling code after ga_grow() calls
2014-04-11 12:57:59 -03:00
John Schmidt
3fcdb2ab29
Replace alloc_check
by xmalloc
...
`alloc_check` is just a wrapper around xmalloc, so we can remove it and use
xmalloc directly. ref #487 / #488
The call was replaced in the following files:
- ex_cmds.c
- misc1.c
- ops.c
2014-04-10 17:03:50 -03:00
John Schmidt
8a0043130f
Remove Amiga stuff
2014-04-05 10:01:21 -03:00
aph
535c450c72
remove DO_AUTOCHDIR
2014-04-04 21:44:58 -03:00
oni-link
04cdcfa604
vim-patch:7.4.170
...
Problem: Some help tags don't work with ":help". (Tim Chase)
Solution: Add exceptions.
https://code.google.com/p/vim/source/detail?r=8122eab8fcdbbdaac62dfbf7c6458cb3e6f46b04
2014-04-04 19:08:21 -03:00
John Schmidt
6f53cb1cc3
Extract memory.c from misc2.c
2014-04-04 16:33:12 -03:00
Hinidu
b83600f5a3
Restore vim_rename
2014-04-04 16:03:55 -03:00
Hinidu
a3ff83ce7e
Replace mch_rename and vim_rename with libuv
2014-04-04 16:03:55 -03:00
Thomas Wienecke
bfa4490aac
Rename FPC_* constants.
2014-04-03 10:32:41 -03:00
Thomas Wienecke
77bfb6cd99
Test and refactor gettail -> path_tail.
2014-04-03 10:32:41 -03:00
Thomas Wienecke
6d712defa5
Refactor fullpathcmp -> path_full_compare.
2014-04-03 10:32:41 -03:00
Stefan Hoffmann
071d28076f
move check_file_readonly() into /src/os/fs.c and rename it
2014-04-03 10:30:03 -03:00
oni-link
f9b5ca8b85
Remove feature HAVE_QSORT
...
qsort conforms to C99, so we don't need our own version.
2014-03-31 21:24:59 -03:00
John Schmidt
5d30654512
Rename ga_init2() to ga_init()
2014-03-31 14:42:11 -03:00
Thiago de Arruda
0d61b1c470
Refactor SHELL_* defines into enum typedef
...
The SHELL_* defines are the bitflags that can be passed to `mch_call_shell`.
The enum is defined in 'os/shell.h', where all shell-related functions will
eventually be defined.
2014-03-31 08:07:47 -03:00
Thiago de Arruda
c791922224
Make extra_shell_arg
a mch_call_shell
parameter
2014-03-31 08:07:46 -03:00
Justin M. Keyes
d9f5cd6290
Re-integrate FEAT_SIGNS code, close #383
...
- omit FEAT_NETBEANS_INTG and FEAT_SIGN_ICONS
- omit FEAT_GUI blocks
2014-03-29 20:47:39 -03:00
John Schmidt
f5154d7451
Extract path.c from misc1.c
2014-03-29 13:29:52 -03:00
Thomas Wienecke
5762c4e528
Rename mch_* functions to os_* in os module.
2014-03-27 19:57:55 -03:00
Thiago de Arruda
e995b21567
Re-integrate FEAT_FILTERPIPE code
...
This feature was accidentally removed when doing the initial import from vim. It
makes vim use pipes instead of temporary files for filtering buffers through
shell commands.
I found that this was missing when looking for references of
SHELL_READ/SHELL_WRITE outside mch_call_shell`.
When `mch_call_shell` is reimplemented on top of libuv process management
facilities, pipes will always be used for communication with child processes so
it makes sense to enable the feature permanently.
2014-03-27 17:36:32 -03:00
Felipe Oliveira Carvalho
07dad7acf3
Use memmove instead of mch_memmove
2014-03-26 16:28:13 -03:00
Felipe Oliveira Carvalho
68bc6bce29
Do not include farsi.c in main.c
...
- Change CMakeLists.txt to compile farsi.c normally
- Add const to global variables in farsi.h and define them in farsi.c (no need
to include farsi.h with DO_INIT defined in globals.h)
- Include farsi.h where necessary
- Include all necessary headers in farsi.c
- Move farsi function declarations from main.h to farsi.h
2014-03-25 18:48:45 -03:00
Petter Wahlman
edabc6f4c7
adapt to the style guildelines
...
semi-automated harvest of low hanging fruit:
change the unorthodox use of whitespace.
2014-03-19 07:53:16 -03:00
Thomas Wienecke
1949acc806
Revive vim_fname (-> os_file_exists); fix misuse of mch_getperm.
...
* Move vim_fname from misc1 to os/fs:os_file_exists.
* Add unit tests for os_file_exists.
* Replace misuse of mch_getperm with os_file_exists.
2014-03-15 11:50:22 -03:00
Thiago de Arruda
f6ace9962d
Refactor travis build to use clang's sanitizers
...
- Valgrind configuration removed
- Fix errors reported by the undefined behavior sanitizer
- Travis will now run two build steps:
- A normal build of a shared library for unit testing(in parallel with gcc)
- A clang build with some sanitizers enabled for integration testing.
After these changes travis will run much faster, while providing valgrind-like
error detection.
2014-03-13 15:26:28 -03:00
Thomas Wienecke
8bb672e6a0
Port mch_isdir to libuv.
2014-03-05 15:01:19 -03:00