makefile: whitespace cleanup

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Make script run with 'use strict'.  Filehandles changed to lexicals.

Signed-off-by: Matt Sickler <imMute@msk4.com>
c_create and h_create use heredocs
Fixed luaL_typerror -> luaL_argerror rename
c_create and h_create take an array of strings at the end which are include file names

Signed-off-by: Matt Sickler <imMute@msk4.com>
DIDCAPS_* blacklist

Signed-off-by: Matt Sickler <imMute@msk4.com>
Fixed luaL_reg -> luaL_Reg rename

Signed-off-by: Matt Sickler <imMute@msk4.com>
common.h body uses heredoc

Signed-off-by: Matt Sickler <imMute@msk4.com>
core.h luaL_openlib fix

Signed-off-by: Matt Sickler <imMute@msk4.com>
interface luaL_openlib changed to luaL_setfuncs

Signed-off-by: Matt Sickler <imMute@msk4.com>
Fixed a major issue with how libraries are created in 5.2, see below for explanation.

So open_enums() was expecting the top of the stack to be the global table "directfb" so it could
insert a bunch of tables for each enum.  This table is used by the check_<enum> functions, but
since the open_directfb() function didn't call open_enums correctly, it never gets populated, which
leads to indexing-nil errors.  Furthermore, the open_<interface> functions left an extra table on
the stack, so the directfb table would get buried.

The solution was to add a "lua_pop(L,1)" call to each open_<interface> function, and reorder
the lua_setglobal in open_directfb().

Signed-off-by: Matt Sickler <imMute@msk4.com>
Introduce Lua v5.2 compatibility layer

Signed-off-by: Matt Sickler <imMute@msk4.com>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Add compatibility header to every .c file generated

Signed-off-by: Matt Sickler <imMute@msk4.com>
Add objects to .gitignore

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Makefile: prettify and allow easier cross-compilation

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>