Commit Graph

1048 Commits

Author SHA1 Message Date
ZyX
d906708a43 Remove unneeded klist include in channel.c 2014-06-02 11:04:18 -03:00
ZyX
a7e3c4f6f6 Remove a number of unneeded func_attr includes 2014-06-02 11:04:18 -03:00
ZyX
6140f35eae Add missing include to mbyte.c 2014-06-02 11:04:18 -03:00
ZyX
dca28e55c7 Fix some styles 2014-06-02 11:04:18 -03:00
ZyX
bf4fb30121 Add include guard to ex_cmds_defs 2014-06-02 11:04:18 -03:00
ZyX
7dd0d9d2ab Make nvim/lib/k*.h headers be the last one in the list
So that they do the last nvim/func_attr.h include
2014-06-02 11:04:18 -03:00
ZyX
8c0ca573e5 Surround nvim/func_attr.h includes with define/undef DEFINE_FUNC_ATTRIBUTES
Required for FUNC_ATTR_UNUSED to work in lib/k*
2014-06-02 11:04:18 -03:00
ZyX
6498b281fa Remove remaining declarations with new script: finddeclarations.pl 2014-06-02 11:04:18 -03:00
ZyX
70929f7e16 Add automatic generation of headers
- The 'stripdecls.py' script replaces declarations in all headers by includes to
  generated headers.
  `ag '#\s*if(?!ndef NEOVIM_).*((?!#\s*endif).*\n)*#ifdef INCLUDE_GENERATED'`
  was used for this.
- Add and integrate gendeclarations.lua into the build system to generate the
  required includes.
- Add -Wno-unused-function
- Made a bunch of old-style definitions ANSI

This adds a requirement: all type and structure definitions must be present
before INCLUDE_GENERATED_DECLARATIONS-protected include.

Warning: mch_expandpath (path.h.generated.h) was moved manually. So far it is
the only exception.
2014-06-02 11:04:17 -03:00
ZyX
880957ad4e Move documentation from function declarations to definitions
Uses a perl script to move it (scripts/movedocs.pl)
2014-06-02 11:04:04 -03:00
Thiago de Arruda
52a9a5b0b0 Merge pull request #779 'Add --api-msgpack-metadata command line option' 2014-06-02 10:36:36 -03:00
Rui Abreu Ferreira
8f7d370f18 Rename --api-metadata to --api-msgpack-metadata 2014-06-02 10:34:51 -03:00
Rui Abreu Ferreira
1971cc30b5 Add --api-metadata command line option
- New command line option prints the binary API metadata object
  and exits
2014-06-02 10:34:51 -03:00
Justin M. Keyes
a2e9580801 Merge #714 'Fix unused variable when NDEBUG is defined' 2014-05-31 13:53:15 -04:00
Justin M. Keyes
c0fae8b922 Fix unused variable when NDEBUG is defined.
Occurs when compiling with:
  rm -rf build/ && make clean && make cmake CFLAGS='-DNDEBUG' && make
  ^--important
2014-05-31 13:51:45 -04:00
John Szakmeister
7e797067df Make it easier to turn the bundled dependencies off. 2014-05-31 13:15:56 -04:00
Nicolas Hillegeer
cd457b72ec travis/coverity: hotfix #2, unbreak build
I hadn't spotted that the `sh -e` commandline was being used. I *think* this
is what's causing the exit 0 line not to run. Pray for success.

