Remove tab chars from retro C sources.

This commit is contained in:
Oliver Schmidt 2013-01-28 23:43:08 +01:00
parent 0a88373add
commit 1a5e20bc5f
12 changed files with 41 additions and 41 deletions

View file

@ -58,9 +58,9 @@ ctk_mouse_init(void)
if(okay) { if(okay) {
okay = mouse_install(&mouse_def_callbacks, module_control.module) == MOUSE_ERR_OK; okay = mouse_install(&mouse_def_callbacks, module_control.module) == MOUSE_ERR_OK;
if(okay) { if(okay) {
atexit((void (*)(void))mouse_uninstall); atexit((void (*)(void))mouse_uninstall);
} else { } else {
mod_free(module_control.module); mod_free(module_control.module);
} }
} }
cfs_close(module_control.callerdata); cfs_close(module_control.callerdata);

View file

@ -214,21 +214,21 @@ PROCESS_THREAD(dhcp_process, ev, data)
dhcpc_appcall(ev, data); dhcpc_appcall(ev, data);
} else if(ev == ctk_signal_button_activate) { } else if(ev == ctk_signal_button_activate) {
if(data == (process_data_t)&requestbutton) { if(data == (process_data_t)&requestbutton) {
dhcpc_request(); dhcpc_request();
set_statustext("Requesting..."); set_statustext("Requesting...");
} }
if(data == (process_data_t)&savebutton) { if(data == (process_data_t)&savebutton) {
apply_tcpipconfig(); apply_tcpipconfig();
app_quit(); app_quit();
} }
if(data == (process_data_t)&cancelbutton) { if(data == (process_data_t)&cancelbutton) {
app_quit(); app_quit();
} }
} else if( } else if(
#if CTK_CONF_WINDOWCLOSE #if CTK_CONF_WINDOWCLOSE
ev == ctk_signal_window_close || ev == ctk_signal_window_close ||
#endif #endif
ev == PROCESS_EVENT_EXIT) { ev == PROCESS_EVENT_EXIT) {
app_quit(); app_quit();
} }
} }

View file

@ -78,7 +78,7 @@ config_read(char *filename)
} }
if(cfs_read(file, &config, sizeof(config)) < sizeof(config) if(cfs_read(file, &config, sizeof(config)) < sizeof(config)
- sizeof(config.ethernetcfg.name)) { - sizeof(config.ethernetcfg.name)) {
log_message(filename, ": No config file"); log_message(filename, ": No config file");
error_exit(); error_exit();
} }

View file

@ -71,10 +71,10 @@ pollhandler(void)
} else if(BUF->type == uip_htons(UIP_ETHTYPE_ARP)) { } else if(BUF->type == uip_htons(UIP_ETHTYPE_ARP)) {
uip_arp_arpin(); uip_arp_arpin();
/* If the above function invocation resulted in data that /* If the above function invocation resulted in data that
should be sent out on the network, the global variable should be sent out on the network, the global variable
uip_len is set to a value > 0. */ uip_len is set to a value > 0. */
if(uip_len > 0) { if(uip_len > 0) {
ethernet_send(); ethernet_send();
} }
} }
} }

View file

@ -73,7 +73,7 @@ ethernet_init(struct ethernet_config *config)
byte = mod_load(&module_control); byte = mod_load(&module_control);
if(byte != MLOAD_OK) { if(byte != MLOAD_OK) {
log_message(config->name, byte == MLOAD_ERR_MEM? ": Out of memory": log_message(config->name, byte == MLOAD_ERR_MEM? ": Out of memory":
": No module"); ": No module");
error_exit(); error_exit();
} }

View file

@ -57,8 +57,8 @@ mtarch_remove(void)
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
void void
mtarch_start(struct mtarch_thread *thread, mtarch_start(struct mtarch_thread *thread,
void (* function)(void *data), void (* function)(void *data),
void *data) void *data)
{ {
memset(thread->cpustack, 0, sizeof(thread->cpustack)); memset(thread->cpustack, 0, sizeof(thread->cpustack));
memset(thread->cstack, 0, sizeof(thread->cstack)); memset(thread->cstack, 0, sizeof(thread->cstack));

View file

@ -38,9 +38,9 @@
#include "6502def.h" #include "6502def.h"
#define CTK_CONF_MENU_KEY CH_ESC #define CTK_CONF_MENU_KEY CH_ESC
#define CTK_CONF_WINDOWSWITCH_KEY 0x17 /* Ctrl-W */ #define CTK_CONF_WINDOWSWITCH_KEY 0x17 /* Ctrl-W */
#define CTK_CONF_WIDGETUP_KEY 0x01 /* Ctrl-A */ #define CTK_CONF_WIDGETUP_KEY 0x01 /* Ctrl-A */
#define CTK_CONF_WIDGETDOWN_KEY '\t' /* Tab or Ctrl-I */ #define CTK_CONF_WIDGETDOWN_KEY '\t' /* Tab or Ctrl-I */
#define MOUSE_CONF_XTOC(x) ((x) * 2 / 7) #define MOUSE_CONF_XTOC(x) ((x) * 2 / 7)
#define MOUSE_CONF_YTOC(y) ((y) / 8) #define MOUSE_CONF_YTOC(y) ((y) / 8)

View file

@ -51,9 +51,9 @@
#endif /* WITH_DNS */ #endif /* WITH_DNS */
PROCINIT(&etimer_process, PROCINIT(&etimer_process,
CTK_PROCESS CTK_PROCESS
RESOLV_PROCESS RESOLV_PROCESS
&tcpip_process); &tcpip_process);
void clock_update(void); void clock_update(void);

View file

@ -38,9 +38,9 @@
#include "6502def.h" #include "6502def.h"
#define CTK_CONF_MENU_KEY CH_ESC #define CTK_CONF_MENU_KEY CH_ESC
#define CTK_CONF_WINDOWSWITCH_KEY 0x17 /* Ctrl-W */ #define CTK_CONF_WINDOWSWITCH_KEY 0x17 /* Ctrl-W */
#define CTK_CONF_WIDGETUP_KEY 0x01 /* Ctrl-A */ #define CTK_CONF_WIDGETUP_KEY 0x01 /* Ctrl-A */
#define CTK_CONF_WIDGETDOWN_KEY '\t' /* Tab or Ctrl-I */ #define CTK_CONF_WIDGETDOWN_KEY '\t' /* Tab or Ctrl-I */
#define textcolor(color) COLOR_WHITE #define textcolor(color) COLOR_WHITE

View file

@ -51,9 +51,9 @@
#endif /* WITH_DNS */ #endif /* WITH_DNS */
PROCINIT(&etimer_process, PROCINIT(&etimer_process,
CTK_PROCESS CTK_PROCESS
RESOLV_PROCESS RESOLV_PROCESS
&tcpip_process); &tcpip_process);
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
void void

View file

@ -53,9 +53,9 @@
#endif /* WITH_DNS */ #endif /* WITH_DNS */
PROCINIT(&etimer_process, PROCINIT(&etimer_process,
CTK_PROCESS CTK_PROCESS
RESOLV_PROCESS RESOLV_PROCESS
&tcpip_process); &tcpip_process);
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
void void

View file

@ -53,9 +53,9 @@
#endif /* WITH_DNS */ #endif /* WITH_DNS */
PROCINIT(&etimer_process, PROCINIT(&etimer_process,
CTK_PROCESS CTK_PROCESS
RESOLV_PROCESS RESOLV_PROCESS
&tcpip_process); &tcpip_process);
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
void void