INLINE and logerror got redefined all the time

standardized code to use the definitions from mamedef.h

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
fixed signed<->unsigned type conflicts

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
stdlib.h was missing -> calloc() and free() were not explicitely found

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
static tables were using old-style declaration

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>