Nicolas Hillegeer
0564f781ab
vim: move disptick_T from vim.h to syntax_defs.h
...
Make vim.h smaller, bit by bit.
2014-07-16 19:05:34 +02:00
Nicolas Hillegeer
e288ddaee7
vim: move linenr_T and colnr_T to pos.h
...
Try to cut down vim.h's size. It's keeping us from testing more things.
2014-07-16 19:05:34 +02:00
Nicolas Hillegeer
fb72f1ee37
vim: move long_u from vim.h to types.h
...
Seems to make no difference to the main binary, but it helps the tests a bit
further along.
2014-07-16 19:05:34 +02:00
Nicolas Hillegeer
db7cd61f62
profiling: implement on top of os_hrtime()
...
Should be better than gettimeofday() since libuv uses higher resolution
clocks on most UNIX platforms. Libuv also tries to use monotonic clocks,
kernel bugs notwithstanding, which is another win over gettimeofday().
Necessary for Windows, which doesn't have gettimeofday(). In vanilla vim,
Windows uses QueryPerformanceCounter, which is the correct primitive for
this sort of things, but that was removed when slimming up the codebase.
Libuv uses QueryPerformanceCounter to implement uv_hrtime() on Windows so
the behaviour of vim profiling on Windows should now be the same.
The behaviour on Linux should be different (better) though, libuv uses more
accurate primitives than gettimeofday().
Other misc. changes:
- Added function attributes where relevant (const, pure, ...)
- Convert functions to receive scalars: Now that proftime_T is always a
(uint64_t) scalar (and not a struct), it's clearer to convert the
functions to receive it as such instead of a pointer to a scalar.
- Extract profiling funcs to profile.c: make everything clearer and reduces
the size of the "catch-all" ex_cmds2.c
- Add profile.{c,h} to clint and -Wconv:
- Don't use sprintf, use snprintf
- Don't use long, use int16_t/int32_t/...
2014-07-16 17:12:34 +02:00
Brandon Coleman
a32df5e734
move defines from vim.h
...
buffer.h:
buflist_getfile() flags
buflist_new() flags
buf_freeall() flags
do_buffer() flags
charset.h:
chartab[] flags
edit.h:
in_cinkeys() flags
change_indent() flags
beginline() flags
insertchar() flags
nv_mousescroll() flags
eval.c
AUTOLOAD_CHAR
eval.h:
enum for vimvars[]
ex_cmds.h:
do_ecmd
read_viminfo flags
ex_cmds2.h:
check_changed() flags
do_source() flags
ex_cmds_defs.h:
BAD_* flags
ex_docmd.h:
VALID_PATH VALID_HEAD
EXMODE_*
do_cmdline() flags
added include
ex_getln.c
*_ESC_CHARS definitions
ex_getln.h:
history table flags - used by add_to_history()
fileio.h:
readfile() flags
event_T definition
getchar.h:
ins_typebuf() flags
KEYLEN_*
globals.h:
NO_SCREEN
NO_BUFFERS
SEA_* defines
current_SID flags
hlf_T enum
HL_FLAGS
do_profiling() flags
schar_T
sattr_T
indent.h:
set_indent() flags
macros.h:
BINARY_FILE_IO flags
mbyte.h:
MB_BYTE2LEN*
ENC_*
memfile.h:
mf_sync() flags
misc1.h:
open_line() flags
message.h:
do_dialog() flags
vim_dialogyesno() flags
DLG_BUTTON_*
normal.h:
find_ident_under_cursor() flags
ops.h:
do_put() flags
operator ID's
option.h:
buf_copy_options() flags
OPT_* flags
os_unix.h:
mch_nodetype() flags
quickfix.h:
skip_vimgrep_pat() flags
regexp.h:
vim_regcomp() flags
values for reg_do_extmatch
search.h:
do_search() flags
search_regcomp() flags
findmatchlimit() flags
syntax.h:
HL_* flags
HL_FOLD is used in buffer_defs.h but nvim
compiles just fine with the defines in
syntax.h
tag.h:
do_tag() flags
find_tags() flags
term.h:
TBUFSZ flags
MOUSE flags
ui.h:
jump_to_mouse() flags
window.h:
file_name_in_line() flags
win_split() flags
MIN_LINES
MIN_COLUMNS
Remove VimClipboard which should have been removed with PR #921 .
2014-07-12 14:26:55 +02:00
Brandon Coleman
0fff487690
move errno.h include out of vim.h
2014-07-09 00:18:20 +02:00
Brandon Coleman
b94d07b046
move stdarg.h include out of vim.h
2014-07-09 00:18:19 +02:00
Brandon Coleman
e69cfa6c15
move assert.h include out of vim.h
2014-07-09 00:18:19 +02:00
Brandon Coleman
8cc8164e52
move wctype.h include out of vim.h
2014-07-09 00:18:19 +02:00
Brandon Coleman
bf219e1442
move <inttypes.h> include out of vim.h
2014-07-09 00:18:19 +02:00
Brandon Coleman
b18ca14ef8
move locale.h include out of vim.h
2014-07-09 00:18:19 +02:00
Brandon Coleman
82b71a3056
move ascii.h include out of vim.h
2014-07-09 00:18:18 +02:00
Brandon Coleman
8c9cb5f9ef
move memory.h include to version.c
2014-07-09 00:18:17 +02:00
Brandon Coleman
a4f441e547
remove stdbool.h include from vim.h and globals.h
2014-07-09 00:18:17 +02:00
Brandon Coleman
e3db636546
remove proto.h include from vim.h
2014-07-09 00:18:17 +02:00
Rui Abreu Ferreira
11653ce2d7
Remove include for sys/select.h in vim.h #890
...
- There is no need to include sys/select.h anymore
- Removed HAVE_SYS_SELECT_H from config.h.in
2014-07-01 18:21:02 -04:00
Douglas Schneider
f9596aa201
Replace vim_strncpy calls: add STRLCPY
2014-06-13 18:08:20 -04:00
Brandon Coleman
1ff8ed7b82
removed whitespace from ROOT_UID define.
2014-06-12 01:20:36 -05:00
Pavel Platto
18b64c99cc
Remove unnecessary (int) casts and fix style
2014-06-12 01:20:36 -05:00
Brandon Coleman
7f21665673
move/remove W_* macros
...
move W_ENDCOL to screen.c
remove the rest of the W_* macros
2014-06-12 01:20:36 -05:00
Brandon Coleman
7cdbca7789
move SST_* defines to syntax_defs
2014-06-12 01:20:36 -05:00
Brandon Coleman
eade8e283e
move FINDFILE_* defines to file_search.h
2014-06-12 01:20:36 -05:00
Brandon Coleman
1bd6912023
move EW_* defines to path.h
2014-06-12 01:20:36 -05:00
Brandon Coleman
da5e8526d1
move WILD_* defines to ex_getln.h
2014-06-12 01:20:36 -05:00
Brandon Coleman
b3ac402695
move VALID_* defines to buffer_defs.h
2014-06-12 01:20:36 -05:00
Brandon Coleman
e41284df21
move HL_* variables to syntax.h
2014-06-12 01:20:36 -05:00
Brandon Coleman
ebd412681e
move values for find_pattern_in_path() to search.h
2014-06-12 01:20:36 -05:00
Brandon Coleman
bb53536d6e
move update_screen() flags to screen.h
2014-06-12 01:20:36 -05:00
Brandon Coleman
d2dfa8523e
deleted unused defines in vim.h #772
2014-06-10 01:42:48 -04:00
Justin M. Keyes
4fc6e06465
Fix comment typo.
2014-05-19 08:59:24 -04:00
Eliseo Martínez
5f795225dc
Introduce nvim namespace: Fix define guards.
...
Change define guards from NEOVIM_XXX_H to NVIM_XXX_H:
- Change header files.
- Change clint correct guard name calculation.
2014-05-15 20:46:02 +02:00
Eliseo Martínez
409cc138f2
Introduce nvim namespace: Fix project-local includes.
...
Prepend 'nvim/' in all project-local (non-system) includes.
2014-05-15 20:46:01 +02:00
Eliseo Martínez
da51dc9cf2
Introduce nvim namespace: Move files.
...
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.
2014-05-15 20:46:01 +02:00