diff options
author | Nicolas Hillegeer <nicolas@hillegeer.com> | 2014-04-28 14:12:51 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-28 16:17:25 -0300 |
commit | d699ccfb0c3500becfec9b02c24dc858d54c5a6e (patch) | |
tree | 7178b1a7c0a1b90275f94a71851fbc106eae8d0a /src/diff.c | |
parent | 349f9da850fe46853663bff4ca199045a4678837 (diff) | |
download | rneovim-d699ccfb0c3500becfec9b02c24dc858d54c5a6e.tar.gz rneovim-d699ccfb0c3500becfec9b02c24dc858d54c5a6e.tar.bz2 rneovim-d699ccfb0c3500becfec9b02c24dc858d54c5a6e.zip |
test: fix the cimport method
This commit will hopefully allow the cimport method to be used just as one
would use #inclue <header.h> in C. It follows the following method:
1. create a pseudoheader file that #include's all the requested header files
2. runs the pseudoheader through the C preprocessor (it will try various
compilers if available on the system).
3. runs the preprocessed file through a C formatter, which attempts to group
statements on one line. For example, a struct definition that was
formerly on several lines will take just one line after formatting. This
is done so that unique declarations can be detected. Duplicates are thus
easy to remove.
4. remove lines that are too complex for the LuaJIT C parser (such as:
Objective-C block syntax, crazy enums defined on linux, ...)
5. remove duplicate declarations
6. pass result to ffi.cdef
Diffstat (limited to 'src/diff.c')
0 files changed, 0 insertions, 0 deletions