It's a real shame I can't this locally, what a mess.
2014-05-31 16:57:42 +02:00
Nicolas Hillegeer
9d60365e99 travis/coverity: hotfix, alwasy return success
It seems the coverity script likes to return 1 (error) when the current
branch does not follow its pattern. Temporarily disable that.
2014-05-31 16:48:51 +02:00
Nicolas Hillegeer
272902e1fc readme: add coverity scan badge 2014-05-31 16:41:23 +02:00
Nicolas Hillegeer
7f9caaf30d travis/coverity: add coverity support
Run only on push to branch coverity-scan. We can use a cron script to do
this 4 times a week (that's our allowance).

NOTE: possible future improvements are:

1. Fold the build matrix item into another short one so we don't overburden
   travis. It's a little less clear but it should be nicer on the
   infrastructure.
2. Change the security token, one can do that from the coverity admin page.
3. Don't do the naive `make depend`, but use the prebuilt libraries.
2014-05-31 16:41:23 +02:00
Justin M. Keyes
7eae32b3a6 Merge #782 'Initialize Object, Position' 2014-05-31 09:10:20 -04:00
Justin M. Keyes
005a4254c0 Initialize Object, Position
fix #778
thanks @genisaguilar
2014-05-31 09:08:58 -04:00
John Szakmeister
4e1ca460e3 Make it easier to change CMAKE_BUILD_TYPE in your local.mk. 2014-05-31 08:13:49 -04:00
Thiago de Arruda
d884945539 Merge branch 'generic-key-value-map' 2014-05-31 08:17:59 -03:00
Thiago de Arruda
82e3e7047f Refactor: Redefine Map(T) as a more generic Map(T, U) macro
To replace `Map(T)`, a new macro `PMap(T)` was defined as `Map(T, ptr_t)` for
writing maps that store pointers with less boilerplate
2014-05-30 20:42:19 -03:00
John Szakmeister
a581173e71 Turn off -Werror by default.
It inteferes with development activities by breaking your build in the
middle of a refactor.  Instead, let's enable -Werror on the Travis CI
builds via a TRAVIS_CI_BUILD option.
2014-05-29 17:37:12 -04:00
John Szakmeister
79a96ec1a4 Add a few more sources to CONV_SRCS. 2014-05-29 16:36:01 -04:00
Justin M. Keyes
3972f6cde7 Merge #500 'Remove/simplify #ifdefs on default features' 2014-05-28 13:09:59 -04:00
Pavel Platto
6fc2839795 Remove unused FEAT_* 2014-05-28 13:08:55 -04:00
Hinidu
76066e56fc Remove FEAT_TITLE
'title' and 'icon' options
2014-05-28 13:08:55 -04:00
Hinidu
1299d08be7 Remove FEAT_GETTEXT
Support for message translations using gettext()
2014-05-28 13:08:55 -04:00
Hinidu
3e93fedfe9 Remove FEAT_POSTSCRIPT
Printing using PostScript file output
2014-05-28 13:08:55 -04:00
Hinidu
b4ca3abc9f Remove FEAT_FLOAT
Support for floating point variables
2014-05-28 13:08:55 -04:00
Hinidu
ef5d9ccefe Remove FEAT_STL_OPT
'statusline', 'rulerformat' and special format of 'titlestring' and
'iconstring' options
2014-05-28 13:08:54 -04:00
Hinidu
bf87a83058 Remove FEAT_SESSION
Support for :mksession command
2014-05-28 13:08:54 -04:00
Hinidu
9db774df44 Remove FEAT_SEARCHPATH
Support for gf(edit the file whose name is under or after the cursor)
and <cfile>(is replaced with the path name under the cursor).
2014-05-28 13:08:54 -04:00
Hinidu
75f152d09b Remove FEAT_MENU
Support for :menu command. It can be used in terminal Vim too.
2014-05-28 13:08:54 -04:00
Hinidu
50429aee6e Remove FEAT_LISTCMDS
Vim commands for the buffer list and the argument list: ":buffer",
":bnext", ":bdel", ":argdelete", etc.
2014-05-28 13:08:54 -04:00
Hinidu
0b4d990adf Remove FEAT_EX_EXTRA
Vim's extra Ex commands: :center, :left, :normal, :retab and :right
2014-05-28 13:08:54 -04:00
Hinidu
a29b94e2f9 Remove FEAT_EVAL
Support for VimScript, :let, :if, etc.
2014-05-28 13:08:54 -04:00
Hinidu
5f2ccb94d2 Remove FEAT_CURSORBIND
Synchronization of cursor in split windows for diff mode
2014-05-28 13:08:54 -04:00
Hinidu
f65028e5a0 Remove FEAT_CON_DIALOG
Support for :confirm with console dialog.
2014-05-28 13:08:54 -04:00
Hinidu
cfea68db8e Remove FEAT_COMPL_FUNC
Insert mode completion with 'completefunc'
2014-05-28 13:08:54 -04:00
Hinidu
8fb4c551f4 Remove FEAT_COMMENTS
Special comments formatting, see 'comments' option.
2014-05-28 13:08:54 -04:00
Hinidu
ffc2ea372f Remove FEAT_CMDWIN
Command-line window which opens by q:, q/, q?
2014-05-28 13:08:54 -04:00
Hinidu
9d6c5de4f1 Remove FEAT_CMDL_INFO
'showcmd' and 'ruler' options
2014-05-28 13:08:54 -04:00
Hinidu
7c188b5498 Remove FEAT_CMDL_COMPL
Completion of mappings/abbreviations in command line mode
2014-05-28 13:08:54 -04:00
Hinidu
ceb069116f Remove FEAT_BYTEOFF
Support for byte2line(), line2byte(), go and :goto.
2014-05-28 13:08:54 -04:00
Hinidu
99fec73d1f Remove FEAT_CINDENT
C code indenting
2014-05-28 13:08:54 -04:00
Hinidu
df4127919a Remove FEAT_AUTOCMD
Support for :autocmd command
2014-05-28 13:08:54 -04:00