aboutsummaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
authorNicolas Hillegeer <nicolas@hillegeer.com>2014-04-28 14:12:51 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-28 16:17:25 -0300
commitd699ccfb0c3500becfec9b02c24dc858d54c5a6e (patch)
tree7178b1a7c0a1b90275f94a71851fbc106eae8d0a /src/diff.c
parent349f9da850fe46853663bff4ca199045a4678837 (diff)
downloadrneovim-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