aboutsummaryrefslogtreecommitdiff
path: root/src/vim.h
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.
* API: Implement vim_{get,set}_optionThiago de Arruda2014-05-13
| | | | | | | | Some functions from upstream VIM were reintegrated for this: - get_option_value_strict - set_option_value_err - set_option_value_for - unset_global_local_option
* 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.
* Remove undefined function gui_show_popupmenu + its unused return defines.Thomas Wienecke2014-05-03
|
* Remove project int types: Case long_i: Replace with plain long.Eliseo Martínez2014-05-03
| | | | | | | | | | | | | | | | | | | | | | Replace long_i with plain long. long_i was just plain long, adding marker __w64, to be used by Microsoft's compilers only, as an aid when transitioning from 32 bits to 64 bits. Purpose of this marker was, in fact, to make a 32 bit compiler emit the same warnings that a 64 bit compiler would. This __w64 marker is nowadays deprecated by said compilers, and use of a real 64 bit compiler is recommended instead. See http://msdn.microsoft.com/en-us/library/s04b5w00.aspx for details. So, there's no reason to maintain this anymore, and thus is removed. Refactoring long into int64_t is not attempted, as doing that in a bulk way is too much complicated. That is left to be done later, on a file-by-file basis, probably intermixed with file-by-file -Wconversion activation. Requested in #459.
* 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 O_EXTRA which was only for EMX and cygwin.Chris Watkins2014-04-24
|
* Use portable format specifiers: Remove dead code.Eliseo Martínez2014-04-23
|
* Use portable format specifiers: Adapt EMSGN/emsgn to use (int64_t).Eliseo Martínez2014-04-23
|
* 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.
* Remove sizeof(int) < 4 related codeJohn Schmidt2014-04-22
|
* Remove "h" flag of 'highlight' optionMarco Hinz2014-04-21
| | | | HLF_H is an obsolete flag and got replaced by HLF_E.
* use fixed-width types to define u8char_TNicolas Hillegeer2014-04-19
| | | | The current approach was a bit ad-hoc.
* Remove modelinesMarco Hinz2014-04-16
| | | | | Removed modelines are better than modelines that differ from file to file.
* vim-patch:7.4.234Marco Hinz2014-04-16
| | | | | | | | Problem: Can't get the command that was used to start Vim. Solution: Add v:progpath. (Viktor Kojouharov) https://code.google.com/p/vim/source/detail?r=d2286df8719d6e99c743e3bf6ac14d1f9debc84d
* 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
* Remove clientserverJohn Schmidt2014-04-05
|
* Removed not defined prototypes in os_unix.hStefan Hoffmann2014-04-04
| | | | | | | | | | | | | * reset_signals, vim_handle_signal: signal handling was rewritten, not defined anywhere * related to x clipboard handling, not defined anywhere: * {setup,start,stop,clear}_xterm_clip * stop_xterm_trace * clip_xterm_{own_selection,lose_selection,request_selection,set_selection} * related to XSMP (x session management protocol): * xsmp_{handle_requests,init,close}
* Make FPC_* defines an enum type in path.h.Thomas Wienecke2014-04-03
|
* remove mch_access macro as it is only used in fs.cStefan Hoffmann2014-04-03
|
* remove HAVE_WCTYPE_Honi-link2014-04-02
|
* remove HAVE_STRPBRKoni-link2014-04-02
| | | | strpbrk is a C99 standard function.
* remove HAVE_STRERRORoni-link2014-04-02
| | | | strerror is a C99 standard function.
* remove HAVE_STDARG_HJulian Orth2014-03-31
|
* remove HAVE_INTTYPESJulian Orth2014-03-31
|
* Refactor SHELL_* defines into enum typedefThiago de Arruda2014-03-31
| | | | | | 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.
* Rename mch_* functions to os_* in os module.Thomas Wienecke2014-03-27
|
* Use realloc instead of vim_reallocFelipe Oliveira Carvalho2014-03-26
|
* 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
|
* Prefer enums over incremental definesPetter Wahlman2014-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'
* Delete structs.h by spliting it and moving code to other headersFelipe Oliveira Carvalho2014-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Here's the list of squashed commits (for more info, see PR #378). - Define guicolor_T as a typedef in syntax.h - Move a big chunk of code from structs.h to buffer_defs.h - Move aco_save_T from structs.h to fileio.h - Move option_table_T from structs.h to hardcopy.h Aditionally: - Move the printer_opts global to hardcopy.c - Delete structs.h. Include buffer_defs.h where structs.h was included before. - Add header guards to option_defs.h - Put mark types and constants in new mark_defs.h - Move undo structs to undo_defs.h - Move memfile structs to new memfile_defs.h - Move expand_T and cmdmod_T to ex_cmds_defs.h - Move memline_T to memline_defs.h - Move many defs and types to ex_eval.h - Move syntax related types to syntax_defs.h - Move struct memfile to memfile_defs.h - struct buffblock and struct buffheader moved back to buffer_defs.h - Move some datatypes to hashtab.h and eval_defs.h - Move the buffer_defs.h include and TODOs for remaining unrelated types in buffer_defs.h
* Replace UINT32_T by uint32_tFelipe Oliveira Carvalho2014-03-14
|
* Include <stdint.h> in types.hFelipe Oliveira Carvalho2014-03-14
|
* Remove __ARGS macro. Close #205Nicolas Pierron2014-03-02
| | | | | | | | | This is a squash of all commits sent to #81. - Remove unused undef of __ARGS. - Fix mch_rename declaration. - Follow changes related to moved & extracted files. - Properly indent function declarations of getchar.h and quickfix.c.
* Added a types.h with vim.h unsigned int typedefs.scott-linder2014-02-28
|
* Removes 'proto' dirscott-linder2014-02-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See #137 for the issue. Every header in the proto directory was: * Given include guards in the form #ifndef NEOVIM_FILENAME_H #define NEOVIM_FILENAME_H ... #endif /* NEOVIM_FILENAM_H */ * Renamed from *.pro -> *.h * Moved from src/proto/ to src/ This would have caused conficts with some existing headers in src/; rather than merge these conflicts now (which is a whole other can of worms involving multiple and conditional inclusion), any header in src/ with a conflicting name was renamed from *.h -> *_defs.h (which may or may not actually describe its purpose, the change is purely a namespacing issue). Once all of these changes were made a script was developed to determine what #includes needed to be added to each source file to describe its dependencies and allow it to compile; because the script is so short and I'll just list it here: #! /bin/bash cd $(dirname $0) # Scrapes `make` output for provided error messages and outputs #includes # needed to resolve them. # $1 : part of the clang error message between filename and identifier list_missing_includes() { for file_missing_pair in $(CC=clang make 2>&1 >/dev/null | sed -n "s/\/\(.*\.[hc]\).*$1.*'\(.*\)'.*/\1:\2/p"); do fields=(${file_missing_pair//:/ }) source_file=${fields[0]} missing_func=${fields[1]} # Try to find the declaration of the missing function. echo $(basename $source_file) \ \#include \"$(grep -r "\b$missing_func __ARGS" | sed -n "s/.*\/\(.*\)\:.*/\1/p")\" # Remove duplicates done | sort | uniq } echo "Finding missing function prototypes..." list_missing_includes "implicit declaration of function" echo "Finding missing identifier declarations..." list_missing_includes "use of undeclared identifier" Each list of required headers was added by hand in the following format: #include "vim.h" #include "*_defs.h" #include "filename.h" /* All other includes in same module here, in alphabetical order. */ /* All includes from other modules (e.g. "os/*.h") here in alphabetical * order. */
* Convert function declarations from K&R to ANSI style.scott-linder2014-02-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | cproto (http://invisible-island.net/cproto/) was used to do the bulk of the work in batch; even the most recent version had some issues with typedef'd parameters; a quick "patch" was to modify `lex.l` to explicitly include all vim typedefs as known types. One example from `vim.h` is typedef unsigned char char_u; which was added in `lex.l` as <INITIAL>char_u { save_text_offset(); return T_CHAR; } Even with these changes there were some problems: * Two files (`mbyte.c` and `os_unix.c`) were not cleanly converted. * Any function with the `UNUSED` macro in its parameter list was not converted. Rather than spend more time fixing the automated approach, the two files `mbyte.c` and `os_unix.c` were converted by hand. The `UNUSED` macros were compiler specific, and the alternative, generic version would require a different syntax, so in order to simplify the conversion all uses of `UNUSED` were stripped, and then the sources were run back through cproto. It is planned to reconsider each use of `UNUSED` manually using a new macro definition.
* Remove more #ifdef dead codeThiago de Arruda2014-02-01
|
* Fix build on OSX/Archlinux and add READMEaph2014-02-01
| | | | | | | | | | - remove SELinux dependency for now - OSX: find libintl.h - OSX: fix compile errors - OSX: use hack around gettext nonsense - fix gettext on ubuntu - work around Arch's lack of -ltermcap - add README.md
* Import vim from changeset v5628:c9cad40b4181Thiago de Arruda2014-01-31
- Cleanup source tree, leaving only files necessary for compilation/testing - Process files through unifdef to remove tons of FEAT_* macros - Process files through uncrustify to normalize source code formatting. - Port the build system to cmake