1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00

eLua - Remove redundant includes

duplicate files included by platform.h/platform_conf.h
This commit is contained in:
ecdr 2013-10-30 00:38:46 -08:00
parent f38162e92e
commit 8c4f6d1549
19 changed files with 4 additions and 34 deletions

View File

@ -6,7 +6,6 @@
#include "elua_int.h"
#include "lua.h"
#include "platform.h"
#include "devman.h"
// Virtual timers data
// VTMR_FIRST_ID must be LARGER than PLATFORM_TIMER_SYS_ID (as declared in platform.h)

View File

@ -1,7 +1,6 @@
#ifndef __ELUA_ADC_H__
#define __ELUA_ADC_H__
#include "type.h"
#include "platform_conf.h"

View File

@ -3,7 +3,6 @@
#ifndef __ELUA_NET_H__
#define __ELUA_NET_H__
#include "type.h"
#include "lauxlib.h"
#include "platform.h"

View File

@ -4,7 +4,6 @@
#ifndef __ELUA_UIP_H__
#define __ELUA_UIP_H__
#include "type.h"
#include "elua_net.h"
// eLua UIP application states

View File

@ -4,7 +4,6 @@
#define __PLATFORM_H__
#include "devman.h"
#include "type.h"
#include "elua_int.h"
// Error / status codes

View File

@ -8,9 +8,11 @@
#include "legc.h"
#include "platform.h"
#include "auxmods.h"
#include "elua_int.h"
#include "lualib.h"
// FIXME: ASF ill behaved - compiler.h does not check for previous definition of "UNDEFINED before defining it.
// It is also defined in lua source (but there it checks to be sure not defined).
// Moving include of ELUA_CPU_HEADER before lua things solves that problem, but maybe there is another way?
#include ELUA_CPU_HEADER
#include ELUA_BOARD_HEADER
#include "platform_generic.h" // generic platform header (include whatever else is missing here)

View File

@ -23,11 +23,8 @@
#ifdef BUF_ENABLE
#include "buf.h"
#include "type.h"
#include "platform.h"
#include "utils.h"
#include "sermux.h"
#include <stdlib.h>
#include <string.h>

View File

@ -1,11 +1,9 @@
// Common code for all backends
#include "platform.h"
#include "platform.h" // platform_conf.h
#include "platform_conf.h"
#include "type.h"
#include "genstd.h"
#include "common.h"
#include "buf.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -14,8 +12,6 @@
#include "elua_adc.h"
#include "term.h"
#include "xmodem.h"
#include "elua_int.h"
#include "sermux.h"
#include "lua.h"
#include "lapi.h"
#include "lauxlib.h"

View File

@ -3,9 +3,7 @@
#include "platform.h"
#include "platform_conf.h"
#include "type.h"
#include "common.h"
#include "elua_int.h"
#include "utils.h"
#include <stdio.h>

View File

@ -1,11 +1,7 @@
// Common implementation: UART functions
#include "common.h"
#include "platform.h"
#include "platform_conf.h"
#include "buf.h"
#include "elua_int.h"
#include "sermux.h"
// ****************************************************************************
// UART functions

View File

@ -1,10 +1,8 @@
// eLua interrupt support
#include "elua_int.h"
#include "lua.h"
#include "platform.h"
#include "platform_conf.h"
#include "type.h"
#include "ldebug.h"
#include <stdio.h>
#include <string.h>

View File

@ -6,7 +6,6 @@
#include "elua_uip.h"
#include "elua_net.h"
#include "type.h"
#include "uip.h"
#include "uip_arp.h"
#include "platform.h"

View File

@ -3,7 +3,6 @@
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include "type.h"
#include "eluarpc.h"
#include "rtype.h"

View File

@ -2,8 +2,6 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "type.h"
#include "devman.h"
#include "platform.h"
#include "romfs.h"
#include "xmodem.h"

View File

@ -1,9 +1,7 @@
// MMC filesystem implementation using FatFs
#include "mmcfs.h"
#include "type.h"
#include <string.h>
#include <errno.h>
#include "devman.h"
#include <stdio.h>
#include "ioctl.h"
#include <sys/types.h>

View File

@ -1,9 +1,7 @@
// Filesystem implementation
#include "romfs.h"
#include "type.h"
#include <string.h>
#include <errno.h>
#include "devman.h"
#include "romfiles.h"
#include <stdio.h>
#include "ioctl.h"

View File

@ -7,7 +7,6 @@
#include <string.h>
#include "platform.h"
#include "platform_conf.h"
#include "type.h"
// Macros for the dynamic size allocator
// Dynamic structure: pointer to next, pointer to prev

View File

@ -1,9 +1,7 @@
// Filesystem implementation
#include "swi.h"
#include "type.h"
#include <string.h>
#include <errno.h>
#include "devman.h"
#include <stdio.h>
#include "ioctl.h"
#include "semifs.h"

View File

@ -1,7 +1,6 @@
// Terminal function
#include "term.h"
#include "type.h"
#include "platform.h"
#include <stdio.h>
#include <stdarg.h>